From 6c8b0e430f257a0a074500b97f8ff10e2410b3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Thu, 24 Sep 2020 15:09:40 +0200 Subject: Makefile.mk: compile ECC tools and inject ECC to final image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $ build/cbfstool build/coreboot.rom print FMAP REGION: COREBOOT Name Offset Type Size Comp cbfs_master_header 0x0 cbfs header 32 none fallback/romstage 0x80 stage 18495 LZ4 (30096 decompressed) fallback/ramstage 0x4940 stage 24288 LZMA (61240 decompressed) config 0xa880 raw 1324 LZMA (3308 decompressed) revision 0xae00 raw 726 none build_info 0xb100 raw 122 none (empty) 0xb1c0 null 347108 none header_pointer 0x5fdc0 cbfs header 4 none Change-Id: I8541aa6f1429ed6143830ed11c47c150183ddf0d Signed-off-by: Michał Żygowski Signed-off-by: Sergii Dmytruk Reviewed-on: https://review.coreboot.org/c/coreboot/+/67064 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/soc/ibm/power9/Makefile.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/soc/ibm/power9/Makefile.mk b/src/soc/ibm/power9/Makefile.mk index 84a40f9a34..f0ce2ead0e 100644 --- a/src/soc/ibm/power9/Makefile.mk +++ b/src/soc/ibm/power9/Makefile.mk @@ -14,4 +14,9 @@ ramstage-y += chip.c ramstage-y += rom_media.c ramstage-y += timer.c +files_added:: $(obj)/coreboot.rom.ecc + +$(obj)/coreboot.rom.ecc: $(obj)/coreboot.rom | $(ECCTOOL) + $(ECCTOOL) --inject $< --output $@ --p8 + endif -- cgit v1.2.3