From 16227491a7b1033590e534d6166f5b3bf54812d9 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Wed, 27 Jun 2018 21:15:15 +0200 Subject: build: clean cache by default --- batch.sh | 2 +- build-SD-armbian.sh | 11 ++++++++--- build-SD-rpi.sh | 2 +- buildlib.sh | 2 +- etc/ncp-config.d/no-ip.sh | 1 + 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/batch.sh b/batch.sh index 4ccd83e8..bfb923ee 100755 --- a/batch.sh +++ b/batch.sh @@ -21,7 +21,7 @@ source buildlib.sh # initializes $IMGNAME } # Raspbian -CLEAN=1 ./build-SD-rpi.sh "$IP" +./build-SD-rpi.sh "$IP" #./build-SD-berryboot.sh "$IMG" #TODO # Armbian diff --git a/build-SD-armbian.sh b/build-SD-armbian.sh index 5376467e..3ee49a06 100755 --- a/build-SD-armbian.sh +++ b/build-SD-armbian.sh @@ -8,7 +8,7 @@ # Usage: ./build-SD-armbian.sh [] # -#CLEAN=1 # Pass this envvar to clean download cache +#CLEAN=0 # Pass this envvar to avoid cleaning download cache BOARD="$1" BNAME="${2:-$1}" @@ -39,9 +39,13 @@ KERNEL_ONLY=no KERNEL_CONFIGURE=no BUILD_DESKTOP=no USE_CCACHE=yes -# CLEAN_LEVEL="" # study this: it is much faster, but generated images might be broken (#548) -# NO_APT_CACHER=no # this will also improve build times, but doesn't seem very reliable EOF +[[ "$CLEAN" == "0" ]] && { + cat >> armbian/config-docker-guest.conf <