summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-23 03:54:08 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-23 03:54:08 +0100
commitb1ea4165754f04660d3c7282274c4b12355f88a0 (patch)
tree51cf96866df74fbb42d279ca85c08ced7861ea1d
parent4cf64e59ed09f4fd98a35043c63705990884eee2 (diff)
mk: remove mkhelp() and use x_() instead
x_ and mkhelp pretty much do the same thing in fact, there is no functional difference Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk11
1 files changed, 3 insertions, 8 deletions
diff --git a/mk b/mk
index 1cdd2fd6..75a91f63 100755
--- a/mk
+++ b/mk
@@ -213,7 +213,7 @@ build_targets()
printf "'make %s', '%s', '%s'\n" "$mode" "$project" "$target"
x_ handle_defconfig
- mkhelp "$postmake"
+ x_ $postmake
done; :
}
@@ -440,14 +440,14 @@ handle_makefile()
run_make_command()
{
- mkhelp "$premake"
+ x_ $premake
$dry check_cmake "$srcdir" && [ -z "$mode" ] && \
$dry check_autoconf "$srcdir"
$dry check_makefile "$srcdir" || return 1
$dry x_ make -C "$srcdir" $mode -j$XBMK_THREADS $makeargs
- mkhelp "$mkhelper"
+ x_ $mkhelper
[ "$mode" != "clean" ] || \
$dry make -C "$srcdir" $cleanargs distclean || :; :
@@ -476,11 +476,6 @@ check_makefile()
[ -f "$1/GNUmakefile" ] || return 1; :
}
-mkhelp()
-{
- [ -z "$1" ] || [ -n "$mode" ] || eval "$1" || $err "mkhelp: !$1"; :
-}
-
copy_elf()
{
[ -f "$listfile" ] && x_ mkdir -p "$dest_dir" && while read -r f; do