mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-19 21:20:31 +02:00
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:
Vendored
-2
@@ -391,5 +391,3 @@ xchild()
|
||||
|
||||
exit $xbmk_rval
|
||||
}
|
||||
|
||||
xbmk_init "$@"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user