diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-06-27 22:15:15 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-06-28 18:20:54 +0300 |
commit | 16227491a7b1033590e534d6166f5b3bf54812d9 (patch) | |
tree | e1d46ddc5c182a213564379b757cddd62fcfd13a /build-SD-armbian.sh | |
parent | fbc0d465e9aae186b6e65aa195f6ab4bd08110b0 (diff) |
build: clean cache by default
Diffstat (limited to 'build-SD-armbian.sh')
-rwxr-xr-x | build-SD-armbian.sh | 11 |
1 files changed, 8 insertions, 3 deletions
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 <board_code> [<board_name>] # -#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 <<EOF + 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 +} # board specific parameters CONF="config-$BOARD".conf @@ -49,6 +53,7 @@ CONF="config-$BOARD".conf # build armbian/compile.sh docker +rm armbian/config-docker-guest.conf # pack image mv armbian/output/images/Armbian*.img "$IMG" |