summaryrefslogtreecommitdiff
path: root/include/rom.sh
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 /include/rom.sh
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 'include/rom.sh')
-rw-r--r--include/rom.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rom.sh b/include/rom.sh
index 574b1b6c..8798ef13 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -53,6 +53,8 @@ mkvendorfiles()
check_coreboot_utils()
{
for util in cbfstool ifdtool; do
+ [ "$badhash" = "n" ] || rm -f "elf/$util/$1/$util" || \
+ $err "!rm badelf elf/$util/$1/$util"
e "elf/$util/$1/$util" f && continue
utilelfdir="elf/$util/$1"