mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
mk: make it completely generic
commands now fed from a file, include/common.sh which in turn also includes other lib files this makes mk completely generic, and means that changes will now be completely in sync with cbmk, ensuring a lack of merge conflicts, though the file was already pretty small anyway. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -23,15 +23,7 @@ xbcddir="${xbcddir%/*}"
|
||||
|
||||
cd "$xbcddir" || exit 1
|
||||
|
||||
. "include/lib.sh"
|
||||
. "include/init.sh"
|
||||
. "include/vendor.sh"
|
||||
. "include/mrc.sh"
|
||||
. "include/inject.sh"
|
||||
. "include/rom.sh"
|
||||
. "include/release.sh"
|
||||
. "include/get.sh"
|
||||
. "include/chromebook.sh"
|
||||
. "include/common.sh"
|
||||
|
||||
main()
|
||||
{
|
||||
@@ -41,8 +33,7 @@ main()
|
||||
shift 1
|
||||
fi
|
||||
|
||||
if ! xeq main "$cmd" \
|
||||
version release download inject prep_mr_import; then
|
||||
if ! xeq main "$cmd" $xbcommands; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user