-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
11,693 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,115 +1,53 @@ | ||
# Execute in an esp-idf enabled PowerShell | ||
# Execute in an esp-idf enabled PowerShell | ||
# This script will create a combined zip file containing binaries for all supported esp32 boards | ||
|
||
$release_foldername = "DroneBridge_ESP32_v2.0" | ||
$release_name_zip = "DroneBridge_ESP32_v2.0.zip" | ||
$release_foldername = "DroneBridge_ESP32_nightly" | ||
$release_name_zip = "DroneBridge_ESP32_nightly.zip" | ||
|
||
mkdir $release_foldername | ||
mkdir build | ||
cp .\flashing_instructions.txt $release_foldername | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_esp32 .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32 | ||
cp .\build\flash_args $release_foldername\esp32\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32 | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32 | ||
cp .\build\www.bin $release_foldername\esp32 | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32 | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_esp32_noUARTConsole .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32_noUARTConsole | ||
cp .\build\flash_args $release_foldername\esp32_noUARTConsole\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32_noUARTConsole | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32_noUARTConsole | ||
cp .\build\www.bin $release_foldername\esp32_noUARTConsole | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32_noUARTConsole | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_s2 .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32s2 | ||
cp .\build\flash_args $release_foldername\esp32s2\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32s2 | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32s2 | ||
cp .\build\www.bin $release_foldername\esp32s2 | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32s2 | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_s3 .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32s3 | ||
cp .\build\flash_args $release_foldername\esp32s3\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32s3 | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32s3 | ||
cp .\build\www.bin $release_foldername\esp32s3 | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32s3 | ||
function BuildAndCopy($config, $folder) { | ||
rm -Recurse -Force .\build | ||
idf.py fullclean | ||
cp .\$config .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\$folder | ||
cp .\build\flash_args $release_foldername\$folder\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\$folder | ||
cp .\build\bootloader\bootloader.bin $release_foldername\$folder | ||
cp .\build\www.bin $release_foldername\$folder | ||
cp .\build\partition_table\partition-table.bin $release_foldername\$folder | ||
} | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_c3 .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32c3 | ||
cp .\build\flash_args $release_foldername\esp32c3\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32c3 | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32c3 | ||
cp .\build\www.bin $release_foldername\esp32c3 | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32c3 | ||
# ESP32 | ||
BuildAndCopy "sdkconfig_esp32" "esp32" | ||
# BuildAndCopy "sdkconfig_esp32_noUARTConsole" "esp32_noUARTConsole" # Build issue - ESP-NOW wants a console for debugging | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_c3_serial_via_JTAG .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32c3_USBSerial | ||
cp .\build\flash_args $release_foldername\esp32c3_USBSerial\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32c3_USBSerial | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32c3_USBSerial | ||
cp .\build\www.bin $release_foldername\esp32c3_USBSerial | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32c3_USBSerial | ||
# ESP32-S2 | ||
BuildAndCopy "sdkconfig_s2" "esp32s2" | ||
BuildAndCopy "sdkconfig_s2_noUARTConsole" "esp32s2_noUARTConsole" | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_c3_noUARTConsole .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32c3_noUARTConsole | ||
cp .\build\flash_args $release_foldername\esp32c3_noUARTConsole\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32c3_noUARTConsole | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32c3_noUARTConsole | ||
cp .\build\www.bin $release_foldername\esp32c3_noUARTConsole | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32c3_noUARTConsole | ||
# ESP32-S3 | ||
BuildAndCopy "sdkconfig_s3" "esp32s3" | ||
BuildAndCopy "sdkconfig_s3_noUARTConsole" "esp32s3_noUARTConsole" | ||
BuildAndCopy "sdkconfig_s3_serial_via_JTAG" "esp32s3_USBSerial" | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_c6 .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32c6 | ||
cp .\build\flash_args $release_foldername\esp32c6\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32c6 | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32c6 | ||
cp .\build\www.bin $release_foldername\esp32c6 | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32c6 | ||
# ESP32-C3 | ||
BuildAndCopy "sdkconfig_c3" "esp32c3" | ||
BuildAndCopy "sdkconfig_c3_official" "esp32c3_official" | ||
BuildAndCopy "sdkconfig_c3_serial_via_JTAG" "esp32c3_USBSerial" | ||
BuildAndCopy "sdkconfig_c3_noUARTConsole" "esp32c3_noUARTConsole" | ||
|
||
rm -Recurse .\build | ||
idf.py fullclean | ||
cp .\sdkconfig_c6_serial_via_JTAG .\sdkconfig | ||
idf.py build | ||
mkdir $release_foldername\esp32c6_USBSerial | ||
cp .\build\flash_args $release_foldername\esp32c6_USBSerial\flash_args.txt | ||
cp .\build\db_esp32.bin $release_foldername\esp32c6_USBSerial | ||
cp .\build\bootloader\bootloader.bin $release_foldername\esp32c6_USBSerial | ||
cp .\build\www.bin $release_foldername\esp32c6_USBSerial | ||
cp .\build\partition_table\partition-table.bin $release_foldername\esp32c6_USBSerial | ||
# ESP32-C6 | ||
BuildAndCopy "sdkconfig_c6" "esp32c6" | ||
BuildAndCopy "sdkconfig_c6_serial_via_JTAG" "esp32c6_USBSerial" | ||
BuildAndCopy "sdkconfig_c6_noUARTConsole" "esp32c6_noUARTConsole" | ||
|
||
if (Test-Path $release_name_zip) { | ||
Remove-Item $release_name_zip -verbose | ||
Remove-Item $release_name_zip -Verbose | ||
} | ||
Compress-Archive -Path $release_foldername -DestinationPath $release_name_zip | ||
|
||
rm -R $release_foldername | ||
rm -Recurse -Force $release_foldername |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
|
||
# Execute in an esp-idf enabled shell | ||
# This script will create a combined zip file containing binaries for all supported esp32 boards | ||
|
||
release_foldername="DroneBridge_ESP32_nightly" | ||
release_name_zip="DroneBridge_ESP32_nightly.zip" | ||
|
||
mkdir -p $release_foldername | ||
mkdir -p build | ||
cp ./flashing_instructions.txt $release_foldername | ||
|
||
# Function to build and copy binaries for different configurations | ||
build_and_copy() { | ||
config=$1 | ||
folder=$2 | ||
|
||
rm -rf ./build | ||
idf.py fullclean | ||
cp ./$config ./.sdkconfig | ||
idf.py build | ||
mkdir -p $release_foldername/$folder | ||
cp ./build/flash_args $release_foldername/$folder/flash_args.txt | ||
cp ./build/db_esp32.bin $release_foldername/$folder | ||
cp ./build/bootloader/bootloader.bin $release_foldername/$folder | ||
cp ./build/www.bin $release_foldername/$folder | ||
cp ./build/partition_table/partition-table.bin $release_foldername/$folder | ||
} | ||
|
||
# ESP32 | ||
build_and_copy sdkconfig_esp32 esp32 | ||
# build_and_copy sdkconfig_esp32_noUARTConsole esp32_noUARTConsole # Build issue - ESP-NOW wants a console for debugging | ||
|
||
# ESP32-S2 | ||
build_and_copy sdkconfig_s2 esp32s2 | ||
build_and_copy sdkconfig_s2_noUARTConsole esp32s2_noUARTConsole | ||
|
||
# ESP32-S3 | ||
build_and_copy sdkconfig_s3 esp32s3 | ||
build_and_copy sdkconfig_s3_noUARTConsole esp32s3_noUARTConsole | ||
build_and_copy sdkconfig_s3_serial_via_JTAG esp32s3_USBSerial | ||
|
||
# ESP32-C3 | ||
build_and_copy sdkconfig_c3 esp32c3 | ||
build_and_copy sdkconfig_c3_official esp32c3_official | ||
build_and_copy sdkconfig_c3_serial_via_JTAG esp32c3_USBSerial | ||
build_and_copy sdkconfig_c3_noUARTConsole esp32c3_noUARTConsole | ||
|
||
# ESP32-C6 | ||
build_and_copy sdkconfig_c6 esp32c6 | ||
build_and_copy sdkconfig_c6_serial_via_JTAG esp32c6_USBSerial | ||
build_and_copy sdkconfig_c6_noUARTConsole esp32c6_noUARTConsole | ||
|
||
# Create the zip file | ||
if [ -f $release_name_zip ]; then | ||
rm -v $release_name_zip | ||
fi | ||
zip -r $release_name_zip $release_foldername | ||
|
||
# Clean up | ||
rm -rf $release_foldername |
Oops, something went wrong.