Move ccache to hidden options (enabled by default)

This commit is contained in:
zador-blood-stained
2016-01-03 13:51:56 +03:00
parent ecf44ad05e
commit 7e0cfa6b68
2 changed files with 9 additions and 11 deletions

View File

@@ -31,7 +31,6 @@ GPG_PASS="" # signing password
# advanced
KERNEL_KEEP_CONFIG="no" # overwrite kernel config before compilation
USE_CCACHE="yes" # use ccache for kernel compilation
FBTFT="yes" # https://github.com/notro/fbtft
EXTERNAL="yes" # compile extra drivers`
FORCE_CHECKOUT="yes" # igre manual changes to source

19
main.sh
View File

@@ -30,12 +30,18 @@ for i in "$@"; do
fi
done
if [ "$PROGRESS_DISPLAY" = "none" ]; then
if [[ $PROGRESS_DISPLAY == none ]]; then
OUTPUT_VERYSILENT=yes;
elif [ "$PROGRESS_DISPLAY" != "plain" ]; then
elif [[ $PROGRESS_DISPLAY != plain ]]; then
OUTPUT_DIALOG=yes;
fi
if [ "$PROGRESS_LOG_TO_FILE" != "yes" ]; then unset PROGRESS_LOG_TO_FILE; fi
if [[ $PROGRESS_LOG_TO_FILE != yes ]]; then unset PROGRESS_LOG_TO_FILE; fi
if [[ $USE_CCACHE != no ]]; then
CCACHE=ccache
else
CCACHE=""
fi
# compile.sh version checking
ver1=$(grep '^# VERSION' "$SRC/compile.sh" | cut -d'=' -f2)
@@ -210,13 +216,6 @@ else
CTHREADS="-j${CPUS}";
fi
# Use C compiler cache
if [ "$USE_CCACHE" = "yes" ]; then
CCACHE="ccache";
else
CCACHE="";
fi
# display what we do
if [ "$KERNEL_ONLY" == "yes" ]; then
display_alert "Compiling kernel" "$BOARD" "info"