Allow crossbuild cleanup skeep
This commit is contained in:
parent
b7351083e4
commit
7ab7b271ea
1 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,7 @@ DOCKER_CACHE="true"
|
||||||
DOCKER_LATEST="true"
|
DOCKER_LATEST="true"
|
||||||
DOCKER_PUSH="true"
|
DOCKER_PUSH="true"
|
||||||
DOCKER_LOCAL="false"
|
DOCKER_LOCAL="false"
|
||||||
|
CROSSBUILD_CLEANUP="true"
|
||||||
GIT_REPOSITORY=""
|
GIT_REPOSITORY=""
|
||||||
GIT_BRANCH="master"
|
GIT_BRANCH="master"
|
||||||
TARGET=""
|
TARGET=""
|
||||||
|
@ -73,6 +74,8 @@ Options:
|
||||||
--local-docker
|
--local-docker
|
||||||
Use the host docker socket (need map to container!)
|
Use the host docker socket (need map to container!)
|
||||||
/var/run/docker.sock
|
/var/run/docker.sock
|
||||||
|
--no-crossbuild-cleanup
|
||||||
|
Don't cleanup the crosscompile feature (for multible builds)
|
||||||
|
|
||||||
Internals:
|
Internals:
|
||||||
--addon
|
--addon
|
||||||
|
@ -367,6 +370,10 @@ function init_crosscompile() {
|
||||||
|
|
||||||
|
|
||||||
function clean_crosscompile() {
|
function clean_crosscompile() {
|
||||||
|
if [ "$CROSSBUILD_CLEANUP" == "false" ]; then
|
||||||
|
echo "[INFO] Skeep crosscompiling cleanup"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[INFO] Clean crosscompiling feature"
|
echo "[INFO] Clean crosscompiling feature"
|
||||||
if [ -f /proc/sys/fs/binfmt_misc ]; then
|
if [ -f /proc/sys/fs/binfmt_misc ]; then
|
||||||
umount /proc/sys/fs/binfmt_misc || true
|
umount /proc/sys/fs/binfmt_misc || true
|
||||||
|
@ -432,6 +439,9 @@ while [[ $# -gt 0 ]]; do
|
||||||
--local-docker)
|
--local-docker)
|
||||||
DOCKER_LOCAL="true"
|
DOCKER_LOCAL="true"
|
||||||
;;
|
;;
|
||||||
|
--no-crossbuild-cleanup)
|
||||||
|
CROSSBUILD_CLEANUP="false"
|
||||||
|
;;
|
||||||
--armhf)
|
--armhf)
|
||||||
BUILD_LIST+=("armhf")
|
BUILD_LIST+=("armhf")
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue