build/roms: skip target if config/ dir missing
fixes a regression when running ./build roms all now it should work again Signed-off-by: Leah Rowe <leah@libreboot.org>audit2-merge1
parent
4783c5b90e
commit
0ecb062df0
|
@ -56,7 +56,9 @@ main()
|
||||||
[ "${all}" != "y" ] || boards=$(items config/coreboot) || \
|
[ "${all}" != "y" ] || boards=$(items config/coreboot) || \
|
||||||
$err "Cannot generate list of boards for building"
|
$err "Cannot generate list of boards for building"
|
||||||
for x in ${boards}; do
|
for x in ${boards}; do
|
||||||
handle_coreboot_target "$x"
|
[ -d "config/coreboot/$x/config" ] && \
|
||||||
|
handle_coreboot_target "$x" && continue
|
||||||
|
printf "No configs for %s; skipping\n" "$x"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -179,8 +181,8 @@ configure_target()
|
||||||
# The reverse logic must not be applied. If SeaBIOS-with-GRUB works,
|
# The reverse logic must not be applied. If SeaBIOS-with-GRUB works,
|
||||||
# that doesn't mean GRUB-with-SeaBIOS will, e.g. VGA ROM execution
|
# that doesn't mean GRUB-with-SeaBIOS will, e.g. VGA ROM execution
|
||||||
[ "$payload_grub" != "y" ] && [ "$payload_seabios" != "y" ] && \
|
[ "$payload_grub" != "y" ] && [ "$payload_seabios" != "y" ] && \
|
||||||
[ "${payload_uboot}" != "y" ] && ! check_defconfig "$targetdir" \
|
[ "${payload_uboot}" != "y" ] && \
|
||||||
&& $err "target '$board' defines no payload"
|
$err "target '$board' defines no payload"
|
||||||
|
|
||||||
[ "$payload_uboot" != "n" ] && [ "$payload_uboot" != "y" ] && \
|
[ "$payload_uboot" != "n" ] && [ "$payload_uboot" != "y" ] && \
|
||||||
payload_uboot="n"
|
payload_uboot="n"
|
||||||
|
|
Loading…
Reference in New Issue