@@ -10,6 +10,7 @@ if ! [ -x "$(command -v git)" ]; then
10
10
exit 1
11
11
fi
12
12
13
+ CCACHE_ENABLE=1
13
14
TARGET=" all"
14
15
BUILD_TYPE=" all"
15
16
BUILD_DEBUG=" default"
@@ -21,8 +22,9 @@ if [ -z $DEPLOY_OUT ]; then
21
22
fi
22
23
23
24
function print_help() {
24
- echo " Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-D <debug_level>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf-libs|copy-bootloader|mem-variant>] [config ...]"
25
+ echo " Usage: build.sh [-s] [-n] [- A <arduino_branch>] [-I <idf_branch>] [-D <debug_level>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf-libs|copy-bootloader|mem-variant>] [config ...]"
25
26
echo " -s Skip installing/updating of ESP-IDF and all components"
27
+ echo " -n Disable ccache"
26
28
echo " -A Set which branch of arduino-esp32 to be used for compilation"
27
29
echo " -I Set which branch of ESP-IDF to be used for compilation"
28
30
echo " -i Set which commit of ESP-IDF to be used for compilation"
@@ -41,6 +43,9 @@ while getopts ":A:I:i:c:t:b:D:sde" opt; do
41
43
s )
42
44
SKIP_ENV=1
43
45
;;
46
+ n )
47
+ CCACHE_ENABLE=0
48
+ ;;
44
49
d )
45
50
DEPLOY_OUT=1
46
51
;;
91
96
shift $(( OPTIND - 1 ))
92
97
CONFIGS=$@
93
98
99
+ export IDF_CCACHE_ENABLE=$CCACHE_ENABLE
100
+
94
101
# Output the TARGET array
95
102
echo " TARGET(s): ${TARGET[@]} "
96
103
@@ -142,7 +149,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
142
149
# Skip building for targets that are not in the $TARGET array
143
150
continue
144
151
fi
145
-
152
+
146
153
configs=" configs/defconfig.common;configs/defconfig.$target ;configs/defconfig.debug_$BUILD_DEBUG "
147
154
for defconf in ` echo " $target_json " | jq -c ' .features[]' | tr -d ' "' ` ; do
148
155
configs=" $configs ;configs/defconfig.$defconf "
@@ -187,7 +194,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
187
194
continue
188
195
fi
189
196
fi
190
-
197
+
191
198
# Skip chips that should not be a part of the final libs
192
199
# WARNING!!! this logic needs to be updated when cron builds are split into jobs
193
200
if [ " $TARGET " = " all" ] && [ $target_skip -eq 1 ]; then
0 commit comments