summaryrefslogtreecommitdiff
path: root/include/tree.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-08-23 15:49:10 +0100
committerLeah Rowe <leah@libreboot.org>2025-08-23 15:49:10 +0100
commit66f1be1ba77b44bfae29beb7678fb0598ede8030 (patch)
tree474a0b22dfc89aa6f26792cfbb5bc6b0a9a69c10 /include/tree.sh
parentc12965f8e4205cc28d9f468891cd20330b28c53c (diff)
tree.sh: check xgcc AFTER checking elfdir
if e.g. elf/coreboot/default/w500_16mb contains readied images from before, crossgcc is still being checked. if you already built all the coreboot images, and wanted to just modify all the payloads for example, this would result in a much slower re-build process, because it is needlessly re-checking crossgcc every time. by doing it this way, we need up the testing of payloads quite considerably, during xbmk development. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/tree.sh')
-rw-r--r--include/tree.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/tree.sh b/include/tree.sh
index 5edddf23..093d5d9c 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -111,15 +111,16 @@ handle_defconfig()
[ "$mode" = "${mode%clean}" ] && [ ! -d "$srcdir" ] && return 0
- [ -z "$mode" ] && for _xarch in $xarch; do
- $dry check_cross_compiler "$_xarch"
- done; :
-
for y in "$target_dir/config"/*; do
[ "$_f" = "-d" ] || [ -f "$y" ] || continue
[ "$_f" = "-d" ] || defconfig="$y"
[ -n "$mode" ] || check_defconfig || continue
+
+ [ -z "$mode" ] && for _xarch in $xarch; do
+ $dry check_cross_compiler "$_xarch"
+ done; :
+
handle_makefile
[ -n "$mode" ] || $dry copy_elf
done; :