build/roms: warn if grub_scan_disk is not set at all
This commit is contained in:
parent
c7944c0e01
commit
4b64e34fc2
|
@ -49,7 +49,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# Workaround to grub's slow boot
|
# 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
|
# as an option
|
||||||
cbtree="undefined"
|
cbtree="undefined"
|
||||||
romtype="normal" # optional parameter in board.cfg. "normal" is default
|
romtype="normal" # optional parameter in board.cfg. "normal" is default
|
||||||
|
@ -65,6 +65,11 @@ payload_memtest="n"
|
||||||
# Override the above defaults using board.cfg
|
# Override the above defaults using board.cfg
|
||||||
source "resources/coreboot/${board}/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" ] && \
|
if [ "${grub_scan_disk}" != "both" ] && \
|
||||||
[ "${grub_scan_disk}" != "ata" ] && \
|
[ "${grub_scan_disk}" != "ata" ] && \
|
||||||
[ "${grub_scan_disk}" != "ahci" ]; then
|
[ "${grub_scan_disk}" != "ahci" ]; then
|
||||||
|
|
Loading…
Reference in New Issue