@@ -143,7 +143,6 @@ def _get_board_f_flash(env):
143
143
MKSPIFFSTOOL = "mkspiffs" ,
144
144
SIZEPRINTCMD = '$SIZETOOL -B -d $SOURCES' ,
145
145
146
- PROGNAME = "firmware" ,
147
146
PROGSUFFIX = ".elf"
148
147
)
149
148
@@ -153,6 +152,8 @@ def _get_board_f_flash(env):
153
152
154
153
if int (ARGUMENTS .get ("PIOVERBOSE" , 0 )):
155
154
env .Prepend (UPLOADERFLAGS = ["-vv" ])
155
+ if env .get ("PROGNAME" , "program" ) == "program" :
156
+ env .Replace (PROGNAME = "firmware" )
156
157
157
158
#
158
159
# Keep support for old LD Scripts
@@ -353,7 +354,7 @@ def __fetch_spiffs_size(target, source, env):
353
354
fetch_spiffs_size (env )
354
355
target_firm = join ("$BUILD_DIR" , "spiffs.bin" )
355
356
elif env .subst ("$PIOFRAMEWORK" ) in ("arduino" , "simba" ):
356
- target_firm = join ("$BUILD_DIR" , "firmware .bin" )
357
+ target_firm = join ("$BUILD_DIR" , "${PROGNAME} .bin" )
357
358
else :
358
359
target_firm = [
359
360
join ("$BUILD_DIR" , "eagle.flash.bin" ),
@@ -368,7 +369,7 @@ def __fetch_spiffs_size(target, source, env):
368
369
else :
369
370
if env .subst ("$PIOFRAMEWORK" ) in ("arduino" , "simba" ):
370
371
target_firm = env .ElfToBin (
371
- join ("$BUILD_DIR" , "firmware " ), target_elf )
372
+ join ("$BUILD_DIR" , "${PROGNAME} " ), target_elf )
372
373
else :
373
374
target_firm = env .ElfToBin ([
374
375
join ("$BUILD_DIR" , "eagle.flash.bin" ),
0 commit comments