From e3a8452a7d256c25b8a7458ba4eb083639a66084 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 10 Jul 2025 10:55:47 +0100 Subject: 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 --- include/tree.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/tree.sh') diff --git a/include/tree.sh b/include/tree.sh index 1f635e23..77699fdf 100644 --- a/include/tree.sh +++ b/include/tree.sh @@ -199,7 +199,7 @@ check_project_hashes() err "!mk $XBMK_CACHE/hash/$project$tree" [ "$badhash" != "y" ] || x_ rm -Rf "src/$project/$tree" \ - "elf/$project/$tree"; : + "$XBMK_CACHE/elf/$project/$tree"; : singletree "$project" || check_target_hash; : } @@ -233,7 +233,7 @@ check_target_hash() err "!mk $XBMK_CACHE/tghash/$project$target" [ "$badtghash" != "y" ] || \ - x_ rm -Rf "elf/$project/$tree/$target"; : + x_ rm -Rf "$XBMK_CACHE/elf/$project/$tree/$target"; : } check_cross_compiler() -- cgit v1.2.1