summaryrefslogtreecommitdiff
path: root/script/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-28 16:34:45 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-28 16:34:45 +0000
commit34ded35fa616a323f582d3e942d7b49ac9beeef4 (patch)
tree54e988545c63c5e029da54e30d6a8dce272a90e5 /script/build
parent4e06779948744b3d7c09b3749ddc06e0b9e73732 (diff)
lbmk scripts: general code cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build')
-rwxr-xr-xscript/build/roms6
1 files changed, 2 insertions, 4 deletions
diff --git a/script/build/roms b/script/build/roms
index aa32ff35..95b697ec 100755
--- a/script/build/roms
+++ b/script/build/roms
@@ -165,8 +165,7 @@ build_dependency_grub()
rebuild_grub="y"
done
[ -n "${_keyboard}" ] && keymaps="${kmapdir}/${_keyboard}.gkb"
- [ "${rebuild_grub}" = "y" ] || return 0
- x_ ./build grub
+ [ "${rebuild_grub}" = "y" ] && x_ ./build grub; return 0
}
build_dependency_uboot()
@@ -179,7 +178,7 @@ build_dependency_uboot()
[ ! -f "${ubootelf}" ] && [ -f "${ubdir}/u-boot" ] && \
ubootelf="${ubdir}/u-boot"
[ -f "${ubootelf}" ] && return 0
- err "Could not find u-boot build for board, ${board}"
+ err "Can't find u-boot build for board, $board";
}
build_target()
@@ -365,7 +364,6 @@ mkSeabiosGrubonlyRom()
x_ rm -f "${tmpbootorder}"
x_ "${cbfstool}" "${_grubrom}" add-int -i 0 -n etc/show-boot-menu
-
x_ moverom "${_grubrom}" "${_newrom%.rom}_grubonly.rom"
}