From 907a76d4eb2ad7e6850cc5fab1fa2cc8fb489aeb Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Tue, 6 Aug 2019 07:10:59 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- arch/arm/lib/pbl.lds.S | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/arm/lib/pbl.lds.S') 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*) } -- cgit v1.2.3