summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-07-17 14:55:49 +0100
committerLeah Rowe <leah@libreboot.org>2024-07-17 16:34:34 +0100
commit0b9cd77fe7ff6ded9425f12f3651615e1863aa87 (patch)
tree880ef575a66bffffc082ac102bab5e24d1497b1a /build
parent4438368c0cc0a0a8d16de8f7fab78c777c21ca1b (diff)
trees: auto-delete+auto-rebuild if project changes
actual source code is not scanned, but config directories are scanned. simply get the checksum of each file under config/ pertaining to a given project/tree, and also for the given target. coreboot utilities are also handled. if it changes, in any way, delete and re-build automatically. such deletions should probably still be done manually, as part of understanding the build system, but this change should make the build system much easier to use during development. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'build')
-rwxr-xr-xbuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/build b/build
index d03960c6..b1b0f40d 100755
--- a/build
+++ b/build
@@ -100,6 +100,7 @@ build_release()
cd "$srcdir" || $err "$vdir: !cd \"$srcdir\""
./update trees -f
rmgit .
+ x_ rm -Rf hash repo
x_ mv src/docs docs
) || $err "can't create release files"