summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-07-21 07:39:47 +0100
committerLeah Rowe <leah@libreboot.org>2024-07-21 21:53:54 +0100
commitab2a9c3709c64ec59e0a3750b0778652b00ab661 (patch)
treec9177953fd2903701b7bde8c2265ab65e8603b0b /include
parentfd29c8fd1a962ff1e12a97ad1199e83d98c6390c (diff)
include/rom.sh: use ccache when building corebootquackboot
ccache now required, in build dependencies Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/rom.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rom.sh b/include/rom.sh
index c0e5f8c5..4907cfab 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -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" || \