summaryrefslogtreecommitdiff
path: root/include/boot.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-30 16:14:27 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-30 16:14:27 +0100
commit49b266eb4248f87d111e9babae86a873300afa03 (patch)
tree91a5e024849c127077a26ba8dc2d9137f1b176c3 /include/boot.sh
parentd268f5eb28bc95b2d72bae022fce1768a5cb7147 (diff)
build/boot/roms: only do 1 custom kbd/payload/mode
-k, -p and -d let you set keymap, payload and displaymode respectively, but the handling for this is buggy when passing multiple arguments. Support only one argument, for simplicity. This is how people use them anyway, and it makes lbmk less buggy. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/boot.sh')
-rwxr-xr-xinclude/boot.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/boot.sh b/include/boot.sh
index c8df74a5..fe058ecb 100755
--- a/include/boot.sh
+++ b/include/boot.sh
@@ -3,11 +3,12 @@
# SPDX-FileCopyrightText: 2022 Ferass El Hafidi <vitali64pmemail@protonmail.com>
# SPDX-FileCopyrightText: 2023 Leah Rowe <leah@libreboot.org>
+first=""
board=""
boards=""
-displaymodes=""
-payloads=""
-keyboard_layouts=""
+_displaymode=""
+_payload=""
+_keyboard_layout=""
main()
{
@@ -21,13 +22,13 @@ main()
while [ $# -gt 0 ]; do
case ${1} in
-d)
- displaymodes="${2} ${displaymodes}"
+ _displaymode="${2}"
shift ;;
-p)
- payloads="${2} ${payloads}"
+ _payload="${2}"
shift ;;
-k)
- keyboard_layouts="${2} ${keyboard_layouts}"
+ _keyboard_layout="${2}"
shift ;;
all)
first="all" ;;