summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-16 09:25:55 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-16 09:25:55 +0100
commit08ec1878424adc1db520a0986a427810577019d7 (patch)
tree865de390f302a512309a39b8f7ebd85e2b355345
parent2dc4a4d16b175f41518142e72f9e1b43a3411274 (diff)
wip
defconfig file test unnecessary in check_defconfig because it's already checked in handle_defconfig Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk10
1 files changed, 1 insertions, 9 deletions
diff --git a/mk b/mk
index f49d7780..7ccad01d 100755
--- a/mk
+++ b/mk
@@ -196,7 +196,7 @@ single_tree_build()
multi_tree_build()
{
[ ! -d "$configdir" ] && \
- err "directory '$configdir' doesn't exist" "multi_tree_build" "$@"
+ err "dir '$configdir' doesn't exist" multi_tree_build "$@"
[ $# -lt 1 ] && \
fx_ multi_tree_build find "$configdir" \
-mindepth 1 -maxdepth 1 -type d
@@ -464,10 +464,6 @@ check_cross_compiler()
check_defconfig()
{
- [ ! -f "$defconfig" ] && \
- $if_not_dry_build \
- err "$project/$target: no config" check_defconfig "$@"
-
dest_dir="$elfdir/$tree/$target/${defconfig#"$target_dir/config/"}"
# skip build if a previous one exists:
@@ -512,10 +508,8 @@ run_make_command()
{
$if_build \
x_ $premake
-
$if_not_dry_build \
run_make_command_real || return 1
-
$if_build \
x_ $mkhelper; :
}
@@ -524,12 +518,10 @@ run_make_command_real()
{
[ -z "$cmakedir" ] || \
x_ cmake -B "$srcdir" "$srcdir/$cmakedir"
-
$if_build \
check_autoconf "$srcdir"
check_makefile "$srcdir" || return 1
-
x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
}