mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
548022fbe6
* All components which won't build (yet) on Linux are excluded. This enables switching to Linux in an application without explicitly setting COMPONENTS to main in the main CMakeLists.txt. * ESP Timer provides headers for Linux now * automatically disabling LWIP in Kconfig if it is not available doc(linux): brought section "Component Linux/Mock Support Overview" up to date
40 lines
1.0 KiB
CMake
40 lines
1.0 KiB
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(${target} STREQUAL "linux")
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
endif()
|
|
|
|
set(srcs "")
|
|
set(include "include")
|
|
set(private_include "")
|
|
|
|
if(CONFIG_IEEE802154_ENABLED)
|
|
list(APPEND srcs "esp_ieee802154.c"
|
|
"driver/esp_ieee802154_ack.c"
|
|
"driver/esp_ieee802154_dev.c"
|
|
"driver/esp_ieee802154_frame.c"
|
|
"driver/esp_ieee802154_pib.c"
|
|
"driver/esp_ieee802154_util.c"
|
|
"driver/esp_ieee802154_sec.c"
|
|
"driver/esp_ieee802154_timer.c")
|
|
list(APPEND private_include "private_include")
|
|
|
|
if(CONFIG_IEEE802154_TEST)
|
|
list(REMOVE_ITEM private_include "private_include")
|
|
list(APPEND include "private_include")
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if(CONFIG_IEEE802154_DEBUG)
|
|
list(APPEND srcs "driver/esp_ieee802154_debug.c")
|
|
endif()
|
|
|
|
idf_component_register(
|
|
SRCS "${srcs}"
|
|
INCLUDE_DIRS "${include}"
|
|
PRIV_INCLUDE_DIRS "${private_include}"
|
|
LDFRAGMENTS linker.lf
|
|
PRIV_REQUIRES esp_phy driver esp_timer esp_coex soc hal
|
|
)
|