From 0b9cd77fe7ff6ded9425f12f3651615e1863aa87 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 17 Jul 2024 14:55:49 +0100 Subject: 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 --- include/rom.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/rom.sh') 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" -- cgit v1.2.1