Add grub configuration to make booting different payloads easier
This commit is contained in:
16
grub.sh
Executable file
16
grub.sh
Executable 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
6
grub/grub.cfg
Normal file
@@ -0,0 +1,6 @@
|
||||
insmod regexp
|
||||
for img in (cbfsdisk)/img/* ; do
|
||||
menuentry "$img" {
|
||||
chainloader "$1"
|
||||
}
|
||||
done
|
BIN
grub/seabios
Normal file
BIN
grub/seabios
Normal file
Binary file not shown.
BIN
grub/tianocore
Normal file
BIN
grub/tianocore
Normal file
Binary file not shown.
Reference in New Issue
Block a user