summaryrefslogtreecommitdiffstats
path: root/b2qt-init-build-env
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@theqtcompany.com>2016-04-11 12:59:21 +0300
committerSamuli Piippo <samuli.piippo@theqtcompany.com>2016-04-18 06:15:34 +0000
commitd40aec778fc15572bb9286f324a92f61af916438 (patch)
treedec364ccb64efdadb417bc9b321c87bf2372baf9 /b2qt-init-build-env
parentfc5cc34b1972b2a3cc3435edb8505c11e7f02619 (diff)
downloadmeta-boot2qt-d40aec778fc15572bb9286f324a92f61af916438.tar.gz
Use --internal arg to fetch playground repos
Add separate --internal argument to get all internal repos from playground, regardless what --device is used. Change-Id: If0411f877d1c7c21fcc7a4ac7f03adec3dabd5f6 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com> Reviewed-by: Louai Al-Khanji <louai.al-khanji@theqtcompany.com>
Diffstat (limited to 'b2qt-init-build-env')
-rwxr-xr-xb2qt-init-build-env14
1 files changed, 10 insertions, 4 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env
index ddfabf6..cd5952f 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"
@@ -92,9 +98,6 @@ get_groups() {
92 all) 98 all)
93 PROJECT_GROUPS="external" 99 PROJECT_GROUPS="external"
94 ;; 100 ;;
95 internal)
96 PROJECT_GROUPS="external internal"
97 ;;
98 apalis-imx6|colibri-imx6|colibri-vf) 101 apalis-imx6|colibri-imx6|colibri-vf)
99 PROJECT_GROUPS="toradex" 102 PROJECT_GROUPS="toradex"
100 ;; 103 ;;
@@ -132,6 +135,9 @@ get_groups() {
132 esac 135 esac
133 136
134 PROJECT_GROUPS="${PROJECT_GROUPS} default" 137 PROJECT_GROUPS="${PROJECT_GROUPS} default"
138 if [ "${INTERNAL}" = "y" ]; then
139 PROJECT_GROUPS="${PROJECT_GROUPS} internal"
140 fi
135} 141}
136 142
137list_devices() { 143list_devices() {