diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2013-03-26 10:11:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-27 09:23:49 +0100 |
commit | 26121ef51d4d52482cb98c29ba3f0a337aa1a8c5 (patch) | |
tree | 228cfe05eac7a4afc1cf0a6ab99266a755807f75 /arch/arm/Makefile | |
parent | 097513b8f82404f0e522b2f358195d75f13aa5a5 (diff) | |
download | barebox-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/Makefile | 8 |
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)/$@ |