Skip to content

Commit 38e8fdd

Browse files
committed
Enable ccache by default
1 parent 6d86a0b commit 38e8fdd

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

build.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if ! [ -x "$(command -v git)" ]; then
1010
exit 1
1111
fi
1212

13+
CCACHE_ENABLE=1
1314
TARGET="all"
1415
BUILD_TYPE="all"
1516
BUILD_DEBUG="default"
@@ -21,8 +22,9 @@ if [ -z $DEPLOY_OUT ]; then
2122
fi
2223

2324
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 ...]"
2526
echo " -s Skip installing/updating of ESP-IDF and all components"
27+
echo " -n Disable ccache"
2628
echo " -A Set which branch of arduino-esp32 to be used for compilation"
2729
echo " -I Set which branch of ESP-IDF to be used for compilation"
2830
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
4143
s )
4244
SKIP_ENV=1
4345
;;
46+
n )
47+
CCACHE_ENABLE=0
48+
;;
4449
d )
4550
DEPLOY_OUT=1
4651
;;
@@ -91,6 +96,8 @@ done
9196
shift $((OPTIND -1))
9297
CONFIGS=$@
9398

99+
export IDF_CCACHE_ENABLE=$CCACHE_ENABLE
100+
94101
# Output the TARGET array
95102
echo "TARGET(s): ${TARGET[@]}"
96103

@@ -142,7 +149,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
142149
# Skip building for targets that are not in the $TARGET array
143150
continue
144151
fi
145-
152+
146153
configs="configs/defconfig.common;configs/defconfig.$target;configs/defconfig.debug_$BUILD_DEBUG"
147154
for defconf in `echo "$target_json" | jq -c '.features[]' | tr -d '"'`; do
148155
configs="$configs;configs/defconfig.$defconf"
@@ -187,7 +194,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
187194
continue
188195
fi
189196
fi
190-
197+
191198
# Skip chips that should not be a part of the final libs
192199
# WARNING!!! this logic needs to be updated when cron builds are split into jobs
193200
if [ "$TARGET" = "all" ] && [ $target_skip -eq 1 ]; then

tools/cron.sh

-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ if [ -z "$TARGET" ]; then
44
TARGET="all"
55
fi
66

7-
export IDF_CCACHE_ENABLE=1
8-
97
bash ./build.sh -e -t $TARGET

0 commit comments

Comments
 (0)