Allow crossbuild cleanup skeep

This commit is contained in:
Pascal Vizeli 2017-10-16 23:49:14 +02:00 committed by GitHub
parent b7351083e4
commit 7ab7b271ea

View file

@ -13,6 +13,7 @@ DOCKER_CACHE="true"
DOCKER_LATEST="true"
DOCKER_PUSH="true"
DOCKER_LOCAL="false"
CROSSBUILD_CLEANUP="true"
GIT_REPOSITORY=""
GIT_BRANCH="master"
TARGET=""
@ -73,6 +74,8 @@ Options:
--local-docker
Use the host docker socket (need map to container!)
/var/run/docker.sock
--no-crossbuild-cleanup
Don't cleanup the crosscompile feature (for multible builds)
Internals:
--addon
@ -367,6 +370,10 @@ function init_crosscompile() {
function clean_crosscompile() {
if [ "$CROSSBUILD_CLEANUP" == "false" ]; then
echo "[INFO] Skeep crosscompiling cleanup"
fi
echo "[INFO] Clean crosscompiling feature"
if [ -f /proc/sys/fs/binfmt_misc ]; then
umount /proc/sys/fs/binfmt_misc || true
@ -432,6 +439,9 @@ while [[ $# -gt 0 ]]; do
--local-docker)
DOCKER_LOCAL="true"
;;
--no-crossbuild-cleanup)
CROSSBUILD_CLEANUP="false"
;;
--armhf)
BUILD_LIST+=("armhf")
;;