build/roms: warn if grub_scan_disk is not set at all

fsdg20230625
Leah Rowe 2021-11-30 18:44:08 +00:00
parent c7944c0e01
commit 4b64e34fc2
1 changed files with 6 additions and 1 deletions

View File

@ -49,7 +49,7 @@ fi
# Workaround to grub's slow boot
grub_scan_disk="both" # both: scan ata and ahci (slow), there is ata and ahci too
grub_scan_disk="undefined" # both: scan ata and ahci (slow), there is ata and ahci too
# as an option
cbtree="undefined"
romtype="normal" # optional parameter in board.cfg. "normal" is default
@ -65,6 +65,11 @@ payload_memtest="n"
# Override the above defaults using board.cfg
source "resources/coreboot/${board}/board.cfg"
if [ "${grub_scan_disk}" = "undefined" ]; then
printf "build/roms: Target %s does not define grub_scan_disk. Defaulting to 'both'.\n" "${board}"
grub_scan_disk="both"
fi
if [ "${grub_scan_disk}" != "both" ] && \
[ "${grub_scan_disk}" != "ata" ] && \
[ "${grub_scan_disk}" != "ahci" ]; then