diff options
author | Leah Rowe <leah@libreboot.org> | 2023-09-27 21:46:20 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-09-27 22:31:24 +0100 |
commit | 74c48a881df378a83e261c2785012609d81d801e (patch) | |
tree | 52dcd41154762a823bf1d5d06c7a788536aea874 /script/build/boot | |
parent | a00b43375a7d4a33b6569c0b6ccb9e9291877bb5 (diff) |
move build/command/options to include/option.sh
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/boot')
-rwxr-xr-x | script/build/boot/roms | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/script/build/boot/roms b/script/build/boot/roms index c0c119b5..4b29f78f 100755 --- a/script/build/boot/roms +++ b/script/build/boot/roms @@ -9,6 +9,7 @@ set -u -e . "include/err.sh" +. "include/option.sh" read projectname < projectname opts="" @@ -23,7 +24,7 @@ main() firstoption="${1}" [ "${firstoption}" = "help" ] && usage && exit 0 [ "${firstoption}" = "list" ] && \ - ./build command options config/coreboot && exit 0 + listitems config/coreboot && exit 0 while [ $# -gt 0 ]; do case ${1} in @@ -46,7 +47,7 @@ main() printf "Building %s ROM images\n" "${projectname}" if [ "${firstoption}" = "all" ]; then - for target in $(./build command options config/coreboot); do + for target in $(listitems config/coreboot); do buildrom "${target}" || err "build/roms (1): error" [ -d "bin/${target}" ] && targets="${target} ${targets}" done @@ -81,7 +82,7 @@ usage() ./build boot roms x60 -p grub -d corebootfb -k usqwerty possible values for 'target': - $(./build command options "config/coreboot") + $(listitems "config/coreboot") Refer to the ${projectname} documentation for more information. EOF |