mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
16 lines
457 B
CMake
16 lines
457 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
if(NOT "${target}" STREQUAL "esp32c3")
|
|
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(REQUIRES riscv "${legacy_reqs}"
|
|
REQUIRED_IDF_TARGETS esp32c3)
|
|
|
|
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32c3.peripherals.ld")
|