mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[Makefile] Add padding to binary files for the device
This commit is contained in:
@@ -9,6 +9,11 @@ products += $(patsubst %.$(EXE),%.map,$(filter %.$(EXE),$(products)))
|
||||
%.bin: %.$(EXE)
|
||||
@echo "OBJCOPY $@"
|
||||
$(Q) $(OBJCOPY) -O binary $< $@
|
||||
# We pad the device binary files because there was a bug in an older version of
|
||||
# the dfu code, and it did not upload properly a binary of length non-multiple
|
||||
# of 32 bits.
|
||||
@echo "Padding $@"
|
||||
@echo "\x1\x1\x1\x1" >> $@
|
||||
|
||||
.PHONY: %_size
|
||||
%_size: %.$(EXE)
|
||||
|
||||
Reference in New Issue
Block a user