[coreboot-gerrit] Change in coreboot[master]: [util/vgabios_extract] hookup to build system
Thomas Weißschuh (Code Review)
gerrit at coreboot.org
Sat Dec 30 20:49:28 CET 2017
Thomas Weißschuh has uploaded this change for review. ( https://review.coreboot.org/23049
Change subject: [util/vgabios_extract] hookup to build system
......................................................................
[util/vgabios_extract] hookup to build system
Allows the automatic extraction and usage of a VGA BIOS from an UEFI
dump.
Change-Id: I859cbc788a31b9a3e41c13ee7faccbc422505386
Signed-off-by: Thomas Weißschuh <thomas at t-8ch.de>
---
M src/arch/x86/Makefile.inc
M src/device/Kconfig
2 files changed, 30 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/23049/1
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index cc227b3..3f2f1e4 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -38,9 +38,24 @@
$(NVRAMTOOL) -y $(top)/src/mainboard/$(MAINBOARDDIR)/cmos.layout -H $@
endif # CONFIG_HAVE_OPTION_TABLE
+vgabios-rom=$(obj)/vgabios.rom
+
+ifeq ($(CONFIG_VGA_BIOS_EXTRACT),y)
+
+$(vgabios-rom): $(call strip_quotes,$(CONFIG_VGA_BIOS_EXTRACT_FILE))
+ @printf " VGA_BIOS_EXTRACT $(CONFIG_VGA_BIOS_EXTRACT_FILE) $(vgabios-rom)\n"
+ util/vgabios_extract/vgabios_extract.py $(CONFIG_VGA_BIOS_EXTRACT_FILE) $(vgabios-rom)
+
+else
+
+$(vgabios-rom): $(call strip_quotes,$(CONFIG_VGA_BIOS_FILE))
+ $(CP) $(vgabios-rom) $(CONFIG_VGA_BIOS_FILE)
+
+endif
+
stripped_vgabios_id = $(call strip_quotes,$(CONFIG_VGA_BIOS_ID))
cbfs-files-$(CONFIG_VGA_BIOS) += pci$(stripped_vgabios_id).rom
-pci$(stripped_vgabios_id).rom-file := $(call strip_quotes,$(CONFIG_VGA_BIOS_FILE))
+pci$(stripped_vgabios_id).rom-file := $(vgabios-rom)
pci$(stripped_vgabios_id).rom-type := optionrom
cbfs-files-$(CONFIG_INTEL_MBI) += mbi.bin
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 28298d5..a6b1168 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -566,11 +566,23 @@
like to add to your ROM.
You will be able to specify the location and file name of the
- image later.
+ false
+
+config VGA_BIOS_EXTRACT
+ bool "Extract VGA BIOS from BIOS image"
+ depends on VGA_BIOS
+ default n
+
+config VGA_BIOS_EXTRACT_FILE
+ string "VGA BIOS extract path and filename"
+ depends on VGA_BIOS_EXTRACT
+ default "3rdpart/blobs/mainboard/$(MAINBOARDDIR)/bios.bin"
+ help
+ The path and filename of the file to extract the VGA BIOS from.
config VGA_BIOS_FILE
string "VGA BIOS path and filename"
- depends on VGA_BIOS
+ depends on VGA_BIOS && !VGA_BIOS_EXTRACT
default "vgabios.bin"
help
The path and filename of the file to use as VGA BIOS.
--
To view, visit https://review.coreboot.org/23049
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I859cbc788a31b9a3e41c13ee7faccbc422505386
Gerrit-Change-Number: 23049
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Weißschuh <thomas at t-8ch.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171230/f3866277/attachment.html>
More information about the coreboot-gerrit
mailing list