2021-09-23 06:30:50 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2022-01-18 02:32:56 +00:00
|
|
|
if(NOT "${target}" STREQUAL "esp32c2")
|
2021-09-23 06:30:50 +00:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT BOOTLOADER_BUILD)
|
|
|
|
# [refactor-todo] propagate these requirements for compatibility
|
|
|
|
# remove in the future
|
2022-03-28 07:44:51 +00:00
|
|
|
set(legacy_reqs soc)
|
2021-09-23 06:30:50 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(REQUIRES riscv "${legacy_reqs}"
|
2022-01-18 02:32:56 +00:00
|
|
|
REQUIRED_IDF_TARGETS esp32c2)
|