1idf_build_get_property(target IDF_TARGET)
2if(NOT "${target}" STREQUAL "esp32s2")
3    return()
4endif()
5
6if(NOT BOOTLOADER_BUILD)
7    # [refactor-todo] propagate these requirements for compatibility
8    # remove in the future
9    set(legacy_reqs driver efuse soc)
10endif()
11
12idf_component_register(REQUIRES xtensa "${legacy_reqs}"
13                       REQUIRED_IDF_TARGETS esp32s2)
14