build/roms: warn when grub_scan_disk is set incorrectly

fsdg20230625
Leah Rowe 2021-11-30 18:40:27 +00:00
parent c87b6f6369
commit c7944c0e01
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ source "resources/coreboot/${board}/board.cfg"
if [ "${grub_scan_disk}" != "both" ] && \
[ "${grub_scan_disk}" != "ata" ] && \
[ "${grub_scan_disk}" != "ahci" ]; then
printf "build/roms: Target %s defines an invalid grub_scan_disk setting. Defaulting to 'both'.\n" "${board}"
grub_scan_disk="both"
# erroring out would be silly. just use the default
fi