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 <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-07-10 03:15:18 +01:00
parent 7c6c9ff547
commit 6f7525a5b3
4 changed files with 45 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
build/coreboot.rom
+2 -2
View File
@@ -12,5 +12,5 @@ eval `setvars "n" $pv`
eval `setvars "" $v`
premake="corebootpremake"
mkhelper="mkcorebootbin"
postmake="mkcoreboottar"
mkhelper="coreboot_pad_one_byte"
postmake="mkcorebootbin"