[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/20] build/boot/roms: support "normal" seabios configs
|
From: |
Leah Rowe |
|
Subject: |
[PATCH 14/20] build/boot/roms: support "normal" seabios configs |
|
Date: |
Sun, 14 Jan 2024 15:55:31 +0000 |
From: Leah Rowe <leah@libreboot.org>
in the "normal" setup, seabios loads a vga option rom and
coreboot provides no video initialisation (native or vgarom).
this would be used if GNU Boot were to add support for a
desktop computer that lacks onboard graphics.
with this patch, that use-case is handled properly, matching
the same behaviour in canoeboot's build system as of
canoeboot 20231103.
Signed-off-by: Leah Rowe <leah@libreboot.org>
---
resources/packages/roms_helper/boot | 4 ++--
resources/packages/seabios/payload | 8 ++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/resources/packages/roms_helper/boot
b/resources/packages/roms_helper/boot
index 1e6e311..84f0555 100755
--- a/resources/packages/roms_helper/boot
+++ b/resources/packages/roms_helper/boot
@@ -254,7 +254,7 @@ make_seabios_rom() {
cbfstool_path="${5}"
if [ "${target_initmode}" = "normal" ]; then
- target_seabioself="payload/seabios/seabios_vgarom.elf"
+ target_seabioself="payload/seabios/seabios_normal.elf"
# if normal, etc/pci-optionrom-exec will be set to 2
else
target_seabioself="payload/seabios/seabios_${target_initmode}.elf"
@@ -335,7 +335,7 @@ mkRomsWithGrub() {
if [ "${payload_grub_withseabios}" = "y" ] && [ "${firstpayloadname}" =
"grub" ]; then
mv "$(make_seabios_rom "${tmprompath}" "seabios.elf"
"${seabios_opromloadonly}" "${initmode}" "${cbfstool}")" "${tmprompath}"
- elif [ "${payload_seabios_withgrub}" ] && [ "${firstpayloadname}" !=
"grub" ]; then
+ elif [ "${payload_seabios_withgrub}" = "y" ] && [ "${firstpayloadname}"
!= "grub" ]; then
mv "$(make_seabios_rom "${tmprompath}" "fallback/payload"
"${seabios_opromloadonly}" "${initmode}" "${cbfstool}")" "${tmprompath}"
if [ "${firstpayloadname}" = "seabios_grubfirst" ]; then
tmpbootorder=$(mktemp -t coreboot_rom.XXXXXXXXXX)
diff --git a/resources/packages/seabios/payload
b/resources/packages/seabios/payload
index 9120bff..92f06b5 100755
--- a/resources/packages/seabios/payload
+++ b/resources/packages/seabios/payload
@@ -54,6 +54,14 @@ make -j$(nproc)
mv out/bios.bin.elf ../payload/seabios/seabios_vgarom.elf
rm .config
+# for normal setup:
+[[ -f Makefile ]] && make distclean
+cp ../resources/seabios/config/normal .config
+make silentoldconfig -j$(nproc)
+make -j$(nproc)
+mv out/bios.bin.elf ../payload/seabios/seabios_normal.elf
+rm .config
+
# clean it again. gotta keep it clean!
[[ -f Makefile ]] && make distclean
--
2.39.2
- [PATCH 01/20] Use GRUB 2.12, Leah Rowe, 2024/01/14
- [PATCH 03/20] GRUB: Force scancode set 2 with translation, Leah Rowe, 2024/01/14
- [PATCH 05/20] GRUB: Avoid printing frivilous error messages, Leah Rowe, 2024/01/14
- [PATCH 04/20] GRUB: Don't spew "Unknown key 0xFF", Leah Rowe, 2024/01/14
- [PATCH 02/20] Argon2 KDF support in GRUB 2.12, Leah Rowe, 2024/01/14
- [PATCH 06/20] GRUB: Use reduced set of modules, Leah Rowe, 2024/01/14
- [PATCH 07/20] grub.cfg: support ESP, btrfs subvols and extlinux, Leah Rowe, 2024/01/14
- [PATCH 09/20] build/boot/roms: skip building gnat on fam15h, Leah Rowe, 2024/01/14
- [PATCH 11/20] import util/dell-flash-unlock from lbmk 09bed9a4, Leah Rowe, 2024/01/14
- [PATCH 10/20] NEW MAINBOARD: Dell Latitude E6400, Leah Rowe, 2024/01/14
- [PATCH 14/20] build/boot/roms: support "normal" seabios configs,
Leah Rowe <=
- [PATCH 13/20] use seabios revision from canoeboot 20231103, Leah Rowe, 2024/01/14
- [PATCH 12/20] import util/nvmutil from lbmk 09bed9a4, Leah Rowe, 2024/01/14
- [PATCH 15/20] coreboot/e6400_4mb: enable the grub payload, Leah Rowe, 2024/01/14
- [PATCH 08/20] Use newer coreboot revision from canoeboot 102ce12, Leah Rowe, 2024/01/14
- [PATCH 17/20] build/module/grub: disable -Werror on builds, Leah Rowe, 2024/01/14
- [PATCH 18/20] coreboot/fam15h: fix binutils build error on gcc13, Leah Rowe, 2024/01/14
- [PATCH 16/20] cache cbfstool and ifdtool builds, Leah Rowe, 2024/01/14
- [PATCH 19/20] use memtest86plus 6.x instead of 5.x, Leah Rowe, 2024/01/14
- [PATCH 20/20] Add support for google gru_bob and gru_kevin, Leah Rowe, 2024/01/14