1# Set usual component variables 2set(COMPONENT_SRCS "ulp_riscv_example_main.c") 3set(COMPONENT_ADD_INCLUDEDIRS "") 4set(COMPONENT_REQUIRES soc nvs_flash ulp driver) 5 6register_component() 7 8# 9# ULP support additions to component CMakeLists.txt. 10# 11# 1. The ULP app name must be unique (if multiple components use ULP). 12set(ulp_app_name ulp_${COMPONENT_NAME}) 13# 14# 2. Specify all C and Assembly source files. 15# Files should be placed into a separate directory (in this case, ulp/), 16# which should not be added to COMPONENT_SRCS. 17set(ulp_riscv_sources "ulp/main.c") 18 19# 20# 3. List all the component source files which include automatically 21# generated ULP export file, ${ulp_app_name}.h: 22set(ulp_exp_dep_srcs "ulp_riscv_example_main.c") 23 24# 25# 4. Call function to build ULP binary and embed in project using the argument 26# values above. 27ulp_embed_binary(${ulp_app_name} "${ulp_riscv_sources}" "${ulp_exp_dep_srcs}") 28