diff options
Diffstat (limited to 'src/drivers/net/Makefile.mk')
-rw-r--r-- | src/drivers/net/Makefile.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/drivers/net/Makefile.mk b/src/drivers/net/Makefile.mk new file mode 100644 index 0000000000..9ba459b25a --- /dev/null +++ b/src/drivers/net/Makefile.mk @@ -0,0 +1,27 @@ +## SPDX-License-Identifier: GPL-2.0-only + +bootblock-$(CONFIG_CONSOLE_NE2K) += ne2k.c +romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c +ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c +ramstage-$(CONFIG_REALTEK_8168_RESET) += r8168.c +ramstage-$(CONFIG_ATHEROS_ATL1E_SETMAC) += atl1e.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 + +ifneq ($(CONFIG_ATHEROS_ATL1E_MACADDRESS),"") +$(obj)/atl1e-macaddress: $(DOTCONFIG) + echo " Creating a file holding the atl1e macaddress" + printf %s $(CONFIG_ATHEROS_ATL1E_MACADDRESS) > $@ + +cbfs-files-$(CONFIG_ATHEROS_ATL1E_SETMAC) += atl1e-macaddress +atl1e-macaddress-file := $(obj)/atl1e-macaddress +atl1e-macaddress-type := raw +endif |