summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-05 05:28:06 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-05 05:28:06 +0100
commitaa5937edd52a80a5385b8feb4275e5f005fb92d9 (patch)
tree025413960d4c567309c515bd96c85deccf1d7974 /script
parent580a5559480153f4b3e1983ccdce8e5a2c82c68d (diff)
build/roms: don't rely on x in handle_target
x is part of the for loop in main() and may or not still be available from handle_target, depending on your implementation of sh, but this should not be assumed do it properly Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/build/roms4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/build/roms b/script/build/roms
index 81ecd879..032c0a57 100755
--- a/script/build/roms
+++ b/script/build/roms
@@ -62,7 +62,7 @@ main()
$err "Cannot generate list of boards for building"
for x in ${boards}; do
- handle_target
+ handle_target "$x"
done
[ "$listboards" = "y" ] && return 0
@@ -85,7 +85,7 @@ handle_target()
{
eval "$(setvars "n" ${pv}) $(setvars "" ${v})"
grub_background="background1280x800.png"
- board="${x}"
+ board="$1"
status="unknown"
configure_target