From cef5433c8bac068cd7b1bf980dc1d9f4f67d773b Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 11 May 2018 02:30:00 +0300 Subject: [PATCH] Make extra images independent from a prog tool --- tools/platformio-build.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/platformio-build.py b/tools/platformio-build.py index 6e78fae3..3a525a17 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -120,11 +120,10 @@ env.Append( "-u", "__cxx_fatal_exception" ], - EXTRA_ESPTOOL_UPLOADFLAGS=[ - "0x1000", join(FRAMEWORK_DIR, "tools", "sdk", "bin", "bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin"), - "0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin"), - "0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"), - "0x10000" + FLASH_EXTRA_IMAGES=[ + ("0x1000", join(FRAMEWORK_DIR, "tools", "sdk", "bin", "bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin")), + ("0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin")), + ("0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin")) ] )