Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build-SD-armbian.sh')
-rwxr-xr-xbuild-SD-armbian.sh11
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"