diff options
author | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2019-08-06 07:10:59 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-07 09:42:09 +0200 |
commit | 907a76d4eb2ad7e6850cc5fab1fa2cc8fb489aeb (patch) | |
tree | 0f48cf8e2c6aa19253fb1e6cf7904be0f5a21880 /arch/arm/lib/pbl.lds.S | |
parent | b1dcb6a921a5922cd95fdaef72eabfe7ce3f4794 (diff) | |
download | barebox-907a76d4eb2ad7e6850cc5fab1fa2cc8fb489aeb.tar.gz barebox-907a76d4eb2ad7e6850cc5fab1fa2cc8fb489aeb.tar.xz |
images: always build sha256sum into pbl
Create a sha256sum of the compressed barebox image and always add it to
the PBL. We also add a custom linker section for ARM, to retrieve the
sha256sum for piggydata verification.
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/pbl.lds.S')
-rw-r--r-- | arch/arm/lib/pbl.lds.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S index d2f5ab23bd..01ed384495 100644 --- a/arch/arm/lib/pbl.lds.S +++ b/arch/arm/lib/pbl.lds.S @@ -68,6 +68,13 @@ SECTIONS . = ALIGN(4); .data : { *(.data*) } + . = ALIGN(4); + __shasum_start = .; + .shasum : { + KEEP(*(.shasum)) + } + __shasum_end = .; + .rel_dyn_start : { *(.__rel_dyn_start) } #ifdef CONFIG_CPU_32 .rel.dyn : { *(.rel*) } |