[coreboot-gerrit] New patch to review for coreboot: 438f77d Add PXE ROM on config menu

Siyuan Wang (wangsiyuanbuaa@gmail.com) gerrit at coreboot.org
Wed Apr 3 11:02:35 CEST 2013


Siyuan Wang (wangsiyuanbuaa at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3013

-gerrit

commit 438f77dfdd0b3e1dd9d5f8ee895204522d94055e
Author: Siyuan Wang <wangsiyuanbuaa at gmail.com>
Date:   Wed Apr 3 17:02:58 2013 +0800

    Add PXE ROM on config menu
    
    Adding a pxe rom manually is inconvenient.
    With this patch, PXE ROM can be added automatically.
    I have tested this patch on AMD Parmer and Thatcher with iPXE.
    
    Change-Id: I2c4fc73fd9ae6c979f0af2290d410935f600e2c8
    Signed-off-by: Siyuan Wang <SiYuan.Wang at amd.com>
    Signed-off-by: Siyuan Wang <wangsiyuanbuaa at gmail.com>
---
 src/arch/x86/Makefile.inc |  3 +++
 src/device/Kconfig        | 29 +++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index bbf2336..ee2bc47 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -113,6 +113,9 @@ endif
 ifeq ($(CONFIG_VBOOT_VERIFY_FIRMWARE),y)
 	$(CBFSTOOL) $@.tmp add-stage -f $(VBOOT_STUB_ELF) -n $(CONFIG_CBFS_PREFIX)/vboot -c $(CBFS_COMPRESS_FLAG)
 endif
+ifeq ($(CONFIG_PXE_ROM),y)
+	$(CBFSTOOL) $@.tmp add -f $(CONFIG_PXE_ROM_FILE) -n pci$(CONFIG_PXE_ROM_ID).rom -t raw
+endif
 	mv $@.tmp $@
 	@printf "    CBFSPRINT  $(subst $(obj)/,,$(@))\n\n"
 	$(CBFSTOOL) $@ print
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 159bc0e..12ff3aa 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -467,3 +467,32 @@ config BOOTSPLASH_FILE
 	  The path and filename of the file to use as graphical bootsplash
 	  screen. The file format has to be jpg.
 endmenu
+
+menu "PXE ROM"
+config PXE_ROM
+	bool "Add a PXE ROM image"
+	help
+	  Select this option if you have a PXE ROM image that you would
+	  like to add to your ROM.
+
+config PXE_ROM_FILE
+	string "PXE ROM filename"
+	depends on PXE_ROM
+	default "10ec8168.rom"
+	help
+	  The path and filename of the file to use as PXE ROM.
+
+config PXE_ROM_ID
+	string "network card PCI IDs"
+	depends on PXE_ROM
+	default "10ec,8168"
+	help
+	  The comma-separated PCI vendor and device ID that would associate
+	  your PXE ROM to your network card.
+
+	  Example: 10ec,8168
+
+	  In the above example 10ec is the PCI vendor ID (in hex, but without
+	  the "0x" prefix) and 8168 specifies the PCI device ID of the
+	  network card (also in hex, without "0x" prefix).
+endmenu



More information about the coreboot-gerrit mailing list