mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-19 21:20:31 +02:00
mk: tidy up handle_defconfig
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -247,13 +247,8 @@ handle_defconfig()
|
|||||||
eval defconfig="$y"
|
eval defconfig="$y"
|
||||||
|
|
||||||
$if_build \
|
$if_build \
|
||||||
check_defconfig || \
|
prep_multi_tree_build || \
|
||||||
continue; :
|
continue
|
||||||
|
|
||||||
for _xarch in $xarch; do
|
|
||||||
[ -n "$_xarch" ] && $if_build $if_not_dry_build \
|
|
||||||
check_cross_compiler "$_xarch"; :
|
|
||||||
done; :
|
|
||||||
|
|
||||||
handle_makefile
|
handle_makefile
|
||||||
|
|
||||||
@@ -462,16 +457,17 @@ check_cross_compiler()
|
|||||||
x_ touch "$xgccfile" # prevent unnecessary re-build operations
|
x_ touch "$xgccfile" # prevent unnecessary re-build operations
|
||||||
}
|
}
|
||||||
|
|
||||||
check_defconfig()
|
prep_multi_tree_build()
|
||||||
{
|
{
|
||||||
dest_dir="$elfdir/$tree/$target/${defconfig#"$target_dir/config/"}"
|
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 \
|
for _xarch in $xarch; do
|
||||||
return 0
|
[ -n "$_xarch" ] && $if_not_dry_build \
|
||||||
elfcheck || \
|
check_cross_compiler "$_xarch"; :
|
||||||
return 1; :
|
done; :
|
||||||
}
|
}
|
||||||
|
|
||||||
elfcheck()
|
elfcheck()
|
||||||
|
|||||||
Reference in New Issue
Block a user