mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Move ccache to hidden options (enabled by default)
This commit is contained in:
@@ -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
19
main.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user