summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-18 22:13:20 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-18 22:13:20 +0100
commit21a7efaa95898f71e3de0850aae294309daac31d (patch)
tree1704423407028431ee9963d4d94d0e120e671acc /script
parent5b5dccd630611922f8d57a27d4f09ae7cf7cde87 (diff)
build/roms: simplified config payload checks
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/roms7
1 files changed, 2 insertions, 5 deletions
diff --git a/script/roms b/script/roms
index 7c181c36..d969d86e 100755
--- a/script/roms
+++ b/script/roms
@@ -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"