summaryrefslogtreecommitdiff
path: root/script/roms
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-09 18:48:58 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-09 18:48:58 +0100
commit2ee186aee3aa3ab9619ed9549bd3b82909dcfbd0 (patch)
tree9b3fdf6f9c27e5d59aa1b0204129942c0a9999e4 /script/roms
parentc5441bb9f538ca45468db21c1c62f45680349a3d (diff)
minor code cleanup in the build system
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/roms')
-rwxr-xr-xscript/roms7
1 files changed, 3 insertions, 4 deletions
diff --git a/script/roms b/script/roms
index 79b716ff..3ccd8728 100755
--- a/script/roms
+++ b/script/roms
@@ -152,10 +152,9 @@ configure_target()
[ -n "$_scandisk" ] && grub_scan_disk="$_scandisk"
[ -z "$grub_scan_disk" ] && grub_scan_disk="nvme ahci ata"
- _ata=""
- _ahci=""
- _nvme=""
- _grub_scan_disk=""
+
+ eval "$(setvars "" _ata _ahci _nvme _grub_scan_disk)"
+
for _disk in $grub_scan_disk; do
[ "$_disk" != "nvme" ] && [ "$_disk" != "ahci" ] && \
[ "$_disk" != "ata" ] && _grub_scan_disk="nvme ahci ata" \