Files
esp-idf/components/esp_hal_emac/CMakeLists.txt
glmfe 9fd020d9da refactor(hal): graduate emac hal into a new component
- Separate emac from hal component to a new one: esp_hal_emac.
2025-11-12 06:55:46 -03:00

21 lines
572 B
CMake

idf_build_get_property(target IDF_TARGET)
if(${target} STREQUAL "linux")
return() # This component is not supported by the POSIX/Linux simulator
endif()
# target specific include must be added before the generic one
set(includes)
list(APPEND includes "include")
set(srcs)
if(CONFIG_SOC_EMAC_SUPPORTED)
list(APPEND srcs "emac_hal.c")
list(APPEND srcs "${target}/emac_periph.c")
list(APPEND includes "${target}/include")
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${includes}
REQUIRES soc hal)