diff options
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 |