2019-04-10 04:24:50 -04:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS := include
|
|
|
|
COMPONENT_SRCDIRS := src
|
|
|
|
|
2019-07-12 05:58:45 -04:00
|
|
|
ifndef CONFIG_ETH_USE_ESP32_EMAC
|
2019-04-10 04:24:50 -04:00
|
|
|
COMPONENT_OBJEXCLUDE += src/esp_eth_mac_esp32.o
|
|
|
|
endif
|
2019-06-25 07:36:56 -04:00
|
|
|
|
|
|
|
ifndef CONFIG_ETH_SPI_ETHERNET_DM9051
|
|
|
|
COMPONENT_OBJEXCLUDE += src/esp_eth_mac_dm9051.o src/esp_eth_phy_dm9051.o
|
|
|
|
endif
|
2019-10-01 12:50:34 -04:00
|
|
|
|
2020-11-05 23:17:18 -05:00
|
|
|
ifndef CONFIG_ETH_SPI_ETHERNET_W5500
|
|
|
|
COMPONENT_OBJEXCLUDE += src/esp_eth_mac_w5500.o src/esp_eth_phy_w5500.o
|
|
|
|
endif
|
|
|
|
|
2021-02-28 22:39:23 -05:00
|
|
|
ifndef CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL
|
|
|
|
COMPONENT_OBJEXCLUDE += src/esp_eth_mac_ksz8851snl.o src/esp_eth_phy_ksz8851snl.o
|
|
|
|
endif
|
|
|
|
|
2019-10-01 12:50:34 -04:00
|
|
|
ifndef CONFIG_ETH_USE_OPENETH
|
|
|
|
COMPONENT_OBJEXCLUDE += src/esp_eth_mac_openeth.o
|
|
|
|
endif
|
2019-11-26 04:48:38 -05:00
|
|
|
|
|
|
|
# uses C11 atomic feature
|
|
|
|
src/esp_eth.o: CFLAGS += -std=gnu11
|