mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	This commit establishes the foundation for making the esptool_py component idempotent. The following changes are made in this commit: - Removes unnecessary dependency of esp_wifi component on esptool_py. - Add missing esptool_py dependencies to components which directly use esptool_py specific functions or variables but do not declare a public or private dependency.
		
			
				
	
	
		
			28 lines
		
	
	
		
			1020 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1020 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
idf_build_get_property(target IDF_TARGET)
 | 
						|
 | 
						|
set(original_srcs "spiffs/src/spiffs_cache.c"
 | 
						|
                  "spiffs/src/spiffs_check.c"
 | 
						|
                  "spiffs/src/spiffs_gc.c"
 | 
						|
                  "spiffs/src/spiffs_hydrogen.c"
 | 
						|
                  "spiffs/src/spiffs_nucleus.c")
 | 
						|
 | 
						|
list(APPEND srcs "spiffs_api.c" ${original_srcs})
 | 
						|
 | 
						|
if(NOT ${target} STREQUAL "linux")
 | 
						|
    list(APPEND pr bootloader_support vfs esptool_py)
 | 
						|
    list(APPEND srcs "esp_spiffs.c")
 | 
						|
endif()
 | 
						|
 | 
						|
idf_component_register(SRCS ${srcs}
 | 
						|
                       INCLUDE_DIRS "include"
 | 
						|
                       PRIV_INCLUDE_DIRS "." "spiffs/src"
 | 
						|
                       REQUIRES esp_partition
 | 
						|
                       PRIV_REQUIRES ${pr})
 | 
						|
 | 
						|
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
 | 
						|
    set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation)
 | 
						|
endif()
 | 
						|
 | 
						|
# Upstream SPIFFS code uses format specifiers in debug logging macros inconsistently
 | 
						|
set_source_files_properties(${original_srcs} PROPERTIES COMPILE_FLAGS -Wno-format)
 |