Add grub configuration to make booting different payloads easier

This commit is contained in:
Jeremy Soller
2019-02-26 20:57:03 -07:00
parent 70f3ad9dc5
commit 9e635d2c87
5 changed files with 22 additions and 0 deletions

16
grub.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
./util/scripts/config --disable PAYLOAD_SEABIOS
./util/scripts/config --enable PAYLOAD_GRUB2
make olddefconfig
make -j $(nproc)
./build/cbfstool build/coreboot.rom add -t raw -f grub/vga -n vgaroms/sgabios.bin
./build/cbfstool build/coreboot.rom add -t raw -f grub/grub.cfg -n etc/grub.cfg
./build/cbfstool build/coreboot.rom add-payload -f grub/seabios -n img/seabios
./build/cbfstool build/coreboot.rom add-payload -f grub/tianocore -n img/tianocore
./build/cbfstool build/coreboot.rom print

6
grub/grub.cfg Normal file
View File

@@ -0,0 +1,6 @@
insmod regexp
for img in (cbfsdisk)/img/* ; do
menuentry "$img" {
chainloader "$1"
}
done

BIN
grub/seabios Normal file

Binary file not shown.

BIN
grub/tianocore Normal file

Binary file not shown.

BIN
grub/vga Normal file

Binary file not shown.