include/rom.sh: use ccache when building coreboot

ccache now required, in build dependencies

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-07-21 07:39:47 +01:00
parent fd29c8fd1a
commit ab2a9c3709
10 changed files with 18 additions and 9 deletions
+9
View File
@@ -23,11 +23,20 @@ mkpayload_grub()
mkvendorfiles()
{
[ -z "$mode" ] && $dry cook_coreboot_config
check_cbfstool "$tree"; printf "69\n" > "$srcdir/.coreboot-version" \
|| $err "!cbver $srcdir"; [ -z "$mode" ] && \
[ "$target" != "$tree" ] && x_ ./vendor download $target; return 0
}
cook_coreboot_config()
{
[ -f "$srcdir/.config" ] || return 0
printf "CONFIG_CCACHE=y\n" >> "$srcdir/.config" || \
$err "$srcdir/.config: Could not enable ccache"
make -C "$srcdir" oldconfig || $err "Could not cook $srcdir/.config"; :
}
check_cbfstool()
{
[ "$badhash" = "n" ] || rm -f "elf/cbfstool/$1/cbfstool" || \