Skip to content

Commit 1a4e83d

Browse files
committed
no duplicate clone of esptool v4.x
1 parent 9a3b315 commit 1a4e83d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tools/copy-bootloader.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ mkdir -p "$AR_SDK/bin"
1414
# Workaround for getting the bootloaders to be flashable with esptool v4.x
1515
# It might still be needed for IDF5, but using the included esptool instead
1616
#cp "build/bootloader/bootloader.bin" "$AR_SDK/bin/bootloader_$BOOTCONF.bin"
17-
if [ ! -e "tools/esptool" ]; then
18-
git clone https://github.com/espressif/esptool tools/esptool
19-
fi
20-
./tools/esptool/esptool.py --chip "$IDF_TARGET" elf2image --dont-append-digest "build/bootloader/bootloader.elf" -o "$AR_SDK/bin/bootloader_$BOOTCONF.bin"
17+
18+
# We use esptool v.4.21 in Tasmota IDF fork so no need to clone here
19+
20+
#if [ ! -e "tools/esptool" ]; then
21+
# git clone https://github.com/espressif/esptool tools/esptool
22+
#fi
23+
./esp-idf/components/esptool_py/esptool/esptool.py --chip "$IDF_TARGET" elf2image --dont-append-digest "build/bootloader/bootloader.elf" -o "$AR_SDK/bin/bootloader_$BOOTCONF.bin"

0 commit comments

Comments
 (0)