2020-08-20 00:22:36 -04:00
|
|
|
if(IDF_TARGET STREQUAL "esp32s3")
|
|
|
|
return()
|
|
|
|
endif()
|
2020-04-17 15:34:56 -04:00
|
|
|
idf_component_register(SRC_DIRS ${IDF_TARGET}
|
|
|
|
PRIV_INCLUDE_DIRS .
|
2021-03-19 08:03:13 -04:00
|
|
|
PRIV_REQUIRES cmock ulp soc esp_common driver)
|
2018-08-26 22:48:16 -04:00
|
|
|
|
2020-04-17 15:34:56 -04:00
|
|
|
if(IDF_TARGET STREQUAL "esp32")
|
|
|
|
set(ulp_sources "ulp/test_jumps_esp32.S")
|
|
|
|
elseif(IDF_TARGET STREQUAL "esp32s2")
|
|
|
|
set(ulp_sources "ulp_riscv/test_main.c")
|
2019-08-06 05:59:26 -04:00
|
|
|
endif()
|
2020-04-17 15:34:56 -04:00
|
|
|
|
|
|
|
set(ulp_app_name ulp_test_app)
|
|
|
|
set(ulp_exp_dep_srcs ${IDF_TARGET})
|
|
|
|
ulp_embed_binary(${ulp_app_name} "${ulp_sources}" "${ulp_exp_dep_srcs}")
|