diff options
author | Leah Rowe <leah@libreboot.org> | 2025-07-10 10:55:47 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-07-10 11:02:10 +0100 |
commit | 6e2b8e44e042781326982b315966ab0fd7348ef2 (patch) | |
tree | d96ae8bb8e0cb453e64776bf8c0fc6ced4992c5b /include/init.sh | |
parent | dac3d6d06aa00cbf764a60494761f74dd043a310 (diff) |
xbmk: cache builds in XBMK_CACHE/elf/
not elf/
this way, release builds will go faster because
we re-use cached builds which are, due to recent
design improvements, always reliably re-built and
we can be sure that what's cached matches what's
currently in config/
if ./mk release is done with uncommitted changes,
that's OK because the hash checking is still done
in the release directory, which would still make
builds be re-done, and this would then update the
hashes so the master tree would then re-build them
later on, when doing a non-release build.
this change enables more rapid release build testing,
because we don't needlessly repeat certain builds.
we still generate the source archive from a clean slate.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
-rw-r--r-- | include/init.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/init.sh b/include/init.sh index bc5a62b6..2202e156 100644 --- a/include/init.sh +++ b/include/init.sh @@ -90,11 +90,15 @@ xbmk_set_env() xbtmp="$TMPDIR" export XBMK_CACHE="$xbmkpwd/cache" + [ -L "$XBMK_CACHE" ] && [ "$XBMK_CACHE" = "$xbmkpwd/cache" ] && \ err "cachedir '$xbmkpwd/cache' is a symlink" [ ! -e "$XBMK_CACHE" ] || \ [ -d "$XBMK_CACHE" ] || err "cachedir '$XBMK_CACHE' is a file"; : + cbfstool="$XBMK_CACHE/elf/coreboot/default/cbfstool" + rmodtool="$XBMK_CACHE/elf/coreboot/default/rmodtool" + export PATH="$XBMK_CACHE/xbmkpath:$XBMK_CACHE/gnupath:$PATH" xbmkpath="$PATH" |