diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-16 09:41:40 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-16 09:41:40 +0100 |
| commit | 5afd77433d3ae7a172ef2fe9d4173c897ee65707 (patch) | |
| tree | 87772a3a3ffa71e6019a219550cab2fde31c2f14 | |
| parent | 08ec1878424adc1db520a0986a427810577019d7 (diff) | |
mk: tidy up handle_defconfig
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rwxr-xr-x | mk | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -247,13 +247,8 @@ handle_defconfig() eval defconfig="$y" $if_build \ - check_defconfig || \ - continue; : - - for _xarch in $xarch; do - [ -n "$_xarch" ] && $if_build $if_not_dry_build \ - check_cross_compiler "$_xarch"; : - done; : + prep_multi_tree_build || \ + continue handle_makefile @@ -462,16 +457,17 @@ check_cross_compiler() x_ touch "$xgccfile" # prevent unnecessary re-build operations } -check_defconfig() +prep_multi_tree_build() { dest_dir="$elfdir/$tree/$target/${defconfig#"$target_dir/config/"}" - # skip build if a previous one exists: + $if_not_dry_build elfcheck || \ + return 1 # skip if a build exists - $if_dry_build \ - return 0 - elfcheck || \ - return 1; : + for _xarch in $xarch; do + [ -n "$_xarch" ] && $if_not_dry_build \ + check_cross_compiler "$_xarch"; : + done; : } elfcheck() |
