summaryrefslogtreecommitdiffstats
path: root/b2qt-init-build-env
diff options
context:
space:
mode:
Diffstat (limited to 'b2qt-init-build-env')
-rwxr-xr-xb2qt-init-build-env15
1 files changed, 12 insertions, 3 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env
index 8541c72..b395e5d 100755
--- a/b2qt-init-build-env
+++ b/b2qt-init-build-env
@@ -26,7 +26,10 @@ usage() {
26 echo "Usage: $(basename $0) COMMAND [ARGS]" 26 echo "Usage: $(basename $0) COMMAND [ARGS]"
27 echo 27 echo
28 echo "Initialize build environment:" 28 echo "Initialize build environment:"
29 echo " $(basename $0) init --device <name> [--reference <mirror path>]" 29 echo " $(basename $0) init --device <name> [--reference <mirror path>] [--internal]"
30 echo " --device <name>: target device name or 'all'"
31 echo " --reference <mirror path>: path to local mirror, initialized previously with '$(basename $0) mirror'"
32 echo " --internal: fetch internal repositories, available only inside The Qt Company network."
30 echo "Initialize local mirror:" 33 echo "Initialize local mirror:"
31 echo " $(basename $0) mirror" 34 echo " $(basename $0) mirror"
32 echo "List available devices:" 35 echo "List available devices:"
@@ -51,6 +54,9 @@ while test -n "$1"; do
51 shift 54 shift
52 REPO_URL="--repo-url $1" 55 REPO_URL="--repo-url $1"
53 ;; 56 ;;
57 "--internal")
58 INTERNAL="y"
59 ;;
54 *) 60 *)
55 if [ -n "$COMMAND" ]; then 61 if [ -n "$COMMAND" ]; then
56 echo "Unknown argument: $1" 62 echo "Unknown argument: $1"
@@ -90,7 +96,7 @@ get_repo() {
90get_groups() { 96get_groups() {
91 case ${DEVICE} in 97 case ${DEVICE} in
92 all) 98 all)
93 PROJECT_GROUPS="all" 99 PROJECT_GROUPS="external"
94 ;; 100 ;;
95 apalis-imx6|colibri-imx6|colibri-vf) 101 apalis-imx6|colibri-imx6|colibri-vf)
96 PROJECT_GROUPS="toradex" 102 PROJECT_GROUPS="toradex"
@@ -127,11 +133,14 @@ get_groups() {
127 ;; 133 ;;
128 *) 134 *)
129 echo "Unknown device configuration, including all meta layers" 135 echo "Unknown device configuration, including all meta layers"
130 PROJECT_GROUPS="all" 136 PROJECT_GROUPS="external"
131 ;; 137 ;;
132 esac 138 esac
133 139
134 PROJECT_GROUPS="${PROJECT_GROUPS} default" 140 PROJECT_GROUPS="${PROJECT_GROUPS} default"
141 if [ "${INTERNAL}" = "y" ]; then
142 PROJECT_GROUPS="${PROJECT_GROUPS} internal"
143 fi
135} 144}
136 145
137list_devices() { 146list_devices() {