summaryrefslogtreecommitdiff
path: root/script/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-06 02:53:37 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-06 02:53:37 +0100
commitce10c1b38c6ed2137803e37e8a69e7eecd5ce61d (patch)
tree7caaa39481acc49a2b3ba251ea38b669c911325e /script/build
parent2d483d2f5c3716f26bced0d9305a68475cc38f7e (diff)
build/firmware/coreboot: support "all" without all
with no argument specified, it is now possible to build every rom image. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build')
-rwxr-xr-xscript/build/firmware/coreboot12
1 files changed, 6 insertions, 6 deletions
diff --git a/script/build/firmware/coreboot b/script/build/firmware/coreboot
index 10cc44a1..bfc059a5 100755
--- a/script/build/firmware/coreboot
+++ b/script/build/firmware/coreboot
@@ -28,12 +28,10 @@ v="romdir cbdir cbfstool cbrom initmode displaymode cbcfg targetdir tree arch"
v="${v} grub_timeout ubdir blobs_required board grub_scan_disk uboot_config"
eval "$(setvars "n" ${pv})"
eval "$(setvars "" ${v})"
-eval "$(setvars "" boards _displaymode _payload _keyboard)"
+eval "$(setvars "" boards _displaymode _payload _keyboard all)"
main()
{
- [ $# -lt 1 ] && usage && err "target not specified"
-
while [ $# -gt 0 ]; do
case ${1} in
help) usage && exit 0 ;;
@@ -41,16 +39,18 @@ main()
-d) _displaymode="${2}" ;;
-p) _payload="${2}" ;;
-k) _keyboard="${2}" ;;
- all)
- boards="$(listitems config/coreboot)"
- shift && continue ;;
*)
+ [ "${1}" = "all" ] && all="y"
boards="${1} ${boards}"
shift && continue ;;
esac
shift 2
done
+ [ "${all}" = "y" ] && boards=""
+ [ ! -z ${boards} ] || boards=$(listitems config/coreboot) || \
+ err "Cannot generate list of boards for building"
+
for x in ${boards}; do
eval "$(setvars "n" ${pv})"
eval "$(setvars "" ${v})"