@@ -14,10 +14,8 @@ export TARGET="all"
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
;;
@@ -308,20 +297,7 @@ echo "#define ARDUINO_ESP32_GIT_VER 0x$AR_Commit_short
308
297
#define ARDUINO_ESP32_RELEASE_$AR_VERSION_UNDERSCORE
309
298
#define ARDUINO_ESP32_RELEASE \" $AR_VERSION_UNDERSCORE \" " >> " $AR_ROOT /core_version.h"
310
299
311
- # copy everything to arduino-esp32 installation
312
- if [ $COPY_OUT -eq 1 ] && [ -d " $ESP32_ARDUINO " ]; then
313
- ./tools/copy-to-arduino.sh
314
- if [ $? -ne 0 ]; then exit 1; fi
315
- fi
316
-
317
- # push changes to esp32-arduino-libs and create pull request into arduino-esp32
318
- if [ $DEPLOY_OUT -eq 1 ]; then
319
- ./tools/push-to-arduino.sh
320
- if [ $? -ne 0 ]; then exit 1; fi
321
- fi
322
-
323
- # archive the build
324
- if [ " $BUILD_TYPE " = " all" ]; then
325
- ./tools/archive-build.sh
300
+ if [ $ARCHIVE_OUT -eq 1 ]; then
301
+ ./tools/archive-build.sh " $TARGET "
326
302
if [ $? -ne 0 ]; then exit 1; fi
327
303
fi
0 commit comments