Skip to content

Solo1 2.0.6 #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 76 commits into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
da47c60
Tasmota Core 2.0.5
Jason2866 Sep 17, 2022
98dc11b
core 2.0.5
Jason2866 Sep 17, 2022
f1d4c40
Update README.md
Jason2866 Sep 17, 2022
b4c9673
AR_BRANCH="pr7284"
Jason2866 Sep 21, 2022
8d505ea
Update README.md
Jason2866 Sep 24, 2022
8800016
Update README.md
Jason2866 Sep 24, 2022
6f3bed4
IDF_BRANCH="IDF_Arduino_Esptoolv43"
Jason2866 Sep 28, 2022
a95a4f0
Update config.sh
Jason2866 Sep 28, 2022
55be128
Skip collecting optimization flag
Jason2866 Sep 30, 2022
a8a1903
IDF_BRANCH="IDF_Ard_wifi"
Jason2866 Oct 14, 2022
1d22dbe
CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM=4096
Jason2866 Oct 15, 2022
1b21a3f
ULP_COPROC_RISCV RESERVE_MEM=4096
Jason2866 Oct 15, 2022
ac4f0bf
add `cam_hal.h` to `include` folder
Jason2866 Oct 18, 2022
0283275
CONFIG_LWIP_UDP_RECVMBOX_SIZE=64
Jason2866 Oct 18, 2022
14ef892
Use own releaser
Jason2866 Oct 25, 2022
9aa7d92
Use own Releaser with commit
Jason2866 Oct 25, 2022
b20c034
Update push.yml
Jason2866 Oct 25, 2022
ca5ea92
2.0.5.2
Jason2866 Oct 28, 2022
2ff6ab4
Update README.md
Jason2866 Oct 28, 2022
1493506
Update README.md
Jason2866 Oct 29, 2022
1ba6c1b
IDF_BRANCH="Tasmota/v4.4"
Jason2866 Nov 10, 2022
5c969a9
Update config.sh
Jason2866 Nov 10, 2022
ebd7d10
core 2.0.5.3
Jason2866 Nov 10, 2022
f57b7fa
action-gh-release@v1.2
Jason2866 Nov 16, 2022
71df9ae
AR_BRANCH="dnssrvasync"
Jason2866 Nov 17, 2022
e7bb004
IDF_BRANCH="release/v4.4" -> latest commits
Jason2866 Nov 19, 2022
2a108aa
Update config.sh
Jason2866 Nov 20, 2022
7198ea4
AR_BRANCH="dnssrvasync"
Jason2866 Nov 20, 2022
6ecb12b
AR_BRANCH="master"
Jason2866 Nov 20, 2022
045e644
ubuntu 22.04
Jason2866 Nov 24, 2022
575ce56
enable IPv6
Jason2866 Nov 29, 2022
765fa82
add INFO.txt to release
Jason2866 Dec 9, 2022
058d3c5
Update config.sh
Jason2866 Dec 9, 2022
fd8c2a3
esp32-arduino-lib-builder-INFO.txt
Jason2866 Dec 9, 2022
cda34fa
Update push.yml
Jason2866 Dec 9, 2022
5209993
cat esp32-arduino-lib-builder-INFO.txt
Jason2866 Dec 9, 2022
15036da
Update push.yml
Jason2866 Dec 10, 2022
cd01bdd
release-info.txt
Jason2866 Dec 10, 2022
5c0bc57
Update push.yml
Jason2866 Dec 10, 2022
a30554d
Update config.sh
Jason2866 Dec 10, 2022
355db57
Update config.sh
Jason2866 Dec 10, 2022
65b1631
Update push.yml
Jason2866 Dec 10, 2022
84828ad
rm -rf release-info.txt
Jason2866 Dec 10, 2022
98ca826
Update push.yml
Jason2866 Dec 10, 2022
c022e71
Update config.sh
Jason2866 Dec 10, 2022
8a80bf5
add commits to release info
Jason2866 Dec 10, 2022
bee08a1
Update README.md
Jason2866 Dec 10, 2022
b303d2c
added release info
Jason2866 Dec 10, 2022
19879e9
Update config.sh
Jason2866 Dec 10, 2022
33997c1
Update build.sh
Jason2866 Dec 10, 2022
4a3b769
Update archive-build.sh
Jason2866 Dec 10, 2022
c68bfb8
Update install-esp-idf.sh
Jason2866 Dec 10, 2022
b7dbb66
Update copy-to-arduino.sh
Jason2866 Dec 10, 2022
49a233a
Update copy-bootloader.sh
Jason2866 Dec 10, 2022
a693888
Update config.sh
Jason2866 Dec 10, 2022
ef5a9e5
rm esptool.py
Jason2866 Dec 10, 2022
897f8cc
Update Kconfig.projbuild
Jason2866 Dec 10, 2022
3fe911e
rm esptool.py
Jason2866 Dec 10, 2022
1e9f627
temp fix for changed bootloader handling
Jason2866 Dec 10, 2022
bd9fb1e
rm temp fix (pio build updated)
Jason2866 Dec 12, 2022
38d4f7c
`*.elf` for bootloader
Jason2866 Dec 12, 2022
3f2ee43
Update README.md
Jason2866 Dec 13, 2022
7b7e022
Update push.yml
Jason2866 Dec 16, 2022
fabaffc
AR_BRANCH="work"
Jason2866 Dec 16, 2022
12de958
core 2.5.4
Jason2866 Dec 16, 2022
5b2fa47
AR_BRANCH="work_ipv6"
Jason2866 Dec 22, 2022
f02a6fa
rm gen_insights_package.py
Jason2866 Dec 22, 2022
a9c9545
core 2.0.6
Jason2866 Dec 22, 2022
835f5a9
rm not needed libraries
Jason2866 Dec 22, 2022
dc5d994
core 2.0.6
Jason2866 Dec 22, 2022
1f1c6dc
Merge branch 'Idf443_Arduino' into Arduino_work
Jason2866 Dec 22, 2022
9e89e8f
Update update-components.sh
Jason2866 Dec 22, 2022
951099f
Solo1 (#46)
Jason2866 Dec 22, 2022
30a897e
Changing file permissions
Jason2866 Dec 23, 2022
75fba6c
fix
Jason2866 Dec 23, 2022
1516591
Changing file permissions
Jason2866 Dec 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: ESP32 builder IDF_Arduino 4.4.3
name: IDF_Arduino 4.4.3 solo1

on:
workflow_dispatch: # Manually start a workflow
# push:
# branches: master
# paths-ignore:
# - '.github/**' # Ignore changes towards the .github directory

jobs:
build-libs:
name: Build Arduino Libs
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: bash ./tools/prepare-ci.sh
- name: Build Arduino Libs
run: bash ./build.sh
- name: Display files
run: ls -R ./*
- name: Release
uses: softprops/action-gh-release@v1
#if: startsWith(github.ref, 'refs/tags/')
uses: jason2866/action-gh-release@v1.2
with:
tag_name: ${{ github.run_number }}
body_path: release-info.txt
prerelease: true
files: dist/framework*
files: |
dist/framework*
release-info.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Tasmota ESP32 Arduino Lib Builder [![ESP32 builder](https://github.com/Jason2866/esp32-arduino-lib-builder/actions/workflows/push.yml/badge.svg)](https://github.com/Jason2866/esp32-arduino-lib-builder/actions/workflows/push.yml)
# Tasmota ESP32 Arduino Lib Builder [![ESP32 builder](https://github.com/Jason2866/esp32-arduino-lib-builder/actions/workflows/push.yml/badge.svg)](https://github.com/Jason2866/esp32-arduino-lib-builder/actions/workflows/push.yml)[![GitHub Releases](https://img.shields.io/github/downloads/Jason2866/esp32-arduino-lib-builder/total?label=downloads)](https://github.com/Jason2866/esp32-arduino-lib-builder/releases/latest)

This repository contains the scripts that produce the libraries included with Tasmota esp32-arduino.

Expand All @@ -11,19 +11,19 @@ cd esp32-arduino-lib-builder
./build.sh
```
### Development builds
Look in release and download a version. The day of build is using the commits of this day of IDF / Arduino.
Look in release and download a version. There is the Info of the used commits of IDF / Arduino.

### Stable Release
are based on Arduino Core 2.0.4 and can be used with Platformio for the ESP32, ESP32C3, ESP32S2 and ESP32S3
### Stable Platformio Platform release including ESP32solo1
based on Arduino Core 2.0.5 and can be used with Platformio for the ESP32/ESP32solo1, ESP32C3, ESP32S2 and ESP32S3
```
[platformio]
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-2.0.4.1.zip
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.5.2/platform-espressif32-2.0.5.2.zip
framework = arduino, espidf
```
and for the ESP32solo1 with
to use the ESP32 Solo1 Arduino framework add in your env
```
[platformio]
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-solo1-2.0.4.1.zip
framework = arduino, espidf
[env:esp32solo1]
board = every esp32 board can be used
build_flags = -DFRAMEWORK_ARDUINO_SOLO1
```
The frameworks are here [https://github.com/tasmota/arduino-esp32/releases](https://github.com/tasmota/arduino-esp32/releases)
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if ! [ -x "$(command -v git)" ]; then
exit 1
fi

TARGET="all"
TARGET="esp32"
BUILD_TYPE="all"
SKIP_ENV=0
COPY_OUT=0
Expand Down Expand Up @@ -119,11 +119,11 @@ rm -rf build sdkconfig out

# Add components version info
mkdir -p "$AR_TOOLS/sdk" && rm -rf version.txt && rm -rf "$AR_TOOLS/sdk/versions.txt"
component_version="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD)
component_version="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD)
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt"
for component in `ls "$AR_COMPS"`; do
if [ -d "$AR_COMPS/$component/.git" ] || [ -d "$AR_COMPS/$component/.github" ]; then
component_version="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)
component_version="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD || git -C "$AR_COMPS/$component" tag --points-at HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt"
fi
done
Expand Down
4 changes: 3 additions & 1 deletion configs/defconfig.esp32
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ CONFIG_ESP_MAIN_TASK_STACK_SIZE=4096
CONFIG_ESP_INT_WDT_TIMEOUT_MS=1000
CONFIG_ESP_TASK_WDT_PANIC=y
CONFIG_ESP_TASK_WDT_TIMEOUT_S=10
# CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1 is not set
CONFIG_ESP_TIMER_TASK_STACK_SIZE=4096
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_STATIC_TX_BUFFER_NUM=8
Expand All @@ -48,6 +47,7 @@ CONFIG_FATFS_CODEPAGE_850=y
CONFIG_FATFS_LFN_STACK=y
# CONFIG_FMB_CONTROLLER_SLAVE_ID_SUPPORT is not set
CONFIG_FMB_TIMER_PORT_ENABLED=y
CONFIG_FREERTOS_UNICORE=y
CONFIG_FREERTOS_HZ=1000
# CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION is not set
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y
Expand All @@ -71,6 +71,8 @@ CONFIG_LWIP_TCP_MSS=1436
CONFIG_LWIP_TCP_RTO_TIME=3000
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=2560
CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y
CONFIG_LWIP_UDP_RECVMBOX_SIZE=64
CONFIG_LWIP_IPV6_AUTOCONFIG=y
# CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN is not set
CONFIG_MBEDTLS_PSK_MODES=y
CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y
Expand Down
3 changes: 2 additions & 1 deletion configs/defconfig.esp32c3
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304
CONFIG_HAL_ASSERTION_DISABLE=y
CONFIG_LOG_DEFAULT_LEVEL_NONE=y
# CONFIG_LOG_COLORS is not set
CONFIG_LWIP_IPV6_AUTOCONFIG=y
CONFIG_LWIP_LOCAL_HOSTNAME="tasmota"
CONFIG_LWIP_MAX_SOCKETS=16
CONFIG_LWIP_SO_RCVBUF=y
CONFIG_LWIP_IP_FORWARD=y
CONFIG_LWIP_IPV4_NAPT=y
CONFIG_LWIP_DHCP_OPTIONS_LEN=128
CONFIG_LWIP_SNTP_UPDATE_DELAY=10800000
CONFIG_LWIP_UDP_RECVMBOX_SIZE=64
CONFIG_LWIP_IPV6_AUTOCONFIG=y
CONFIG_MBEDTLS_PSK_MODES=y
CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y
CONFIG_NEWLIB_NANO_FORMAT=y
Expand Down
5 changes: 4 additions & 1 deletion configs/defconfig.esp32s2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ CONFIG_COMPILER_WARN_WRITE_STRINGS=y
CONFIG_ESP32S2_DEFAULT_CPU_FREQ_240=y
CONFIG_ESP32S2_SPIRAM_SUPPORT=y
CONFIG_ESP32S2_ULP_COPROC_ENABLED=y
CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM=1024
CONFIG_ESP32S2_ULP_COPROC_RISCV=y
CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM=4096
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=4096
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=0
Expand Down Expand Up @@ -65,6 +66,8 @@ CONFIG_LWIP_TCP_MSS=1436
CONFIG_LWIP_TCP_RTO_TIME=3000
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=2560
CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y
CONFIG_LWIP_UDP_RECVMBOX_SIZE=64
CONFIG_LWIP_IPV6_AUTOCONFIG=y
# CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN is not set
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
CONFIG_MBEDTLS_PSK_MODES=y
Expand Down
4 changes: 3 additions & 1 deletion configs/defconfig.esp32s3
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
CONFIG_ESP32S3_ULP_COPROC_ENABLED=y
CONFIG_ESP32S3_ULP_COPROC_RISCV=y
CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM=1024
CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM=4096
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=4096
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=0
Expand Down Expand Up @@ -93,6 +93,8 @@ CONFIG_LWIP_TCP_MSS=1436
CONFIG_LWIP_TCP_RTO_TIME=3000
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=2560
CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y
CONFIG_LWIP_UDP_RECVMBOX_SIZE=64
CONFIG_LWIP_IPV6_AUTOCONFIG=y
# CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN is not set
CONFIG_MBEDTLS_PSK_MODES=y
CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y
Expand Down
8 changes: 4 additions & 4 deletions core_version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define ARDUINO_ESP32_GIT_VER 0x6ed33835
#define ARDUINO_ESP32_GIT_DESC 2.0.5pre
#define ARDUINO_ESP32_RELEASE_2_0_5_pre
#define ARDUINO_ESP32_RELEASE "2_0_5_pre"
#define ARDUINO_ESP32_GIT_VER 0xcbaeab4e
#define ARDUINO_ESP32_GIT_DESC 2.0.6
#define ARDUINO_ESP32_RELEASE_2_0_6
#define ARDUINO_ESP32_RELEASE "2_0_6"
4 changes: 4 additions & 0 deletions main/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ config LIB_BUILDER_FLASHFREQ
default "40m" if ESPTOOLPY_FLASHFREQ_40M
default "26m" if ESPTOOLPY_FLASHFREQ_26M
default "20m" if ESPTOOLPY_FLASHFREQ_20M

config LIB_BUILDER_COMPILE
bool
default y
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "framework-arduinoespressif32",
"version": "2.0.5",
"version": "2.0.6",
"description": "Tasmota Arduino Framework for the Espressif ESP32, ESP32-S and ESP32-C series of SoCs",
"keywords": [
"tasmota",
Expand Down
20 changes: 13 additions & 7 deletions tools/archive-build.sh
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
#!/bin/bash

IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "")
IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || echo "")
IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD || echo "")

idf_version_string=${IDF_BRANCH//\//_}"-$IDF_COMMIT"
archive_path="dist/arduino-esp32-libs-$idf_version_string.tar.gz"
build_archive_path="dist/arduino-esp32-build-$idf_version_string.tar.gz"
pio_archive_path="dist/framework-arduinoespressif32-$idf_version_string.tar.gz"
pio_zip_archive_path="dist/framework-arduinoespressif32-$idf_version_string.zip"
archive_path="dist/arduino-esp32-libs-solo1-$idf_version_string.tar.gz"
build_archive_path="dist/arduino-esp32-build-solo1-$idf_version_string.tar.gz"
pio_archive_path="dist/framework-arduinoespressif32-solo1-$idf_version_string.tar.gz"
pio_zip_archive_path="dist/framework-arduinoespressif32-solo1-$idf_version_string.zip"

mkdir -p dist && rm -rf "$archive_path" "$build_archive_path"

cd out
echo "Creating framework-arduinoespressif32"
echo "Creating framework-arduinoespressif32-solo1"
cp -rf ../components/arduino arduino-esp32
rm -rf arduino-esp32/docs
rm -rf arduino-esp32/tests
rm -rf arduino-esp32/libraries/RainMaker
rm -rf arduino-esp32/libraries/Insights
rm -rf arduino-esp32/package
rm -rf arduino-esp32/tools/sdk
rm -rf arduino-esp32/tools/esptool.py
rm -rf arduino-esp32/tools/gen_esp32part.py
rm -rf arduino-esp32/tools/gen_insights_package.py
rm -rf arduino-esp32/tools/gen_insights_package.exe
rm -rf arduino-esp32/tools/platformio-build-*.py
rm -rf arduino-esp32/platform.txt
rm -rf arduino-esp32/package.json
cp -f platform.txt arduino-esp32/
cp -Rf tools/sdk arduino-esp32/tools/
cp -f tools/esptool.py arduino-esp32/tools/
cp -f tools/gen_esp32part.py arduino-esp32/tools/
cp -f tools/platformio-build-*.py arduino-esp32/tools/
cp ../package.json arduino-esp32/package.json
cp ../core_version.h arduino-esp32/cores/esp32/core_version.h
# Replace "framework-arduinoespressif32" with "framework-arduino-solo1"
awk -i inplace -v cuv1="framework-arduinoespressif32" -v cuv2="framework-arduino-solo1" '{gsub(cuv1,cuv2); print;}' "arduino-esp32/tools/platformio-build-esp32.py"
awk -i inplace -v cuv1="framework-arduinoespressif32" -v cuv2="framework-arduino-solo1" '{gsub(cuv1,cuv2); print;}' "arduino-esp32/tools/platformio-build.py"
mv arduino-esp32/ framework-arduinoespressif32/
# If the framework is as tar.gz is needed uncomment next line
# tar --exclude=.* -zcf ../$pio_archive_path framework-arduinoespressif32/
Expand Down
19 changes: 16 additions & 3 deletions tools/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ -z $IDF_PATH ]; then
fi

if [ -z $IDF_BRANCH ]; then
IDF_BRANCH="IDF_Arduino"
IDF_BRANCH="release/v4.4"
fi

if [ -z $AR_PR_TARGET_BRANCH ]; then
Expand Down Expand Up @@ -34,7 +34,7 @@ AR_USER="tasmota"
AR_REPO="$AR_USER/arduino-esp32"

# Arduino branch to use
AR_BRANCH="work"
AR_BRANCH="work_ipv6"

AR_REPO_URL="https://github.com/$AR_REPO.git"
if [ -n $GITHUB_TOKEN ]; then
Expand All @@ -46,10 +46,15 @@ AR_COMPS="$AR_ROOT/components"
AR_OUT="$AR_ROOT/out"
AR_TOOLS="$AR_OUT/tools"
AR_PLATFORM_TXT="$AR_OUT/platform.txt"
AR_ESPTOOL_PY="$AR_TOOLS/esptool.py"
AR_GEN_PART_PY="$AR_TOOLS/gen_esp32part.py"
AR_SDK="$AR_TOOLS/sdk/$IDF_TARGET"

IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "")
AR_COMMIT=$(git -C "$AR_COMPS/arduino" rev-parse --short HEAD || echo "")

rm -rf release-info.txt
echo "Framework built from Tasmota IDF branch $IDF_BRANCH commit $IDF_COMMIT and $AR_REPO branch $AR_BRANCH commit $AR_COMMIT" >> release-info.txt

function get_os(){
OSBITS=`arch`
if [[ "$OSTYPE" == "linux"* ]]; then
Expand Down Expand Up @@ -80,6 +85,14 @@ export SED="sed"
export SSTAT="stat -c %s"

if [[ "$AR_OS" == "macos" ]]; then
if ! [ -x "$(command -v gsed)" ]; then
echo "ERROR: gsed is not installed! Please install gsed first. ex. brew install gsed"
exit 1
fi
if ! [ -x "$(command -v gawk)" ]; then
echo "ERROR: gawk is not installed! Please install gawk first. ex. brew install gawk"
exit 1
fi
export SED="gsed"
export SSTAT="stat -f %z"
fi
Expand Down
12 changes: 1 addition & 11 deletions tools/copy-bootloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,8 @@ BOOTCONF=$FLASH_MODE"_$FLASH_FREQ"

source ./tools/config.sh

echo "Copying bootloader: $AR_SDK/bin/bootloader_$BOOTCONF.bin"
echo "Copying bootloader: $AR_SDK/bin/bootloader_$BOOTCONF.elf"

mkdir -p "$AR_SDK/bin"

# Workaround for getting the bootloaders to be flashable with esptool v4.x
# It might still be needed for IDF5, but using the included esptool instead
#cp "build/bootloader/bootloader.bin" "$AR_SDK/bin/bootloader_$BOOTCONF.bin"

# We use esptool v.4.21 in Tasmota IDF fork so no need to clone here

#if [ ! -e "tools/esptool" ]; then
# git clone https://github.com/espressif/esptool tools/esptool
#fi
./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"
cp "build/bootloader/bootloader.elf" "$AR_SDK/bin/bootloader_$BOOTCONF.elf"
9 changes: 4 additions & 5 deletions tools/copy-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ for item in "${@:2:${#@}-5}"; do
if [[ "${item:2:7}" != "ARDUINO" ]] && [[ "$item" != "-DESP32" ]]; then #skip ARDUINO defines
DEFINES+="$item "
fi
elif [ "$prefix" = "-O" ]; then
PIO_CC_FLAGS+="$item "
elif [[ "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" ]]; then
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" ]]; then
C_FLAGS+="$item "
Expand All @@ -106,7 +108,7 @@ str=`printf '%b' "$str"` #unescape the string
set -- $str
for item in "${@:2:${#@}-5}"; do
prefix="${item:0:2}"
if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" ]]; then
if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" && "$prefix" != "-O" ]]; then
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" ]]; then
AS_FLAGS+="$item "
if [[ $C_FLAGS == *"$item"* ]]; then
Expand All @@ -125,7 +127,7 @@ str=`printf '%b' "$str"` #unescape the string
set -- $str
for item in "${@:2:${#@}-5}"; do
prefix="${item:0:2}"
if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" ]]; then
if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" && "$prefix" != "-O" ]]; then
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" ]]; then
CPP_FLAGS+="$item "
if [[ $PIO_CC_FLAGS != *"$item"* ]]; then
Expand Down Expand Up @@ -479,9 +481,6 @@ rm -rf platform_start.txt platform_mid.txt 1platform_mid.txt
# sdkconfig
cp -f "sdkconfig" "$AR_SDK/sdkconfig"

# esptool.py
cp "$IDF_COMPS/esptool_py/esptool/esptool.py" "$AR_ESPTOOL_PY"

# gen_esp32part.py
cp "$IDF_COMPS/partition_table/gen_esp32part.py" "$AR_GEN_PART_PY"

Expand Down
3 changes: 1 addition & 2 deletions tools/copy-to-arduino.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ fi

echo "Installing new libraries to $ESP32_ARDUINO"

rm -rf $ESP32_ARDUINO/tools/sdk $ESP32_ARDUINO/tools/esptool.py $ESP32_ARDUINO/tools/gen_esp32part.py $ESP32_ARDUINO/tools/platformio-build-*.py $ESP32_ARDUINO/platform.txt
rm -rf $ESP32_ARDUINO/tools/sdk $ESP32_ARDUINO/tools/gen_esp32part.py $ESP32_ARDUINO/tools/platformio-build-*.py $ESP32_ARDUINO/platform.txt

cp -f $AR_OUT/platform.txt $ESP32_ARDUINO/
cp -Rf $AR_TOOLS/sdk $ESP32_ARDUINO/tools/
cp -f $AR_TOOLS/esptool.py $ESP32_ARDUINO/tools/
cp -f $AR_TOOLS/gen_esp32part.py $ESP32_ARDUINO/tools/
cp -f $AR_TOOLS/platformio-build-*.py $ESP32_ARDUINO/tools/
8 changes: 7 additions & 1 deletion tools/install-esp-idf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@ if [ ! -x $idf_was_installed ] || [ ! -x $commit_predefined ]; then
$IDF_PATH/install.sh
fi

#
# Arduino needs cam_hal.h from esp32-camera in include folder
#

cp "$IDF_PATH/components/esp32-camera/driver/private_include/cam_hal.h" "$IDF_PATH/components/esp32-camera/driver/include/"

#
# SETUP ESP-IDF ENV
#

source $IDF_PATH/export.sh
export IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD)
export IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD)
export IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)
Loading