@@ -14,10 +14,8 @@ export TARGET="esp32"
14
14
BUILD_TYPE=" all"
15
15
SKIP_ENV=0
16
16
COPY_OUT=0
17
- ARCHIVE_OUT=0
18
- if [ -z $DEPLOY_OUT ]; then
19
- DEPLOY_OUT=0
20
- fi
17
+ ARCHIVE_OUT=1
18
+ DEPLOY_OUT=0
21
19
22
20
function print_help() {
23
21
echo " Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf-libs|copy-bootloader|mem-variant>] [config ...]"
@@ -26,8 +24,6 @@ function print_help() {
26
24
echo " -I Set which branch of ESP-IDF to be used for compilation"
27
25
echo " -i Set which commit of ESP-IDF to be used for compilation"
28
26
echo " -e Archive the build to dist"
29
- echo " -d Deploy the build to github arduino-esp32"
30
- echo " -c Set the arduino-esp32 folder to copy the result to. ex. '$HOME /Arduino/hardware/espressif/esp32'"
31
27
echo " -t Set the build target(chip) ex. 'esp32s3' or select multiple targets(chips) by separating them with comma ex. 'esp32,esp32s3,esp32c3'"
32
28
echo " -b Set the build type. ex. 'build' to build the project and prepare for uploading to a board"
33
29
echo " ... Specify additional configs to be applied. ex. 'qio 80m' to compile for QIO Flash@80MHz. Requires -b"
@@ -39,16 +35,9 @@ while getopts ":A:I:i:c:t:b:sde" opt; do
39
35
s )
40
36
SKIP_ENV=1
41
37
;;
42
- d )
43
- DEPLOY_OUT=1
44
- ;;
45
38
e )
46
39
ARCHIVE_OUT=1
47
40
;;
48
- c )
49
- export ESP32_ARDUINO=" $OPTARG "
50
- COPY_OUT=1
51
- ;;
52
41
A )
53
42
export AR_BRANCH=" $OPTARG "
54
43
;;
@@ -268,13 +257,6 @@ done
268
257
269
258
export IDF_COMMIT=$( git -C " $IDF_PATH " rev-parse --short HEAD)
270
259
271
- # update package_esp32_index.template.json
272
- # if [ "$BUILD_TYPE" = "all" ]; then
273
- # python3 ./tools/gen_tools_json.py -i "$IDF_PATH" -j "$AR_COMPS/arduino/package/package_esp32_index.template.json" -o "$AR_OUT/"
274
- # python3 ./tools/gen_tools_json.py -i "$IDF_PATH" -o "$TOOLS_JSON_OUT/"
275
- # if [ $? -ne 0 ]; then exit 1; fi
276
- # fi
277
-
278
260
# Generate PlatformIO library manifest file
279
261
if [ " $BUILD_TYPE " = " all" ]; then
280
262
python3 ./tools/gen_pio_lib_manifest.py -o " $TOOLS_JSON_OUT /" -s " v$IDF_VERSION " -c " $IDF_COMMIT "
@@ -298,20 +280,8 @@ echo "#define ARDUINO_ESP32_GIT_VER 0x$AR_Commit_short
298
280
#define ARDUINO_ESP32_RELEASE_$AR_VERSION_UNDERSCORE
299
281
#define ARDUINO_ESP32_RELEASE \" $AR_VERSION_UNDERSCORE \" " >> " $AR_ROOT /core_version.h"
300
282
301
- # copy everything to arduino-esp32 installation
302
- if [ $COPY_OUT -eq 1 ] && [ -d " $ESP32_ARDUINO " ]; then
303
- ./tools/copy-to-arduino.sh
304
- if [ $? -ne 0 ]; then exit 1; fi
305
- fi
306
-
307
- # push changes to esp32-arduino-libs and create pull request into arduino-esp32
308
- if [ $DEPLOY_OUT -eq 1 ]; then
309
- ./tools/push-to-arduino.sh
310
- if [ $? -ne 0 ]; then exit 1; fi
311
- fi
312
-
313
283
# archive the build
314
- if [ " $BUILD_TYPE " = " all " ]; then
315
- ./tools/archive-build.sh
284
+ if [ $ARCHIVE_OUT -eq 1 ]; then
285
+ ./tools/archive-build.sh " $TARGET "
316
286
if [ $? -ne 0 ]; then exit 1; fi
317
287
fi
0 commit comments