mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
2fc9bd61bf
This commit refactors the ulp component. Files are now divided based on type of ulp, viz., fsm or risc-v. Files common to both are maintained in the ulp_common folder. This commit also adds menuconfig options for ULP within the ulp component instead of presenting target specific configuations for ulp.
19 lines
633 B
CMake
19 lines
633 B
CMake
if(IDF_TARGET STREQUAL "esp32")
|
|
set(src_dirs ${IDF_TARGET})
|
|
set(ulp_sources "ulp/test_jumps_esp32.S")
|
|
elseif(IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET STREQUAL "esp32s3")
|
|
if(CONFIG_ULP_COPROC_TYPE_RISCV)
|
|
set(src_dirs "ulp_riscv")
|
|
set(ulp_sources "ulp_riscv/ulp/test_main.c")
|
|
endif()
|
|
#TODO: Add ULP-FSM Test case for esp32s2 and esp32s3
|
|
endif()
|
|
|
|
idf_component_register(SRC_DIRS ${src_dirs}
|
|
PRIV_INCLUDE_DIRS .
|
|
PRIV_REQUIRES cmock ulp soc esp_common driver)
|
|
|
|
set(ulp_app_name ulp_test_app)
|
|
set(ulp_exp_dep_srcs ${src_dirs})
|
|
ulp_embed_binary(${ulp_app_name} "${ulp_sources}" "${ulp_exp_dep_srcs}")
|