samd/Makefile: Specify UF2 family in firmware.uf2.
Set the UF2 firmware images family to Microchip SAMD21 or SAMD51. This helps tools such as file to identify built firmware. Signed-off-by: Alexandre Iooss <erdnaxe@crans.org>
This commit is contained in:
parent
e23fdb1f77
commit
aefd48b801
@ -183,7 +183,7 @@ $(BUILD)/firmware.bin: $(BUILD)/firmware.elf
|
||||
$(Q)$(OBJCOPY) -O binary -j .isr_vector -j .text -j .data $^ $(BUILD)/firmware.bin
|
||||
|
||||
$(BUILD)/firmware.uf2: $(BUILD)/firmware.bin
|
||||
$(Q)$(PYTHON) $(UF2CONV) -b $(TEXT0) -c -o $@ $<
|
||||
$(Q)$(PYTHON) $(UF2CONV) $(UF2CONV_FLAGS) -b $(TEXT0) -c -o $@ $<
|
||||
|
||||
# pin_af.c: $(BUILD)/$(GEN_PIN_AF) | $(HEADER_BUILD)
|
||||
|
||||
|
||||
@ -13,3 +13,5 @@ endif
|
||||
MICROPY_VFS_LFS1 ?= 1
|
||||
|
||||
SRC_S += shared/runtime/gchelper_thumb1.s
|
||||
|
||||
UF2CONV_FLAGS += -f 0x68ed2b88
|
||||
|
||||
@ -14,3 +14,5 @@ SRC_S += shared/runtime/gchelper_thumb2.s
|
||||
|
||||
SRC_C += \
|
||||
fatfs_port.c \
|
||||
|
||||
UF2CONV_FLAGS += -f 0x55114460
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user