From 6b4a2ac6ea90ed718dabdc3731bbb2463b4a6e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 19 Sep 2019 17:43:37 +0200 Subject: [PATCH] [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) --- build/targets.device.mak | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build/targets.device.mak b/build/targets.device.mak index ae7f267af..ba57a1d0a 100644 --- a/build/targets.device.mak +++ b/build/targets.device.mak @@ -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 \ ))