Skip to content

Commit e21c0d5

Browse files
committed
several extensions on README.md
1 parent 59acd22 commit e21c0d5

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ log_errors.txt
22
log_instEnviroment.txt
33
log_idfBuild.txt
44
log_pythonBuild.txt
5+
log_osascript.txt
56
esp-idf
67
components/arduino
78
out

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,38 @@ This repository is a variant of the [espressif/esp32-arduino-lib-builder](https:
66

77
It contains modifications:
88

9-
- Needs install of **Add-on**: [twischi/addOns-esp32_AR_lib-builder](https://github.com/twischi/addOns-esp32_AR_lib-builder)
9+
- Redirects Terminal output infos to serveral files to see what is going on during build without get flooded:
10+
- log_errors.txt : Errors of any kind.
11+
- log_instEnviroment.txt : Log when loading and build the enviroment.
12+
- log_idfBuild.txt : Log when bulding with ipf.py
13+
- log_pythonBuild.txt: : Log when building with python3.
1014

11-
- Hint: It is included in Run-Build section below.
15+
- Modified ```/tools/config.sh``` to use **standerd [IDF](https://github.com/espressif/esp-idf/branches) & [Adruiono](https://github.com/espressif/arduino-esp32/branches)-Branches** in case you don't set his only our own with ```build.sh```-options.
16+
17+
```bash
18+
if [ -z $IDF_BRANCH ]; then
19+
IDF_BRANCH="release/v5.3"
20+
fi
21+
22+
if [ -z $AR_PR_TARGET_BRANCH ]; then
23+
AR_PR_TARGET_BRANCH="release/v3.1.x"
24+
fi
25+
```
1226

1327
- Get it running in ***macOS***
1428

29+
- Using ```osascript``` - what is ***macOS***-specific - to open the ouputs in diffrent terminals.
30+
31+
- Needs install of **Add-on**: [twischi/addOns-esp32_AR_lib-builder](https://github.com/twischi/addOns-esp32_AR_lib-builder)
32+
33+
- Hint: It is included in Run-Build section below.
34+
1535
- Runs the **script** ```postBuild_AggregatedFolders.sh``` what is located here: ```/../addOns-esp32_AR_lib-builder/```
1636

1737
- Hint: **Needs** the script intalled:
1838
- One folder UP: ```/../``` (from folder executing the build.sh)
1939
- Expecting to find: ```addOns-esp32_AR_lib-builder```
2040

21-
- Redirects Terminal output infos to serveral files to see what is going on during build without get flooded:
22-
- log_errors.txt : Errors of any kind.
23-
- log_instEnviroment.txt : Log when loading and build the enviroment.
24-
- log_idfBuild.txt : Log when bulding with ipf.py
25-
- log_pythonBuild.txt: : Log when building with python3.
26-
27-
- Using ```osascript``` - what is ***macOS***-specific - to open the ouputs in diffrent terminals.
28-
2941

3042

3143
## To used with ***macOS***:

build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ echo "TARGET(s): ${TARGET[@]}"
112112

113113
mkdir -p dist
114114
rm -f "log_*.txt" # remove old log files if any exists
115-
touch log_errors.txt && touch log_instEnviroment.txt && touch log_idfBuild.txt && touch log_pythonBuild.txt
115+
touch log_errors.txt && touch log_instEnviroment.txt && touch log_idfBuild.txt && touch log_pythonBuild.txt && touch log_osascript.txt
116116

117117
if [ $SKIP_ENV -eq 0 ]; then
118118
echo "* Installing/Updating ESP-IDF and all components..."
119119
# update components from git
120-
osascript -e 'tell application "Terminal" to do script "tail -n 20 -f '$(realpath log_errors.txt)'"'
121-
osascript -e 'tell application "Terminal" to do script "tail -n 20 -f '$(realpath log_instEnviroment.txt)'"'
120+
osascript -e 'tell application "Terminal" to do script "tail -n 20 -f '$(realpath log_errors.txt)'"' >> log_osascript.txt
121+
osascript -e 'tell application "Terminal" to do script "tail -n 20 -f '$(realpath log_instEnviroment.txt)'"' >> log_osascript.txt
122122
./tools/update-components.sh 1>> log_instEnviroment.txt 2>> log_errors.txt
123123
if [ $? -ne 0 ]; then exit 1; fi
124124

@@ -135,7 +135,7 @@ else
135135
source ./tools/config.sh 1>> log_instEnviroment.txt 2>> log_errors.txt
136136
fi
137137

138-
osascript -e 'tell application "Terminal" to do script "tail -n 20 -f '$(realpath log_idfBuild.txt)'"'
138+
osascript -e 'tell application "Terminal" to do script "tail -n 20 -f '$(realpath log_idfBuild.txt)'"' >> log_osascript.txt
139139
if [ "$BUILD_TYPE" != "all" ]; then
140140
if [ "$TARGET" = "all" ]; then
141141
echo "ERROR: You need to specify target for non-default builds"
@@ -303,7 +303,7 @@ for component in `ls "$AR_MANAGED_COMPS"`; do
303303
done
304304

305305
# update package_esp32_index.template.json
306-
osascript -e 'tell application "Terminal" to do script "tail -n 20 -f '$(realpath log_pythonBuild.txt)'"'
306+
osascript -e 'tell application "Terminal" to do script "tail -n 20 -f '$(realpath log_pythonBuild.txt)'"' >> log_osascript.txt
307307
if [ "$BUILD_TYPE" = "all" ]; then
308308
echo "* Generating package_esp32_index.template.json..."
309309
python3 ./tools/gen_tools_json.py -i "$IDF_PATH" -j "$AR_COMPS/arduino/package/package_esp32_index.template.json" -o "$AR_OUT/" 1>> log_pythonBuild.txt 2>> log_errors.txt

0 commit comments

Comments
 (0)