diff options
author | Leah Rowe <leah@libreboot.org> | 2024-07-21 07:39:47 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-07-21 07:39:47 +0100 |
commit | ba4278e0c6507e121d4ddded4a923d05236a3d3c (patch) | |
tree | 74cf4480efe17547a3bc2969abc3249282bfbefe /include/rom.sh | |
parent | 31f1e4dadfcc1ceecacec50dd2a14e63a44364bd (diff) |
include/rom.sh: use ccache when building coreboot
ccache now required, in build dependencies
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/rom.sh')
-rw-r--r-- | include/rom.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rom.sh b/include/rom.sh index ed3dddf2..e47849f8 100644 --- a/include/rom.sh +++ b/include/rom.sh @@ -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 |