From 66f1be1ba77b44bfae29beb7678fb0598ede8030 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 23 Aug 2025 15:49:10 +0100 Subject: 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 --- include/tree.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/tree.sh') 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; : -- cgit v1.2.1