You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import("env")
my_flags = env.ParseFlags(env['BUILD_FLAGS'])
defines = {k: v for (k, v) in my_flags.get("CPPDEFINES")}
# print(defines)
env.Replace(PROGNAME="firmware_%s" % defines.get("VERSION"))
The default empty main.cpp file is sufficient to reproduce the problem.
The previous default example will work. However, as soon as I use the PROGNAME1.2.3+4 (which includes dots), the program does not build properly anymore. It removes the extension of the ,elf file, and the partitions.bin is missing (which causes fail to upload).
So in other words, for the example above, the problem is reproducible as soon as I use the following semantic VERSION instead of 13: 1.2.3+4
The problem happens exactly because there is a dot inside the the PROGNAME. Could you please check it?
The text was updated successfully, but these errors were encountered:
MohammedNoureldin
changed the title
Using dot . in PROGNAME causes unexpected behavior
Using dot . in PROGNAME causes unexpected behavior during building
Mar 27, 2021
I want to rename the output
firmware.bin
file according to the example supplied by the official documentation.platformio.ini:
extra_script.py:
The default empty
main.cpp
file is sufficient to reproduce the problem.The previous default example will work. However, as soon as I use the
PROGNAME
1.2.3+4
(which includes dots), the program does not build properly anymore. It removes the extension of the,elf
file, and thepartitions.bin
is missing (which causes fail to upload).So in other words, for the example above, the problem is reproducible as soon as I use the following semantic
VERSION
instead of13
:1.2.3+4
The problem happens exactly because there is a dot inside the the
PROGNAME
. Could you please check it?The text was updated successfully, but these errors were encountered: