mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 05:55:49 +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)
		
			
				
	
	
		
			26 lines
		
	
	
		
			894 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			894 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
idf_component_register(PRIV_REQUIRES partition_table)
 | 
						|
 | 
						|
# Do not generate flash file when building bootloader or is in early expansion of the build
 | 
						|
if(BOOTLOADER_BUILD OR NOT CONFIG_APP_BUILD_BOOTLOADER)
 | 
						|
    return()
 | 
						|
endif()
 | 
						|
 | 
						|
add_dependencies(bootloader partition_table_bin)
 | 
						|
 | 
						|
# When secure boot is enabled, do not flash bootloader along with invocation of `idf.py flash`
 | 
						|
if(NOT CONFIG_SECURE_BOOT)
 | 
						|
    set(flash_bootloader FLASH_IN_PROJECT)
 | 
						|
endif()
 | 
						|
 | 
						|
esptool_py_custom_target(bootloader-flash bootloader "bootloader")
 | 
						|
esptool_py_flash_target_image(bootloader-flash bootloader
 | 
						|
    ${CONFIG_BOOTLOADER_OFFSET_IN_FLASH}
 | 
						|
    "${BOOTLOADER_BUILD_DIR}/bootloader.bin")
 | 
						|
 | 
						|
# Also attach an image to the project flash target
 | 
						|
if(NOT CONFIG_SECURE_BOOT)
 | 
						|
    esptool_py_flash_target_image(flash bootloader
 | 
						|
        ${CONFIG_BOOTLOADER_OFFSET_IN_FLASH}
 | 
						|
        "${BOOTLOADER_BUILD_DIR}/bootloader.bin")
 | 
						|
endif()
 |