summaryrefslogtreecommitdiffstats
path: root/arch/arm/pbl
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-01-28 11:05:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-31 18:51:49 +0100
commite3ed260db7c26aa3893c840191a0365f7f3f2837 (patch)
tree6a1fef90253a57c907b70a8479a7ec5b0e2c6561 /arch/arm/pbl
parent2af8bdd36908658a33838008200856b30734543b (diff)
downloadbarebox-e3ed260db7c26aa3893c840191a0365f7f3f2837.tar.gz
barebox-e3ed260db7c26aa3893c840191a0365f7f3f2837.tar.xz
scripts: fix_size: check magic
Instead of passing the offset to the fix_size tool check the image to fixup for a valid header so that only recognized files are fixed up. This makes the usage of this tool safer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/pbl')
-rw-r--r--arch/arm/pbl/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/pbl/Makefile b/arch/arm/pbl/Makefile
index bfa73b91a7..1741090bf8 100644
--- a/arch/arm/pbl/Makefile
+++ b/arch/arm/pbl/Makefile
@@ -23,7 +23,7 @@ $(obj)/zbarebox.bin: $(obj)/zbarebox FORCE
$(call if_changed,objcopy)
$(call cmd,check_file_size,$(CONFIG_BAREBOX_MAX_IMAGE_SIZE))
$(Q)$(kecho) ' Barebox: fix size'
- $(Q)$(objtree)/scripts/fix_size -f $(objtree)/$@ -o 0x2c $(FIX_SIZE)
+ $(Q)$(objtree)/scripts/fix_size -i -f $(objtree)/$@ $(FIX_SIZE)
$(Q)$(kecho) ' Barebox: $@ is ready'
$(obj)/zbarebox.S: $(obj)/zbarebox FORCE