diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2014-10-13 16:25:43 +0300 |
---|---|---|
committer | Andy Nichols <andy.nichols@digia.com> | 2014-10-17 13:26:48 +0300 |
commit | 3cb10b94c8dff9a7ea48ea2a681426203327db50 (patch) | |
tree | 02805ff6561a7f79e4b7791db6f122c609f1e828 /scripts | |
parent | 651ce88fad65d82fa7a83871334baf6a0d73c06a (diff) | |
download | meta-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-x | scripts/setup-environment.sh | 8 |
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 | ||
78 | fi | 82 | fi |
79 | 83 | ||
80 | export TEMPLATECONF="${PWD}/sources/meta-b2qt/conf" | 84 | export 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 | ||
88 | sed -i -e "/QT_SDK_PATH/s:\"\":\"${QT_SDK_PATH}\":" conf/local.conf | ||
89 | |||
90 | unset QT_SDK_PATH | ||
83 | unset BUILDDIR | 91 | unset BUILDDIR |
84 | unset TEMPLATECONF | 92 | unset TEMPLATECONF |
85 | unset LAYERSCONF | 93 | unset LAYERSCONF |