Skip to content

Commit 703002b

Browse files
committed
feat(repo): finish release/v3.0.0-rc3
1 parent 536bdcb commit 703002b

File tree

9 files changed

+205
-126
lines changed

9 files changed

+205
-126
lines changed

README.md

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,18 @@
1-
# ESP32 Arduino Lib Builder [![ESP32 Arduino Libs CI](https://github.com/espressif/esp32-arduino-lib-builder/actions/workflows/push.yml/badge.svg)](https://github.com/espressif/esp32-arduino-lib-builder/actions/workflows/push.yml)
1+
# ESP32 Arduino Lib Builder
22

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

55
Tested on Ubuntu (32 and 64 bit), Raspberry Pi and MacOS.
66

77
### Build on Ubuntu and Raspberry Pi
8+
89
```bash
9-
sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache jq
10-
sudo pip install --upgrade pip
11-
git clone https://github.com/espressif/esp32-arduino-lib-builder
12-
cd esp32-arduino-lib-builder
10+
// Build all targets
1311
./build.sh
14-
```
15-
16-
### Using the User Interface
17-
18-
You can more easily build the libraries using the user interface found in the `tools/config_editor/` folder.
19-
It is a Python script that allows you to select and edit the options for the libraries you want to build.
20-
The script has mouse support and can also be pre-configured using the same command line arguments as the `build.sh` script.
21-
For more information and troubleshooting, please refer to the [UI README](tools/config_editor/README.md).
22-
23-
To use it, follow these steps:
24-
25-
1. Make sure you have the required dependencies installed:
26-
- Python 3.9 or later
27-
- The [Textual](https://github.com/textualize/textual/) library
28-
- All the dependencies listed in the previous section
2912

30-
2. Execute the script `tools/config_editor/app.py` from any folder. It will automatically detect the path to the root of the repository.
31-
32-
3. Configure the compilation and ESP-IDF options as desired.
33-
34-
4. Click on the "Compile Static Libraries" button to start the compilation process.
35-
36-
5. The script will show the compilation output in a new screen. Note that the compilation process can take many hours, depending on the number of libraries selected and the options chosen.
37-
38-
6. If the compilation is successful and the option to copy the libraries to the Arduino Core folder is enabled, it will already be available for use in the Arduino IDE. Otherwise, you can find the compiled libraries in the `esp32-arduino-libs` folder alongside this repository.
39-
- Note that the copy operation doesn't currently support the core downloaded from the Arduino IDE Boards Manager, only the manual installation from the [`arduino-esp32`](https://github.com/espressif/arduino-esp32) repository.
13+
// Build specific targets, e.g. ESP32-S3
14+
./build.sh -t esp32s3
15+
```
4016

4117
### Documentation
4218

build.sh

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ while getopts ":A:I:i:c:t:b:D:sde" opt; do
6868
;;
6969
b )
7070
b=$OPTARG
71-
if [ "$b" != "build" ] &&
72-
[ "$b" != "menuconfig" ] &&
73-
[ "$b" != "reconfigure" ] &&
74-
[ "$b" != "idf-libs" ] &&
75-
[ "$b" != "copy-bootloader" ] &&
71+
if [ "$b" != "build" ] &&
72+
[ "$b" != "menuconfig" ] &&
73+
[ "$b" != "reconfigure" ] &&
74+
[ "$b" != "idf-libs" ] &&
75+
[ "$b" != "copy-bootloader" ] &&
7676
[ "$b" != "mem-variant" ]; then
7777
print_help
7878
fi
@@ -96,6 +96,8 @@ echo "TARGET(s): ${TARGET[@]}"
9696

9797
mkdir -p dist
9898

99+
source ./tools/config.sh
100+
99101
if [ $SKIP_ENV -eq 0 ]; then
100102
echo "* Installing/Updating ESP-IDF and all components..."
101103
# update components from git
@@ -142,7 +144,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
142144
# Skip building for targets that are not in the $TARGET array
143145
continue
144146
fi
145-
147+
146148
configs="configs/defconfig.common;configs/defconfig.$target;configs/defconfig.debug_$BUILD_DEBUG"
147149
for defconf in `echo "$target_json" | jq -c '.features[]' | tr -d '"'`; do
148150
configs="$configs;configs/defconfig.$defconf"
@@ -187,7 +189,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
187189
continue
188190
fi
189191
fi
190-
192+
191193
# Skip chips that should not be a part of the final libs
192194
# WARNING!!! this logic needs to be updated when cron builds are split into jobs
193195
if [ "$TARGET" = "all" ] && [ $target_skip -eq 1 ]; then
@@ -306,25 +308,21 @@ fi
306308

307309
# Generate PlatformIO manifest file
308310
if [ "$BUILD_TYPE" = "all" ]; then
309-
pushd $IDF_PATH
310-
ibr=$(git describe --all --exact-match 2>/dev/null)
311-
ic=$(git -C "$IDF_PATH" rev-parse --short HEAD)
312-
popd
313-
python3 ./tools/gen_platformio_manifest.py -o "$TOOLS_JSON_OUT/" -s "$ibr" -c "$ic"
314-
if [ $? -ne 0 ]; then exit 1; fi
315-
fi
316-
317-
# copy everything to arduino-esp32 installation
318-
if [ $COPY_OUT -eq 1 ] && [ -d "$ESP32_ARDUINO" ]; then
319-
./tools/copy-to-arduino.sh
311+
python3 ./tools/gen_platformio_manifest.py -o "$TOOLS_JSON_OUT/" -s "$IDF_BRANCH" -c "$IDF_COMMIT"
320312
if [ $? -ne 0 ]; then exit 1; fi
321313
fi
322314

323-
# push changes to esp32-arduino-libs and create pull request into arduino-esp32
324-
if [ $DEPLOY_OUT -eq 1 ]; then
325-
./tools/push-to-arduino.sh
326-
if [ $? -ne 0 ]; then exit 1; fi
327-
fi
315+
# # copy everything to arduino-esp32 installation
316+
# if [ $COPY_OUT -eq 1 ] && [ -d "$ESP32_ARDUINO" ]; then
317+
# ./tools/copy-to-arduino.sh
318+
# if [ $? -ne 0 ]; then exit 1; fi
319+
# fi
320+
321+
# # push changes to esp32-arduino-libs and create pull request into arduino-esp32
322+
# if [ $DEPLOY_OUT -eq 1 ]; then
323+
# ./tools/push-to-arduino.sh
324+
# if [ $? -ne 0 ]; then exit 1; fi
325+
# fi
328326

329327
# archive the build
330328
if [ $ARCHIVE_OUT -eq 1 ]; then

main/idf_component.yml

Lines changed: 92 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,109 @@
11
dependencies:
22
# Required IDF version
33
idf: ">=5.1"
4-
espressif/esp32-camera:
5-
version: "master"
6-
git: https://github.com/espressif/esp32-camera.git
7-
require: public
8-
rules:
9-
- if: "target in [esp32, esp32s2, esp32s3]"
10-
espressif/esp-tflite-micro:
11-
version: ">=1.2.0"
4+
5+
chmorgan/esp-libhelix-mp3:
6+
version: "1.0.3"
127
require: public
8+
9+
espressif/cbor:
1310
rules:
14-
- if: "target not in [esp32c2]"
11+
- if: idf_version >=5.0
12+
version: "0.6.0~1"
13+
1514
espressif/esp-dl:
16-
version: "master"
15+
version: "79034eeb6a98e5dd896c1bf8e87403d562460078"
1716
git: https://github.com/espressif/esp-dl.git
1817
require: public
1918
rules:
2019
- if: "target in [esp32s3, esp32s2, esp32]"
20+
21+
esp-dsp:
22+
version: "1.4.12"
23+
rules:
24+
- if: "target != esp32c2"
25+
26+
espressif/esp-nn:
27+
version: "1.0.2"
28+
2129
espressif/esp-sr:
22-
version: ">=1.4.2"
30+
version: "1.7.1"
2331
rules:
2432
- if: "target in [esp32s3]"
2533

34+
espressif/esp-tflite-micro:
35+
version: "1.3.0"
36+
require: public
37+
rules:
38+
- if: "target not in [esp32c2]"
39+
40+
espressif/esp-zboss-lib:
41+
version: "1.3.1"
42+
rules:
43+
- if: "target != esp32c2"
44+
45+
espressif/esp-zigbee-lib:
46+
version: "1.3.1"
47+
rules:
48+
- if: "target != esp32c2"
49+
50+
espressif/esp32-camera:
51+
version: "dba8da9898928d9808d57a0b0cdcde9f130ed8fe"
52+
git: https://github.com/espressif/esp32-camera.git
53+
require: public
54+
rules:
55+
- if: "target in [esp32, esp32s2, esp32s3]"
56+
57+
espressif/esp_diag_data_store:
58+
version: "1.0.1"
59+
60+
espressif/esp_diagnostics:
61+
version: "1.1.0"
62+
63+
espressif/esp_insights:
64+
version: "1.1.0"
65+
rules:
66+
- if: "target != esp32c2"
67+
68+
espressif/esp_modem:
69+
version: "1.1.0"
70+
71+
espressif/esp_rainmaker:
72+
version: "1.1.0"
73+
rules:
74+
- if: "target != esp32c2"
75+
76+
espressif/esp_schedule:
77+
version: "1.1.1"
78+
79+
espressif/esp_secure_cert_mgr:
80+
rules:
81+
- if: idf_version >=4.3
82+
version: "2.4.1"
83+
84+
espressif/jsmn:
85+
version: "1.1.0"
86+
87+
espressif/json_generator:
88+
version: "1.1.2"
89+
90+
espressif/json_parser:
91+
version: "1.0.3"
92+
93+
mdns: "1.3.0"
94+
95+
espressif/qrcode:
96+
version: "0.1.0~2"
97+
rules:
98+
- if: "target != esp32c2"
99+
100+
espressif/rmaker_common:
101+
version: "1.4.5"
102+
rules:
103+
- if: "target != esp32c2"
104+
105+
joltwallet/littlefs: "1.14.4"
106+
26107
# esp-sr: "^1.3.1"
27108
# esp32-camera: "^2.0.4"
28109
# esp-dl:

tools/archive-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "")
4-
IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD || echo "")
3+
source ./tools/config.sh
4+
55
idf_version_string=${IDF_BRANCH//\//_}"-$IDF_COMMIT"
66

77
archive_path="dist/arduino-esp32-libs-$1-$idf_version_string.tar.gz"

tools/check-deploy-needed.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source ./tools/config.sh
44

5-
IDF_COMMIT=`github_last_commit "$IDF_REPO" "$IDF_BRANCH"`
5+
# IDF_COMMIT=`github_last_commit "$IDF_REPO" "$IDF_BRANCH"`
66

77
if [ -z $GITHUB_HEAD_REF ]; then
88
current_branch=`git branch --show-current`

tools/config.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3+
export IDF_COMMIT="442a798083"
4+
export IDF_BRANCH="release/v5.1"
5+
export AR_REPO_COMMIT="50ef6f43"
6+
export TINYUSB_REPO_COMMIT="82dfe9565"
37

48
if [ -z $IDF_PATH ]; then
59
export IDF_PATH="$PWD/esp-idf"
@@ -52,10 +56,10 @@ PIO_SDK="FRAMEWORK_SDK_DIR, \"$IDF_TARGET\""
5256
TOOLS_JSON_OUT="$AR_TOOLS/esp32-arduino-libs"
5357
IDF_LIBS_DIR="$AR_ROOT/../esp32-arduino-libs"
5458

55-
if [ -d "$IDF_PATH" ]; then
56-
export IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD)
57-
export IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)
58-
fi
59+
# if [ -d "$IDF_PATH" ]; then
60+
# export IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD)
61+
# export IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)
62+
# fi
5963

6064
function get_os(){
6165
OSBITS=`uname -m`

0 commit comments

Comments
 (0)