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

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Khanna <gkhanna@microsoft.com>2017-01-27 03:04:22 +0300
committerKarel Zikmund <karelz@users.noreply.github.com>2017-01-27 03:04:22 +0300
commitbab18df4e8be9983111b310d52cef96ff3a0b5ee (patch)
treef486984d92d6ec227e36197726da93ccb64c6fc9 /cross/build-rootfs.sh
parentfb107e83e7dc39570d11f19687271d74cae4041b (diff)
SkipUnmount support and set default clang for cross build (#15528)
Diffstat (limited to 'cross/build-rootfs.sh')
-rwxr-xr-xcross/build-rootfs.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/cross/build-rootfs.sh b/cross/build-rootfs.sh
index cda175252c..81788985b1 100755
--- a/cross/build-rootfs.sh
+++ b/cross/build-rootfs.sh
@@ -2,9 +2,10 @@
usage()
{
- echo "Usage: $0 [BuildArch] [LinuxCodeName]"
+ echo "Usage: $0 [BuildArch] [LinuxCodeName] [--SkipUnmount]"
echo "BuildArch can be: arm, armel, arm64, x86"
echo "LinuxCodeName - optional, Code name for Ubuntu, can be: trusty(default), vivid, wily, xenial. If BuildArch is armel, jessie(default) or tizen."
+ echo "[--SkipUnmount] - do not unmount rootfs folders."
exit 1
}
@@ -38,6 +39,7 @@ __UbuntuArch=armhf
__LinuxCodeName=trusty
__UbuntuRepo="http://ports.ubuntu.com/"
__MachineTriple=arm-linux-gnueabihf
+__SkipUnmount=0
__UnprocessedBuildArgs=
for i in "$@" ; do
@@ -47,6 +49,9 @@ for i in "$@" ; do
usage
exit 1
;;
+ --skipunmount)
+ __SkipUnmount=1
+ ;;
arm)
__BuildArch=arm
__UbuntuArch=armhf
@@ -119,7 +124,10 @@ if [[ -n "$ROOTFS_DIR" ]]; then
__RootfsDir=$ROOTFS_DIR
fi
-umount $__RootfsDir/*
+if [ $__SkipUnmount == 0 ]; then
+ umount $__RootfsDir/*
+fi
+
rm -rf $__RootfsDir
if [[ -n $__LinuxCodeName ]]; then
@@ -129,7 +137,11 @@ if [[ -n $__LinuxCodeName ]]; then
chroot $__RootfsDir apt-get -f -y install
chroot $__RootfsDir apt-get -y install $__UbuntuPackages
chroot $__RootfsDir symlinks -cr /usr
- umount $__RootfsDir/*
+
+ if [ $__SkipUnmount == 0 ]; then
+ umount $__RootfsDir/*
+ fi
+
elif [ "$__Tizen" == "tizen" ]; then
ROOTFS_DIR=$__RootfsDir $__CrossDir/$__BuildArch/tizen-build-rootfs.sh
else