summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-14 00:14:55 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-14 00:14:55 +0100
commit823a1fd011a8b8231e2334fa076bce6894f9c01d (patch)
tree253eeaf9e2674eaacb103ed54580bbd1356a27ee
parent5fb0d1098f33a7806ec2a8daba0cd4c4d747562b (diff)
mk: put all includes in one place
the previous design flaw was fixed by recent refactors, such that i can now . include all of lbmk at once, and have control logic right after that. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk6
1 files changed, 2 insertions, 4 deletions
diff --git a/mk b/mk
index d8265d17..63f700df 100755
--- a/mk
+++ b/mk
@@ -32,6 +32,7 @@ cd "${commandv%/*}" || exit 1
. "include/fw/inject.sh"
. "include/fw/rom.sh"
+. "include/mk/tree.sh"
. "include/mk/release.sh"
_f="${1-}"
@@ -40,12 +41,9 @@ shift 1 2>/dev/null || :
eval "$(printf "version release download inject\n" | awk '{ for (i=1; i<=NF; \
i++) $i = "[ \""$i"\" = \"$_f\" ] && x_ "$i" \"$@\" && exit 0;"; print }')"
-. "include/mk/tree.sh"
-
trees "$_f" "$@" || exit 0
-
x_ touch "$mkhelpercfg"
-
. "$mkhelpercfg"
$cmd
+
) || exit 1; :