From ea6d6e8c1f1e5785d5c41029f3bb76e726aece6c Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 14 May 2013 15:14:08 +0200 Subject: [PATCH] intel/bd82x6x: Add option to include ethernet firmware Change-Id: Idf804ed29a67bad732df19e6981f74c8d0c354b5 Signed-off-by: Nico Huber Reviewed-on: http://review.coreboot.org/3388 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/southbridge/intel/bd82x6x/Kconfig | 13 +++++++++++++ src/southbridge/intel/bd82x6x/Makefile.inc | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/src/southbridge/intel/bd82x6x/Kconfig b/src/southbridge/intel/bd82x6x/Kconfig index 5dd492c182..79c812eaa9 100644 --- a/src/southbridge/intel/bd82x6x/Kconfig +++ b/src/southbridge/intel/bd82x6x/Kconfig @@ -59,6 +59,19 @@ config HPET_MIN_TICKS hex default 0x80 +config HAVE_GBE_BIN + bool "Add gigabit ethernet firmware" + default n + help + The integrated gigabit ethernet controller needs a firmware file. + Select this if you are going to use the PCH integrated controller + and have the firmware. + +config GBE_BIN_PATH + string "Path to gigabit ethernet firmware" + depends on HAVE_GBE_BIN + default "3rdparty/mainboard/$(MAINBOARDDIR)/gbe.bin" + config LOCK_MANAGEMENT_ENGINE bool "Lock Management Engine section" default n diff --git a/src/southbridge/intel/bd82x6x/Makefile.inc b/src/southbridge/intel/bd82x6x/Makefile.inc index bc3ff4bbdf..f833ba1189 100644 --- a/src/southbridge/intel/bd82x6x/Makefile.inc +++ b/src/southbridge/intel/bd82x6x/Makefile.inc @@ -63,6 +63,13 @@ bd82x6x_add_me: $(obj)/coreboot.pre $(IFDTOOL) -i ME:3rdparty/mainboard/$(MAINBOARDDIR)/me.bin \ $(obj)/coreboot.pre mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre +ifeq ($(CONFIG_HAVE_GBE_BIN),y) + printf " IFDTOOL gbe.bin -> coreboot.pre\n" + $(objutil)/ifdtool/ifdtool \ + -i GbE:$(CONFIG_GBE_BIN_PATH) \ + $(obj)/coreboot.pre + mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre +endif ifeq ($(CONFIG_LOCK_MANAGEMENT_ENGINE),y) printf " IFDTOOL Locking Management Engine\n" $(objutil)/ifdtool/ifdtool -l $(obj)/coreboot.pre