mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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:
@@ -43,6 +43,7 @@ mkpayload_grub()
|
||||
|
||||
mkvendorfiles()
|
||||
{
|
||||
[ -z "$mode" ] && $dry cook_coreboot_config
|
||||
check_coreboot_utils "$tree"
|
||||
printf "%s\n" "${version%%-*}" > "$srcdir/.coreboot-version" || \
|
||||
$err "!mk $srcdir .coreboot-version"
|
||||
@@ -50,6 +51,14 @@ mkvendorfiles()
|
||||
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_coreboot_utils()
|
||||
{
|
||||
for util in cbfstool ifdtool; do
|
||||
|
||||
Reference in New Issue
Block a user