From 6f7525a5b35e373dc4496cd4c6af4e61cb3b534c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 10 Jul 2025 03:15:18 +0100 Subject: cache coreboot builds in elf/ again This was a problem when I did it before, because individual target builds weren't automatically re-compiled when needed. The recent design improvements in lbmk enable this to be done again. Cached images in elf/ have no payloads, so they are a liability, therefore they are padded by one byte to prevent flashing. This solves the problem that the previous caching had. With this change, modifying payloads can be tested without needing to re-build coreboot each time. The cached coreboot builds are also automatically re-built when needed, which is another improvement this time, compared to the last time coreboot builds were cached in this manner. Signed-off-by: Leah Rowe --- config/data/coreboot/build.list | 1 + config/data/coreboot/mkhelper.cfg | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 config/data/coreboot/build.list (limited to 'config') diff --git a/config/data/coreboot/build.list b/config/data/coreboot/build.list new file mode 100644 index 00000000..f6535149 --- /dev/null +++ b/config/data/coreboot/build.list @@ -0,0 +1 @@ +build/coreboot.rom diff --git a/config/data/coreboot/mkhelper.cfg b/config/data/coreboot/mkhelper.cfg index 743d7c5b..d4de718e 100644 --- a/config/data/coreboot/mkhelper.cfg +++ b/config/data/coreboot/mkhelper.cfg @@ -12,5 +12,5 @@ eval `setvars "n" $pv` eval `setvars "" $v` premake="corebootpremake" -mkhelper="mkcorebootbin" -postmake="mkcoreboottar" +mkhelper="coreboot_pad_one_byte" +postmake="mkcorebootbin" -- cgit v1.2.1