mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	Apply the pre-commit hook whitespace fixes to all files in the repo. (Line endings, blank lines at end of file, trailing whitespace)
		
			
				
	
	
		
			28 lines
		
	
	
		
			915 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			915 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
# Set usual component variables
 | 
						|
set(COMPONENT_SRCS "ulp_riscv_example_main.c")
 | 
						|
set(COMPONENT_ADD_INCLUDEDIRS "")
 | 
						|
set(COMPONENT_REQUIRES soc nvs_flash ulp driver)
 | 
						|
 | 
						|
register_component()
 | 
						|
 | 
						|
#
 | 
						|
# ULP support additions to component CMakeLists.txt.
 | 
						|
#
 | 
						|
# 1. The ULP app name must be unique (if multiple components use ULP).
 | 
						|
set(ulp_app_name ulp_${COMPONENT_NAME})
 | 
						|
#
 | 
						|
# 2. Specify all C and Assembly source files.
 | 
						|
#    Files should be placed into a separate directory (in this case, ulp/),
 | 
						|
#    which should not be added to COMPONENT_SRCS.
 | 
						|
set(ulp_riscv_sources "ulp/main.c")
 | 
						|
 | 
						|
#
 | 
						|
# 3. List all the component source files which include automatically
 | 
						|
#    generated ULP export file, ${ulp_app_name}.h:
 | 
						|
set(ulp_exp_dep_srcs "ulp_riscv_example_main.c")
 | 
						|
 | 
						|
#
 | 
						|
# 4. Call function to build ULP binary and embed in project using the argument
 | 
						|
#    values above.
 | 
						|
ulp_embed_binary(${ulp_app_name} "${ulp_riscv_sources}" "${ulp_exp_dep_srcs}")
 |