esp-idf/components/esp32s2/CMakeLists.txt

17 wiersze
502 B
CMake
Czysty Zwykły widok Historia

idf_build_get_property(target IDF_TARGET)
2020-01-17 03:47:08 +00:00
if(NOT "${target}" STREQUAL "esp32s2")
return()
endif()
2021-03-19 12:03:13 +00:00
if(NOT BOOTLOADER_BUILD)
# [refactor-todo] propagate these requirements for compatibility
# remove in the future
set(legacy_reqs driver efuse soc)
endif()
2019-05-10 03:34:06 +00:00
2021-03-19 12:03:13 +00:00
idf_component_register(INCLUDE_DIRS include
REQUIRES xtensa "${legacy_reqs}"
REQUIRED_IDF_TARGETS esp32s2)
2019-05-10 03:34:06 +00:00
2021-03-19 12:03:13 +00:00
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32s2.peripherals.ld")