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>
20240612_branch
Leah Rowe 2024-05-05 05:28:06 +01:00
parent 580a555948
commit aa5937edd5
1 changed files with 2 additions and 2 deletions

View File

@ -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