mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[build/padding] Pad with FF FF FF FF in hex
Using "echo" added a \n at the end of the input
This commit is contained in:
committed by
EmilieNumworks
parent
df45f800e1
commit
d745b719a9
@@ -12,8 +12,9 @@ products += $(patsubst %.$(EXE),%.map,$(filter %.$(EXE),$(products)))
|
||||
# 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.
|
||||
@echo "Padding $@"
|
||||
@echo "\x1\x1\x1\x1" >> $@
|
||||
$(Q) printf "\xFF\xFF\xFF\xFF" >> $@
|
||||
|
||||
.PHONY: %_size
|
||||
%_size: %.$(EXE)
|
||||
|
||||
Reference in New Issue
Block a user