mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
unified checks for variable initialisation
new function chkvars() does the job Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-3
@@ -131,7 +131,7 @@ handle_src_tree()
|
||||
load_project_config "$target_dir"
|
||||
x_ mkdir -p "$elfdir/$target"
|
||||
|
||||
[ -z "$tree" ] && $err "handle_src_tree $project/$tree: tree unset"
|
||||
chkvars tree
|
||||
cdir="src/$project/$tree"
|
||||
|
||||
if [ ! -d "$cdir" ]; then
|
||||
@@ -279,8 +279,7 @@ mkpayload_grub()
|
||||
|
||||
. "$grubdata/module/$tree" || $err "$tree: !source grub modules"
|
||||
|
||||
[ -z "$grub_install_modules" ] && $err "$tree: install modules unset"
|
||||
[ -z "$grub_modules" ] && $err "$tree: modules unset"
|
||||
chkvars "grub_install_modules" "grub_modules"
|
||||
|
||||
"${cdir}/grub-mkstandalone" --grub-mkimage="${cdir}/grub-mkimage" \
|
||||
-O i386-coreboot -o "${cdir}/grub.elf" -d "${cdir}/grub-core/" \
|
||||
|
||||
Reference in New Issue
Block a user