1idf_build_get_property(target IDF_TARGET)
2
3if(NOT (IDF_TARGET STREQUAL "esp32c3") AND NOT (IDF_TARGET STREQUAL "esp32h2"))
4    set(srcs "ulp.c"
5             "ulp_macro.c")
6
7    if(CONFIG_ESP32S2_ULP_COPROC_RISCV)
8            list(APPEND srcs "ulp_riscv.c")
9    endif()
10
11    idf_component_register(SRCS ${srcs}
12                           INCLUDE_DIRS include)
13endif()
14