2020-08-20 12:22:36 +08:00
|
|
|
if(IDF_TARGET STREQUAL "esp32s3")
|
|
|
|
return()
|
|
|
|
endif()
|
2020-04-17 16:34:56 -03:00
|
|
|
idf_component_register(SRC_DIRS ${IDF_TARGET}
|
|
|
|
PRIV_INCLUDE_DIRS .
|
2020-08-05 10:16:32 +08:00
|
|
|
PRIV_REQUIRES cmock ulp soc esp_common)
|
2018-08-27 10:48:16 +08:00
|
|
|
|
2020-04-17 16:34:56 -03: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 17:59:26 +08:00
|
|
|
endif()
|
2020-04-17 16:34:56 -03: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}")
|