diff options
author | Leah Rowe <leah@libreboot.org> | 2024-07-17 14:55:49 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-07-17 16:34:34 +0100 |
commit | 0b9cd77fe7ff6ded9425f12f3651615e1863aa87 (patch) | |
tree | 880ef575a66bffffc082ac102bab5e24d1497b1a /include/git.sh | |
parent | 4438368c0cc0a0a8d16de8f7fab78c777c21ca1b (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/git.sh')
-rw-r--r-- | include/git.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/git.sh b/include/git.sh index 27b79c1a..0de4c931 100644 --- a/include/git.sh +++ b/include/git.sh @@ -2,7 +2,7 @@ # Copyright (c) 2020-2021,2023-2024 Leah Rowe <leah@libreboot.org> # Copyright (c) 2022 Caleb La Grange <thonkpeasant@protonmail.com> -eval `setvars "" loc url bkup_url subfile mdir subhash subrepo subrepo_bkup \ +eval `setvars "" loc url bkup_url subfile subhash subrepo subrepo_bkup \ depend subfile_bkup` fetch_targets() @@ -69,9 +69,6 @@ git_prep() prep_submodules() { - mdir="$PWD/config/submodule/$project" - [ -n "$tree" ] && mdir="$mdir/$tree" - [ -f "$mdir/module.list" ] && while read -r msrcdir; do fetch_submodule "$msrcdir" done < "$mdir/module.list"; return 0 |