]> granicus.if.org Git - esp-idf/commitdiff
build system: Fix bootloader-flash target
authorAngus Gratton <angus@espressif.com>
Tue, 8 Nov 2016 01:00:38 +0000 (12:00 +1100)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 8 Nov 2016 12:17:08 +0000 (20:17 +0800)
ESP32 forum thread: http://esp32.com/viewtopic.php?f=2&t=407&p=1902#p1902

components/bootloader/Makefile.projbuild

index 50c95f9fec05d3ed7336eb3dde2abc71601bd0f1..0b460059e8787a69245e8391f608fc6051630491 100644 (file)
@@ -33,7 +33,7 @@ clean: bootloader-clean
 
 bootloader: $(BOOTLOADER_BIN)
        @echo "Bootloader built. Default flash command is:"
-       @echo "$(ESPTOOLPY_WRITE_FLASH) 0x1000 $(BOOTLOADER_BIN)"
+       @echo "$(ESPTOOLPY_WRITE_FLASH) 0x1000 $^"
 
 all_binaries: $(BOOTLOADER_BIN)
 
@@ -41,7 +41,7 @@ ESPTOOL_ALL_FLASH_ARGS += 0x1000 $(BOOTLOADER_BIN)
 
 # bootloader-flash calls flash in the bootloader dummy project
 bootloader-flash: $(BOOTLOADER_BIN)
-       $(BOOTLOADER_MAKE) flash
+       $(ESPTOOLPY_WRITE_FLASH) 0x1000 $^
 
 # synchronise the project level config to the bootloader's
 # config