roms: don't insert timeout.cfg
this is bloat, because it's something the user can already do at runtime configuration anyway. set it to a reasonable default of 8 seconds instead of 5, and don't honour the timeout variable in target.cfg. this will be documented in the next release. Signed-off-by: Leah Rowe <leah@libreboot.org>audit2
parent
98fc84b0ed
commit
c2ca92a169
|
@ -2,5 +2,4 @@ tree="default"
|
||||||
xarch="i386-elf"
|
xarch="i386-elf"
|
||||||
payload_seabios="y"
|
payload_seabios="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
grub_timeout=10
|
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -2,6 +2,5 @@ tree="default"
|
||||||
xarch="i386-elf"
|
xarch="i386-elf"
|
||||||
payload_seabios="y"
|
payload_seabios="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
grub_timeout=10
|
|
||||||
release="n"
|
release="n"
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -2,5 +2,4 @@ tree="default"
|
||||||
xarch="i386-elf"
|
xarch="i386-elf"
|
||||||
payload_seabios="y"
|
payload_seabios="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
grub_timeout=10
|
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -4,6 +4,5 @@ payload_seabios="y"
|
||||||
payload_seabios_withgrub="y"
|
payload_seabios_withgrub="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
xlang="c"
|
xlang="c"
|
||||||
grub_timeout=10
|
|
||||||
grub_scan_disk="nvme ahci"
|
grub_scan_disk="nvme ahci"
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -5,6 +5,5 @@ payload_seabios="y"
|
||||||
payload_seabios_withgrub="y"
|
payload_seabios_withgrub="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
xlang="c"
|
xlang="c"
|
||||||
grub_timeout=10
|
|
||||||
grub_scan_disk="nvme ahci"
|
grub_scan_disk="nvme ahci"
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -3,4 +3,3 @@ xarch="i386-elf"
|
||||||
payload_seabios="y"
|
payload_seabios="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
xlang="c"
|
xlang="c"
|
||||||
grub_timeout=10
|
|
||||||
|
|
|
@ -4,4 +4,3 @@ payload_seabios="y"
|
||||||
payload_seabios_withgrub="y"
|
payload_seabios_withgrub="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
xlang="c"
|
xlang="c"
|
||||||
grub_timeout=10
|
|
||||||
|
|
|
@ -4,6 +4,5 @@ payload_seabios="y"
|
||||||
payload_seabios_withgrub="y"
|
payload_seabios_withgrub="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
xlang="c"
|
xlang="c"
|
||||||
grub_timeout=10
|
|
||||||
grub_scan_disk="nvme ahci"
|
grub_scan_disk="nvme ahci"
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -4,6 +4,5 @@ payload_seabios="y"
|
||||||
payload_seabios_withgrub="y"
|
payload_seabios_withgrub="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
xlang="c"
|
xlang="c"
|
||||||
grub_timeout=10
|
|
||||||
grub_scan_disk="nvme ahci"
|
grub_scan_disk="nvme ahci"
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -5,6 +5,5 @@ payload_seabios="y"
|
||||||
payload_seabios_withgrub="y"
|
payload_seabios_withgrub="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
xlang="c"
|
xlang="c"
|
||||||
grub_timeout=10
|
|
||||||
grub_scan_disk="nvme ahci"
|
grub_scan_disk="nvme ahci"
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -5,6 +5,5 @@ payload_seabios="y"
|
||||||
payload_seabios_withgrub="y"
|
payload_seabios_withgrub="y"
|
||||||
payload_memtest="y"
|
payload_memtest="y"
|
||||||
xlang="c"
|
xlang="c"
|
||||||
grub_timeout=10
|
|
||||||
grub_scan_disk="nvme ahci"
|
grub_scan_disk="nvme ahci"
|
||||||
grubtree="nvme"
|
grubtree="nvme"
|
||||||
|
|
|
@ -53,7 +53,7 @@ set default="0"
|
||||||
if [ -f (cbfsdisk)/timeout.cfg ]; then
|
if [ -f (cbfsdisk)/timeout.cfg ]; then
|
||||||
source (cbfsdisk)/timeout.cfg
|
source (cbfsdisk)/timeout.cfg
|
||||||
else
|
else
|
||||||
set timeout=5
|
set timeout=8
|
||||||
fi
|
fi
|
||||||
set grub_scan_disk="ahci ata"
|
set grub_scan_disk="ahci ata"
|
||||||
if [ -f (cbfsdisk)/scan.cfg ]; then
|
if [ -f (cbfsdisk)/scan.cfg ]; then
|
||||||
|
|
|
@ -53,7 +53,7 @@ set default="0"
|
||||||
if [ -f (cbfsdisk)/timeout.cfg ]; then
|
if [ -f (cbfsdisk)/timeout.cfg ]; then
|
||||||
source (cbfsdisk)/timeout.cfg
|
source (cbfsdisk)/timeout.cfg
|
||||||
else
|
else
|
||||||
set timeout=5
|
set timeout=8
|
||||||
fi
|
fi
|
||||||
set grub_scan_disk="nvme ahci ata"
|
set grub_scan_disk="nvme ahci ata"
|
||||||
if [ -f (cbfsdisk)/scan.cfg ]; then
|
if [ -f (cbfsdisk)/scan.cfg ]; then
|
||||||
|
|
|
@ -54,7 +54,7 @@ set default="0"
|
||||||
if [ -f (cbfsdisk)/timeout.cfg ]; then
|
if [ -f (cbfsdisk)/timeout.cfg ]; then
|
||||||
source (cbfsdisk)/timeout.cfg
|
source (cbfsdisk)/timeout.cfg
|
||||||
else
|
else
|
||||||
set timeout=5
|
set timeout=8
|
||||||
fi
|
fi
|
||||||
set grub_scan_disk="nvme ahci ata"
|
set grub_scan_disk="nvme ahci ata"
|
||||||
if [ -f (cbfsdisk)/scan.cfg ]; then
|
if [ -f (cbfsdisk)/scan.cfg ]; then
|
||||||
|
|
10
script/roms
10
script/roms
|
@ -17,7 +17,6 @@ rp2040x="$rp2040src/build/pico_serprog.uf2"
|
||||||
picosdk="src/pico-sdk"
|
picosdk="src/pico-sdk"
|
||||||
stm32src="src/stm32-vserprog"
|
stm32src="src/stm32-vserprog"
|
||||||
stm32x="$stm32src/stm32-vserprog.hex"
|
stm32x="$stm32src/stm32-vserprog.hex"
|
||||||
tmpcfg="$tmpdir/tmpcfg"
|
|
||||||
|
|
||||||
# Disable all payloads by default.
|
# Disable all payloads by default.
|
||||||
# target.cfg files have to specifically enable [a] payload(s)
|
# target.cfg files have to specifically enable [a] payload(s)
|
||||||
|
@ -217,12 +216,9 @@ build_grub_roms()
|
||||||
# we only need insert grub.elf once, for each coreboot config:
|
# we only need insert grub.elf once, for each coreboot config:
|
||||||
cbfs "$tmprom" "$grubelf" "$grub_cbfs"
|
cbfs "$tmprom" "$grubelf" "$grub_cbfs"
|
||||||
|
|
||||||
printf "set grub_scan_disk=\"%s\"\n" "$grub_scan_disk" > "$tmpcfg" || \
|
printf "set grub_scan_disk=\"%s\"\n" "$grub_scan_disk" \
|
||||||
$err "set grub_scan_disk, $grub_scan_disk, $tmpcfg"
|
> "$tmpdir/tmpcfg" || $err "set grub_scan_disk, $grub_scan_disk"
|
||||||
cbfs "$tmprom" "$tmpcfg" scan.cfg raw
|
cbfs "$tmprom" "$tmpdir/tmpcfg" scan.cfg raw
|
||||||
|
|
||||||
printf "set timeout=%s\n" "$grub_timeout" > "$tmpcfg" || $err "!time"
|
|
||||||
[ -z "$grub_timeout" ] || cbfs "$tmprom" "$tmpcfg" timeout.cfg raw
|
|
||||||
|
|
||||||
newrom="$romdir/${payload1}_${board}_${initmode}_$displaymode.rom"
|
newrom="$romdir/${payload1}_${board}_${initmode}_$displaymode.rom"
|
||||||
[ "$initmode" = "normal" ] && newrom="$romdir/${payload1}_" \
|
[ "$initmode" = "normal" ] && newrom="$romdir/${payload1}_" \
|
||||||
|
|
Loading…
Reference in New Issue