mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-19 21:20:31 +02:00
wip
defconfig file test unnecessary in check_defconfig because it's already checked in handle_defconfig Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -196,7 +196,7 @@ single_tree_build()
|
|||||||
multi_tree_build()
|
multi_tree_build()
|
||||||
{
|
{
|
||||||
[ ! -d "$configdir" ] && \
|
[ ! -d "$configdir" ] && \
|
||||||
err "directory '$configdir' doesn't exist" "multi_tree_build" "$@"
|
err "dir '$configdir' doesn't exist" multi_tree_build "$@"
|
||||||
[ $# -lt 1 ] && \
|
[ $# -lt 1 ] && \
|
||||||
fx_ multi_tree_build find "$configdir" \
|
fx_ multi_tree_build find "$configdir" \
|
||||||
-mindepth 1 -maxdepth 1 -type d
|
-mindepth 1 -maxdepth 1 -type d
|
||||||
@@ -464,10 +464,6 @@ check_cross_compiler()
|
|||||||
|
|
||||||
check_defconfig()
|
check_defconfig()
|
||||||
{
|
{
|
||||||
[ ! -f "$defconfig" ] && \
|
|
||||||
$if_not_dry_build \
|
|
||||||
err "$project/$target: no config" check_defconfig "$@"
|
|
||||||
|
|
||||||
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:
|
# skip build if a previous one exists:
|
||||||
@@ -512,10 +508,8 @@ run_make_command()
|
|||||||
{
|
{
|
||||||
$if_build \
|
$if_build \
|
||||||
x_ $premake
|
x_ $premake
|
||||||
|
|
||||||
$if_not_dry_build \
|
$if_not_dry_build \
|
||||||
run_make_command_real || return 1
|
run_make_command_real || return 1
|
||||||
|
|
||||||
$if_build \
|
$if_build \
|
||||||
x_ $mkhelper; :
|
x_ $mkhelper; :
|
||||||
}
|
}
|
||||||
@@ -524,12 +518,10 @@ run_make_command_real()
|
|||||||
{
|
{
|
||||||
[ -z "$cmakedir" ] || \
|
[ -z "$cmakedir" ] || \
|
||||||
x_ cmake -B "$srcdir" "$srcdir/$cmakedir"
|
x_ cmake -B "$srcdir" "$srcdir/$cmakedir"
|
||||||
|
|
||||||
$if_build \
|
$if_build \
|
||||||
check_autoconf "$srcdir"
|
check_autoconf "$srcdir"
|
||||||
|
|
||||||
check_makefile "$srcdir" || return 1
|
check_makefile "$srcdir" || return 1
|
||||||
|
|
||||||
x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
|
x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user