component.mk 576 B

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