2021-06-09 22:22:35 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2021-06-09 22:28:23 -04:00
|
|
|
if(NOT "${target}" STREQUAL "esp32h2")
|
2021-06-09 22:22:35 -04:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2021-07-06 03:29:05 -04:00
|
|
|
if(NOT BOOTLOADER_BUILD)
|
|
|
|
# [refactor-todo] propagate these requirements for compatibility
|
|
|
|
# remove in the future
|
2022-01-28 06:47:04 -05:00
|
|
|
set(legacy_reqs efuse soc)
|
2021-07-06 03:29:05 -04:00
|
|
|
endif()
|
2021-06-09 22:22:35 -04:00
|
|
|
|
2021-07-15 00:55:15 -04:00
|
|
|
idf_component_register(REQUIRES riscv "${legacy_reqs}"
|
2021-07-06 03:29:05 -04:00
|
|
|
REQUIRED_IDF_TARGETS esp32h2)
|