component.mk 456 B

1234567891011121314151617181920
  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. ifndef CONFIG_ETH_USE_OPENETH
  13. COMPONENT_OBJEXCLUDE += src/esp_eth_mac_openeth.o
  14. endif
  15. # uses C11 atomic feature
  16. src/esp_eth.o: CFLAGS += -std=gnu11