Skip to content

Commit f3e4fbd

Browse files
committed
Add directly loadable binary target
1 parent 8364c60 commit f3e4fbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ports/mimxrt10xx/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_MOD:.c=.o))
220220

221221
SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_COMMON_HAL_EXPANDED) $(SRC_SHARED_MODULE_EXPANDED)
222222

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
224224

225225
$(BUILD)/firmware.elf: $(OBJ) $(LD_FILES)
226226
$(STEPECHO) "LINK $@"
@@ -237,6 +237,10 @@ $(BUILD)/firmware.uf2: $(BUILD)/firmware.bin
237237
$(BUILD)/firmware.hex: $(BUILD)/firmware.elf
238238
$(Q)$(OBJCOPY) -O ihex -j .flash_config -j .ivt -j .text -j .ARM.exidx -j .data -j .itcm -j .dtcm_data $< $@
239239

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+
240244
include $(TOP)/py/mkrules.mk
241245

242246
# Print out the value of a make variable.

0 commit comments

Comments
 (0)