build/boot/rom: only insert scan.cfg if needed
where it is set to "both" (grub_scan_disk), inserting scan.cfg is superfluous, because grub.cfg defaults to both anyway, unless otherwise specified by scan.cfg, and only if that file exists within cbfs. thus, save a bit of build time (only a slight saving) Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
0e3f3efcaa
commit
e9e4ada55f
|
@ -376,7 +376,8 @@ build_grub_roms() {
|
|||
printf "set grub_scan_disk=\"%s\"\n" "${grub_scan_disk}" > \
|
||||
"${tmpcfg}" || \
|
||||
err "mkGrubRom: cannot insert into temporary scan.cfg"
|
||||
"${cbfstool}" "${tmprompath}" add -f "${tmpcfg}" -n scan.cfg \
|
||||
[ "${grub_scan_disk}" = "both" ] || \
|
||||
"${cbfstool}" "${tmprompath}" add -f "${tmpcfg}" -n scan.cfg \
|
||||
-t raw || err "mkGrubROM: cannot insert scan.cfg into CBFS"
|
||||
printf "set timeout=%s\n" "${grub_timeout}" > "${tmpcfg}" || \
|
||||
err "mkGrubRom: cannot insert into temporary timeout.cfg"
|
||||
|
|
Loading…
Reference in New Issue