build/roms: simplified config payload checks

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-05-18 22:13:20 +01:00 committed by Leah Rowe
parent a243dc2308
commit 7a565c9f43
1 changed files with 2 additions and 5 deletions

View File

@ -188,11 +188,8 @@ configure_target()
# that doesn't mean GRUB-withSeaBIOS will. For example, the board
# might have a graphics card whose vga rom coreboot doesn't execute
[ "$payload_grub" != "y" ] && [ "$payload_seabios" != "y" ] && \
[ "${payload_uboot}" != "y" ] && \
for configfile in "${targetdir}/config/"*; do
[ -e "${configfile}" ] || continue
$err "target '${board}' defines no payload"
done
[ "${payload_uboot}" != "y" ] && ! check_defconfig "$targetdir" \
&& $err "target '$board' defines no payload"
[ "$payload_uboot" != "n" ] && [ "$payload_uboot" != "y" ] && \
payload_uboot="n"