Skip to content

Commit e818486

Browse files
committed
Fix unwanted build step for nobuild target
(cherry picked from commit 466d83a)
1 parent 3c879ec commit e818486

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def get_esptoolpy_reset_flags(resetmethod):
213213
# Target: Build executable and linkable firmware or SPIFFS image
214214
#
215215

216-
target_elf = env.BuildProgram()
216+
target_elf = None
217217
if "nobuild" in COMMAND_LINE_TARGETS:
218218
target_elf = join("$BUILD_DIR", "${PROGNAME}.elf")
219219
if set(["uploadfs", "uploadfsota"]) & set(COMMAND_LINE_TARGETS):
@@ -222,6 +222,7 @@ def get_esptoolpy_reset_flags(resetmethod):
222222
else:
223223
target_firm = join("$BUILD_DIR", "${PROGNAME}.bin")
224224
else:
225+
target_elf = env.BuildProgram()
225226
if set(["buildfs", "uploadfs", "uploadfsota"]) & set(COMMAND_LINE_TARGETS):
226227
target_firm = env.DataToBin(
227228
join("$BUILD_DIR", env.get("SPIFFSNAME", "spiffs")), "$PROJECTDATA_DIR")

0 commit comments

Comments
 (0)