mk: run xbmk_init here, not from init.sh

it should be clear on first reading, what the actual
control flow is. hiding the call in init.sh obscures
first reading.

now it is absolutely clear on first reading, that
xbmk_init is called before going through everything
else in mk.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-14 11:03:04 +01:00
parent cb49e77947
commit abee462f2a
2 changed files with 3 additions and 2 deletions
-2
View File
@@ -391,5 +391,3 @@ xchild()
exit $xbmk_rval
}
xbmk_init "$@"
+3
View File
@@ -27,6 +27,8 @@ cd "${commandv%/*}" || exit 1
. "include/lib.sh"
. "include/env/init.sh"
xbmk_init "$@"
. "include/env/get.sh"
. "include/fw/vendor.sh"
@@ -433,6 +435,7 @@ check_cross_compiler()
[ -f "$xgccfile" ] && \
return 0 # build exists already, so skip building
# it sometimes fails for like, no reason
make -C "$cbdir" $xgccargs || x_ make -C "$cbdir" $xgccargs
x_ touch "$xgccfile" # prevent unnecessary re-build operations