Skip updating - a new hidden / internal variable to speedup images creation

This commit is contained in:
Igor Pecovnik 2016-09-20 18:17:13 +02:00
parent a93939aa30
commit 7436a57815

18
main.sh
View File

@ -166,14 +166,16 @@ start=`date +%s`
[[ $CLEAN_LEVEL == *sources* ]] && cleaning "sources"
display_alert "Downloading sources" "" "info"
fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"
BOOTSOURCEDIR=$BOOTDIR/${BOOTBRANCH##*:}
fetch_from_repo "$KERNELSOURCE" "$KERNELDIR" "$KERNELBRANCH" "yes"
LINUXSOURCEDIR=$KERNELDIR/${KERNELBRANCH##*:}
# TODO: move to armbian-tools or extras-buildpkgs
fetch_from_repo "https://github.com/hglm/a10disp/" "sunxi-display-changer" "branch:master"
# ignore updates help on building all images - for internal purposes
if [[ $IGNORE_UPDATES != yes ]]; then
display_alert "Downloading sources" "" "info"
fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"
BOOTSOURCEDIR=$BOOTDIR/${BOOTBRANCH##*:}
fetch_from_repo "$KERNELSOURCE" "$KERNELDIR" "$KERNELBRANCH" "yes"
LINUXSOURCEDIR=$KERNELDIR/${KERNELBRANCH##*:}
# TODO: move to armbian-tools or extras-buildpkgs
fetch_from_repo "https://github.com/hglm/a10disp/" "sunxi-display-changer" "branch:master"
fi
compile_sunxi_tools