mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user