[SeaBIOS] [PATCH 0/8] SeaBIOS code to extract config parameters
Kevin O'Connor
kevin at koconnor.net
Wed Jul 6 03:08:36 CEST 2011
This patch series enables SeaBIOS to pull common config settings from
CBFS (on coreboot) or fw_cfg (on QEmu). The series also converts
several compile-time settings to this new dynamic system.
I choose to place the file names in the "etc/" directory so that it is
clear they are configuration settings.
On coreboot, a user would do the following to enable a setting:
/path/to/seabios/tools/encodeint.py boot-menu-wait 5500
./build/cbfstool coreboot.rom add boot-menu-wait etc/boot-menu-wait raw
./build/cbfstool coreboot.rom print
See the patch descriptions below for the six compile-time settings
that are converted.
-Kevin
Kevin O'Connor (8):
Add "romfile" code to assist with extract integer config settings.
Replace CONFIG_BOOTMENU_WAIT with dynamic "etc/boot-menu-wait" file.
Replace CONFIG_EXTRA_PCI_ROOTS with dynamic "etc/extra-pci-roots"
file.
Replace CONFIG_PS2_KEYBOARD_SPINUP with "etc/ps2-keyboard-spinup"
file.
Replace "CONFIG_OPTIONROMS_CHECKSUM" with "etc/optionroms-checksum"
file.
Replace CONFIG_S3_RESUME_VGA_INIT with "etc/s3-resume-vga-init" file.
Replace CONFIG_SCREEN_AND_DEBUG with "etc/screen-and-debug" file.
Add utility "tools/encodeint.py" for CBFS config file creation.
src/Kconfig | 50 --------------------------------------------------
src/boot.c | 5 ++++-
src/optionroms.c | 14 ++++++++++++--
src/output.c | 4 ++--
src/paravirt.c | 19 +++++++++++++++++++
src/paravirt.h | 2 ++
src/pci.c | 8 ++++----
src/ps2port.c | 6 ++++--
src/util.h | 1 +
tools/encodeint.py | 21 +++++++++++++++++++++
10 files changed, 69 insertions(+), 61 deletions(-)
create mode 100755 tools/encodeint.py
--
1.7.4.4
More information about the SeaBIOS
mailing list