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 /scripts/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 'scripts/Makefile')
-rw-r--r-- | scripts/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index 08b325cb5d..fd526e5491 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -12,6 +12,7 @@ hostprogs-$(CONFIG_ARCH_NETX) += gen_netx_image hostprogs-$(CONFIG_ARCH_OMAP) += omap_signGP mk-am35xx-spi-image hostprogs-$(CONFIG_ARCH_S5PCxx) += s5p_cksum hostprogs-$(CONFIG_ARCH_DAVINCI) += mkublheader +hostprogs-$(CONFIG_ARCH_ZYNQ) += zynq_mkimage HOSTLOADLIBES_omap4_usbboot = -lpthread omap4_usbboot-objs := usb_linux.o omap4_usbboot.o |