diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2017-01-10 15:44:47 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-01-26 17:59:17 +0100 |
commit | ec74f45e725c046423ecb6a7608678f22a8d7224 (patch) | |
tree | 58f151743f2c2055dfd44bd2ad66bce0054b6a5c /src/drivers/net/Makefile.inc | |
parent | f6776fa62c84ae516f84c99859d826f77d508079 (diff) | |
download | coreboot-ec74f45e725c046423ecb6a7608678f22a8d7224.tar.xz |
drivers/net/rt8168: Add a macaddress cbfsfile using Kconfig
The default macaddress in rt8168.c can be changed with a cbfsfile
called macaddress. This patch makes it possible to add such a file
using Kconfig at build time.
This also changes the name of the cbfsfile from "macaddress" to
"rt8168-macaddress" to avoid confusion.
Change-Id: I24674d8df11845167b837b79344427ce0c67f4fb
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/18088
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/drivers/net/Makefile.inc')
-rw-r--r-- | src/drivers/net/Makefile.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/net/Makefile.inc b/src/drivers/net/Makefile.inc index e435d483e7..20dbe50fb1 100644 --- a/src/drivers/net/Makefile.inc +++ b/src/drivers/net/Makefile.inc @@ -1,3 +1,13 @@ romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c ramstage-$(CONFIG_REALTEK_8168_RESET) += r8168.c + +ifneq ($(CONFIG_REALTEK_8168_MACADDRESS),"") +$(obj)/rt8168-macaddress: $(DOTCONFIG) + echo " Creating a file holding the rt8168 macaddress" + printf %s $(CONFIG_REALTEK_8168_MACADDRESS) > $@ + +cbfs-files-$(CONFIG_REALTEK_8168_RESET) += rt8168-macaddress +rt8168-macaddress-file := $(obj)/rt8168-macaddress +rt8168-macaddress-type := raw +endif |