esp-idf/components/esp32h2/CMakeLists.txt

17 wiersze
501 B
CMake
Czysty Zwykły widok Historia

idf_build_get_property(target IDF_TARGET)
if(NOT "${target}" STREQUAL "esp32h2")
return()
endif()
if(NOT BOOTLOADER_BUILD)
# [refactor-todo] propagate these requirements for compatibility
# remove in the future
set(legacy_reqs driver efuse soc)
endif()
idf_component_register(INCLUDE_DIRS include
REQUIRES riscv "${legacy_reqs}"
REQUIRED_IDF_TARGETS esp32h2)
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32h2.peripherals.ld")