File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_MOD:.c=.o))
220
220
221
221
SRC_QSTR += $(SRC_C ) $(SRC_SUPERVISOR ) $(SRC_COMMON_HAL_EXPANDED ) $(SRC_SHARED_MODULE_EXPANDED )
222
222
223
- all : $(BUILD ) /firmware.bin $(BUILD ) /firmware.uf2 $(BUILD ) /firmware.hex
223
+ all : $(BUILD ) /firmware.bin $(BUILD ) /firmware.uf2 $(BUILD ) /firmware.hex $( BUILD ) /firmware-bootable.bin
224
224
225
225
$(BUILD ) /firmware.elf : $(OBJ ) $(LD_FILES )
226
226
$(STEPECHO ) " LINK $@ "
@@ -237,6 +237,10 @@ $(BUILD)/firmware.uf2: $(BUILD)/firmware.bin
237
237
$(BUILD ) /firmware.hex : $(BUILD ) /firmware.elf
238
238
$(Q )$(OBJCOPY ) -O ihex -j .flash_config -j .ivt -j .text -j .ARM.exidx -j .data -j .itcm -j .dtcm_data $< $@
239
239
240
+ $(BUILD ) /firmware-bootable.bin : $(BUILD ) /firmware.elf
241
+ $(STEPECHO ) " Create $@ "
242
+ $(Q )$(OBJCOPY ) -O binary -j .flash_config -j .ivt -j .text -j .ARM.exidx -j .data -j .itcm -j .dtcm_data $< $@
243
+
240
244
include $(TOP ) /py/mkrules.mk
241
245
242
246
# Print out the value of a make variable.
You can’t perform that action at this time.
0 commit comments