mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Generate bin and hex for nRF/NANO33.
This commit is contained in:
parent
b0f36d4d0e
commit
4d50e5682c
@ -366,7 +366,8 @@ FIRMWARE_OBJS: | $(BUILD) $(FW_DIR)
|
|||||||
$(FIRMWARE): FIRMWARE_OBJS
|
$(FIRMWARE): FIRMWARE_OBJS
|
||||||
$(CPP) -P -E -I$(OMV_BOARD_CONFIG_DIR) $(OMV_DIR)/ports/$(PORT)/$(LDSCRIPT).ld.S > $(BUILD)/$(LDSCRIPT).lds
|
$(CPP) -P -E -I$(OMV_BOARD_CONFIG_DIR) $(OMV_DIR)/ports/$(PORT)/$(LDSCRIPT).ld.S > $(BUILD)/$(LDSCRIPT).lds
|
||||||
$(CC) $(LDFLAGS) $(FIRM_OBJ) -o $(FW_DIR)/$(FIRMWARE).elf $(LIBS) -lgcc
|
$(CC) $(LDFLAGS) $(FIRM_OBJ) -o $(FW_DIR)/$(FIRMWARE).elf $(LIBS) -lgcc
|
||||||
$(OBJCOPY) -Oihex -R .big_const* $(FW_DIR)/$(FIRMWARE).elf $(FW_DIR)/$(FIRMWARE).hex
|
$(OBJCOPY) -Oihex $(FW_DIR)/$(FIRMWARE).elf $(FW_DIR)/$(FIRMWARE).hex
|
||||||
|
$(OBJCOPY) -Obinary $(FW_DIR)/$(FIRMWARE).elf $(FW_DIR)/$(FIRMWARE).bin
|
||||||
|
|
||||||
# This target generates the firmware image.
|
# This target generates the firmware image.
|
||||||
$(OPENMV): $(FIRMWARE)
|
$(OPENMV): $(FIRMWARE)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user