[Makefile] Add padding to binary files for the device

This commit is contained in:
Léa Saviot
2018-11-23 10:33:23 +01:00
committed by Émilie Feral
parent d7d348deac
commit a95ff9797f

View File

@@ -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)