summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@digia.com>2014-10-13 16:25:43 +0300
committerAndy Nichols <andy.nichols@digia.com>2014-10-17 13:26:48 +0300
commit3cb10b94c8dff9a7ea48ea2a681426203327db50 (patch)
tree02805ff6561a7f79e4b7791db6f122c609f1e828 /scripts
parent651ce88fad65d82fa7a83871334baf6a0d73c06a (diff)
downloadmeta-boot2qt-3cb10b94c8dff9a7ea48ea2a681426203327db50.tar.gz
Enable to use sources from Qt SDK
This enables sources to be fetched from the Qt SDK, if available, instead of internal git repositories. Required for BYOS customers to build B2Qt things. Git repositories in SRC_URI are configured with 'local-uri' parameter, that defines the path to the source code directory inside the Qt SDK. The base path to Qt SDK is set in local.conf when setup-environment.sh in run. Change-Id: I7f5e96fb6b9e9e55cac9d50cefb17830618193b8 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/setup-environment.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh
index 92e75aa..cc15776 100755
--- a/scripts/setup-environment.sh
+++ b/scripts/setup-environment.sh
@@ -75,11 +75,19 @@ if [ ! -f ${PWD}/${BUILDDIR}/conf/bblayers.conf ]; then
75 75
76 mkdir -p ${PWD}/${BUILDDIR}/conf 76 mkdir -p ${PWD}/${BUILDDIR}/conf
77 cp ${PWD}/sources/meta-b2qt/conf/${LAYERSCONF} ${PWD}/${BUILDDIR}/conf/bblayers.conf 77 cp ${PWD}/sources/meta-b2qt/conf/${LAYERSCONF} ${PWD}/${BUILDDIR}/conf/bblayers.conf
78
79 if [ ! -d ${PWD}/sources/meta-b2qt/.git ]; then
80 QT_SDK_PATH=$(readlink -f ${PWD}/sources/meta-b2qt/../../)
81 fi
78fi 82fi
79 83
80export TEMPLATECONF="${PWD}/sources/meta-b2qt/conf" 84export TEMPLATECONF="${PWD}/sources/meta-b2qt/conf"
81. sources/poky/oe-init-build-env ${BUILDDIR} 85. sources/poky/oe-init-build-env ${BUILDDIR}
82 86
87# use sources from Qt SDK if that is available
88sed -i -e "/QT_SDK_PATH/s:\"\":\"${QT_SDK_PATH}\":" conf/local.conf
89
90unset QT_SDK_PATH
83unset BUILDDIR 91unset BUILDDIR
84unset TEMPLATECONF 92unset TEMPLATECONF
85unset LAYERSCONF 93unset LAYERSCONF