diff options
author | Frederik Carlier <frederik.carlier@quamotion.mobi> | 2017-03-07 13:29:10 +0300 |
---|---|---|
committer | Frederik Carlier <frederik.carlier@quamotion.mobi> | 2017-03-07 13:29:10 +0300 |
commit | c6658fe2ce553b839044821eb4909a2b929434ef (patch) | |
tree | 9135aeafdb1b26246a948565c54ff6a44f99f914 /cross | |
parent | 5f10cdca15da0d5f50acd09306545774bcacb050 (diff) |
Make lldb optional
Diffstat (limited to 'cross')
-rwxr-xr-x | cross/build-rootfs.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cross/build-rootfs.sh b/cross/build-rootfs.sh index 01ce54e30d..f1000222d1 100755 --- a/cross/build-rootfs.sh +++ b/cross/build-rootfs.sh @@ -5,6 +5,7 @@ usage() echo "Usage: $0 [BuildArch] [LinuxCodeName] [--skipunmount]" echo "BuildArch can be: arm(default), armel, arm64, x86" echo "LinuxCodeName - optional, Code name for Linux, can be: trusty(default), vivid, wily, xenial. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen." + echo "lldbx.y - optional, LLDB version, can be: lldb3.6(default), lldb3.8, no-lldb" echo "--skipunmount - optional, will skip the unmount of rootfs folder." exit 1 } @@ -15,6 +16,7 @@ __InitialDir=$PWD __BuildArch=arm __UbuntuArch=armhf __UbuntuRepo="http://ports.ubuntu.com/" +__LLDB_Package="lldb-3.6-dev" __SkipUnmount=0 # base development support @@ -62,6 +64,15 @@ for i in "$@" ; do __UbuntuArch=i386 __UbuntuRepo="http://archive.ubuntu.com/ubuntu/" ;; + lldb3.6) + __LLDB_Package="lldb-3.6-dev" + ;; + lldb3.8) + __LLDB_Package="lldb-3.8-dev" + ;; + no-lldb) + unset __LLDB_Package + ;; vivid) if [ "$__LinuxCodeName" != "jessie" ]; then __LinuxCodeName=vivid @@ -100,6 +111,11 @@ for i in "$@" ; do esac done +if [ "$__BuildArch" == "armel" ]; then + __LLDB_Package="lldb-3.5-dev" +fi +__UbuntuPackages+=" ${__LLDB_Package:-}" + __RootfsDir="$__CrossDir/rootfs/$__BuildArch" if [[ -n "$ROOTFS_DIR" ]]; then |