]> granicus.if.org Git - esp-idf/commitdiff
esp_tool: Exclude elf-sha256 from bootloader
authorKonstantin Kondrashov <konstantin@espressif.com>
Fri, 15 Mar 2019 12:02:16 +0000 (20:02 +0800)
committerKonstantin Kondrashov <konstantin@espressif.com>
Tue, 19 Mar 2019 04:54:25 +0000 (12:54 +0800)
Closes: IDFGH-690
components/esptool_py/Makefile.projbuild
components/esptool_py/project_include.cmake

index 25f2487ab46405bb282324cf7bd2307686a22440..092ac0e021f98bb2f94b3a01531dad1463a1ba6f 100644 (file)
@@ -39,7 +39,9 @@ endif
 endif
 endif
 
+ifndef IS_BOOTLOADER_BUILD
 ESPTOOL_ELF2IMAGE_OPTIONS += --elf-sha256-offset 0xb0
+endif
 
 ESPTOOLPY_WRITE_FLASH=$(ESPTOOLPY_SERIAL) write_flash $(if $(CONFIG_ESPTOOLPY_COMPRESSED),-z,-u) $(ESPTOOL_WRITE_FLASH_OPTIONS)
 
index 2d05f11a73f01e856ef0dfcc88726c6f27aa121a..d03552723d7606fe65f885594eb70635771ce191 100644 (file)
@@ -52,7 +52,9 @@ if(CONFIG_SECURE_BOOT_ENABLED AND
         ${ESPTOOLPY_ELF2IMAGE_FLASH_OPTIONS} --secure-pad)
 endif()
 
-set(ESPTOOLPY_ELF2IMAGE_OPTIONS --elf-sha256-offset 0xb0)
+if(NOT BOOTLOADER_BUILD)
+    set(ESPTOOLPY_ELF2IMAGE_OPTIONS --elf-sha256-offset 0xb0)
+endif()
 
 if(CONFIG_ESPTOOLPY_FLASHSIZE_DETECT)
     # Set ESPFLASHSIZE to 'detect' *after* elf2image options are generated,