summaryrefslogtreecommitdiff
path: root/examples/rules.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-02-13 11:44:03 +0700
committerhathach <[email protected]>2023-02-13 12:03:09 +0700
commit105f108661b894b3a3bc9fe2e173556099bbd745 (patch)
tree4007457c8e30495d245786b7ddd8d3aa68a1c8c9 /examples/rules.mk
parent002ca345b874cc0ebb3a49309ebbf405df7f573e (diff)
add metro m7 1011 board def (not running yet)
Diffstat (limited to 'examples/rules.mk')
-rw-r--r--examples/rules.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 6a62288ce..dcef934ab 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -170,12 +170,7 @@ $(BUILD)/$(PROJECT).elf: $(OBJ)
endif
# UF2 generation, iMXRT need to strip to text only before conversion
-ifeq ($(FAMILY),imxrt)
-$(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).elf
- @echo CREATE $@
- @$(OBJCOPY) -O ihex -R .flash_config -R .ivt $^ $(BUILD)/$(PROJECT)-textonly.hex
- $(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID) -c -o $@ $(BUILD)/$(PROJECT)-textonly.hex
-else
+ifneq ($(FAMILY),imxrt)
$(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).hex
@echo CREATE $@
$(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID) -c -o $@ $^