summaryrefslogtreecommitdiffstats
path: root/arch/arm/Makefile
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2013-03-26 10:11:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-27 09:23:49 +0100
commit26121ef51d4d52482cb98c29ba3f0a337aa1a8c5 (patch)
tree228cfe05eac7a4afc1cf0a6ab99266a755807f75 /arch/arm/Makefile
parent097513b8f82404f0e522b2f358195d75f13aa5a5 (diff)
downloadbarebox-26121ef51d4d52482cb98c29ba3f0a337aa1a8c5.tar.gz
barebox-26121ef51d4d52482cb98c29ba3f0a337aa1a8c5.tar.xz
ARM: zynq: add zynq fsbl checksum script
The bootrom only reads an image if the correct checksum is present in the header. The calculation is pretty simple: sum over all words from 0x20 to 0x44 Two of this words are the image length. That is why the checksum can not be calculated until barebox_image_size is known. The easiest solution is a program that has to be run after make. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r--arch/arm/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 3e48a68409..2a59bfec17 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -249,6 +249,14 @@ KBUILD_TARGET := barebox.spi
KBUILD_IMAGE := barebox.spi
endif
+barebox.zynq: $(KBUILD_BINARY)
+ $(Q)scripts/zynq_mkimage $< $@
+
+ifeq ($(machine-y),zynq)
+KBUILD_TARGET := barebox.zynq
+KBUILD_IMAGE := barebox.zynq
+endif
+
pbl := arch/arm/pbl
zbarebox.S zbarebox.bin zbarebox: barebox.bin
$(Q)$(MAKE) $(build)=$(pbl) $(pbl)/$@