[build] Don't pad all binary files (dfu.bin is a binary file that will

be included in the final firmware so it does not need to be padded)
This commit is contained in:
Émilie Feral
2019-09-19 17:43:37 +02:00
committed by Ecco
parent a709c73b4c
commit 6b4a2ac6ea

View File

@@ -14,13 +14,9 @@ $(eval $(call rule_for, \
$$(OBJCOPY) -O ihex $$< $$@ \
))
# 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.
#TODO: We over-pad here, pad with the the needed amount of bytes only.
$(eval $(call rule_for, \
OBJCOPY, %.bin, %.$$(EXE), \
$$(OBJCOPY) -O binary $$< $$@ && printf "\xFF\xFF\xFF\xFF" >> $$@, \
$$(OBJCOPY) -O binary $$< $$@, \
with_local_version \
))