component.mk 365 B

12345678910111213141516
  1. #
  2. # Component Makefile
  3. #
  4. COMPONENT_ADD_INCLUDEDIRS := include
  5. COMPONENT_SRCDIRS := src
  6. ifndef CONFIG_ETH_USE_ESP32_EMAC
  7. COMPONENT_OBJEXCLUDE += src/esp_eth_mac_esp32.o
  8. endif
  9. ifndef CONFIG_ETH_SPI_ETHERNET_DM9051
  10. COMPONENT_OBJEXCLUDE += src/esp_eth_mac_dm9051.o src/esp_eth_phy_dm9051.o
  11. endif
  12. # uses C11 atomic feature
  13. src/esp_eth.o: CFLAGS += -std=gnu11