re-affirm SeaGRUB as the primary payload
GRUB-as-primary was temporarily allowed in lbmk, because of a temporary SeaBIOS bug on a machine that canoeboot doesn't actually support yet, namely the 3050 Micro. This same diff was also applied to lbmk, but lbmk also applied changes to a coreboot config for the aforementioned mainboard. Signed-off-by: Leah Rowe <leah@libreboot.org>master
parent
cee363c6d5
commit
121f3e304e
|
@ -120,10 +120,9 @@ mkcorebootbin()
|
||||||
|
|
||||||
add_seabios()
|
add_seabios()
|
||||||
{
|
{
|
||||||
[ -n "$seabiosname" ] || seabiosname="fallback/payload"
|
|
||||||
_seabioself="elf/seabios/default/$initmode/bios.bin.elf"
|
_seabioself="elf/seabios/default/$initmode/bios.bin.elf"
|
||||||
|
|
||||||
cbfs "$tmprom" "$_seabioself" "$seabiosname"
|
cbfs "$tmprom" "$_seabioself" "fallback/payload"
|
||||||
x_ "$cbfstool" "$tmprom" add-int -i 3000 -n etc/ps2-keyboard-spinup
|
x_ "$cbfstool" "$tmprom" add-int -i 3000 -n etc/ps2-keyboard-spinup
|
||||||
|
|
||||||
_z="2"; [ "$initmode" = "vgarom" ] && _z="0"
|
_z="2"; [ "$initmode" = "vgarom" ] && _z="0"
|
||||||
|
@ -137,14 +136,12 @@ add_seabios()
|
||||||
|
|
||||||
[ "$payload_grub" = "y" ] && add_grub
|
[ "$payload_grub" = "y" ] && add_grub
|
||||||
|
|
||||||
[ "$seabiosname" = "fallback/payload" ] && cprom
|
cprom && [ "$payload_grub" = "y" ] && pname="seagrub" && mkseagrub; :
|
||||||
[ "$payload_grub" = "y" ] && pname="seagrub" && mkseagrub; :
|
|
||||||
}
|
}
|
||||||
|
|
||||||
add_grub()
|
add_grub()
|
||||||
{
|
{
|
||||||
[ -n "$grubname" ] || grubname="img/grub2"
|
cbfs "$tmprom" "$grubelf" "img/grub2"
|
||||||
cbfs "$tmprom" "$grubelf" "$grubname"
|
|
||||||
printf "set grub_scan_disk=\"%s\"\n" "$grub_scan_disk" \
|
printf "set grub_scan_disk=\"%s\"\n" "$grub_scan_disk" \
|
||||||
> "$TMPDIR/tmpcfg" || $err "$target: !insert scandisk"
|
> "$TMPDIR/tmpcfg" || $err "$target: !insert scandisk"
|
||||||
cbfs "$tmprom" "$TMPDIR/tmpcfg" scan.cfg raw
|
cbfs "$tmprom" "$TMPDIR/tmpcfg" scan.cfg raw
|
||||||
|
@ -152,7 +149,6 @@ add_grub()
|
||||||
|
|
||||||
mkseagrub()
|
mkseagrub()
|
||||||
{
|
{
|
||||||
[ "$grubname" = "fallback/payload" ] && pname="grub"
|
|
||||||
cbfs "$tmprom" "$grubdata/bootorder" bootorder raw
|
cbfs "$tmprom" "$grubdata/bootorder" bootorder raw
|
||||||
for keymap in config/data/grub/keymap/*.gkb; do
|
for keymap in config/data/grub/keymap/*.gkb; do
|
||||||
[ -f "$keymap" ] && cprom "${keymap##*/}"; :
|
[ -f "$keymap" ] && cprom "${keymap##*/}"; :
|
||||||
|
|
|
@ -12,8 +12,7 @@ set -u -e
|
||||||
eval `setvars "" xarch srcdir premake cmakedir xlang mode makeargs elfdir cmd \
|
eval `setvars "" xarch srcdir premake cmakedir xlang mode makeargs elfdir cmd \
|
||||||
project target target_dir targets xtree _f release bootstrapargs mkhelper \
|
project target target_dir targets xtree _f release bootstrapargs mkhelper \
|
||||||
autoconfargs listfile autogenargs btype tree rev tree_depend build_depend \
|
autoconfargs listfile autogenargs btype tree rev tree_depend build_depend \
|
||||||
defconfig postmake mkhelpercfg dry dest_dir mdir cleanargs seabiosname \
|
defconfig postmake mkhelpercfg dry dest_dir mdir cleanargs`; badhash="n"
|
||||||
grubname`; badhash="n"
|
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
@ -113,7 +112,7 @@ configure_project()
|
||||||
{
|
{
|
||||||
eval `setvars "" xarch xlang build_depend autoconfargs xtree postmake \
|
eval `setvars "" xarch xlang build_depend autoconfargs xtree postmake \
|
||||||
tree_depend makeargs btype mkhelper bootstrapargs premake release \
|
tree_depend makeargs btype mkhelper bootstrapargs premake release \
|
||||||
cleanargs grubname seabiosname`
|
cleanargs`
|
||||||
_tcfg="$1/target.cfg"; badhash="n"; [ -f "$_tcfg" ] || btype="auto"
|
_tcfg="$1/target.cfg"; badhash="n"; [ -f "$_tcfg" ] || btype="auto"
|
||||||
[ -f "$datadir/mkhelper.cfg" ] && eval `setcfg "$datadir/mkhelper.cfg"`
|
[ -f "$datadir/mkhelper.cfg" ] && eval `setcfg "$datadir/mkhelper.cfg"`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue