From f533db349bef3c45cfbcdbdf527a8e73c39346b0 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Tue, 20 Mar 2018 13:48:43 +0200 Subject: Don't use git folder to check if we are using SDK sources The license file is added to the sources when SDK is created, use that instead of the git folder to check if we are inside SDK. Allows users to create git repo out of the SDK sources. Change-Id: I01f1837fc9d35063470e4409d64d9e1ccaa08e48 Reviewed-by: Mikko Gronoff --- scripts/setup-environment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh index c66c626..c0e8f79 100755 --- a/scripts/setup-environment.sh +++ b/scripts/setup-environment.sh @@ -98,7 +98,7 @@ if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then mkdir -p ${PWD}/${BUILDDIRECTORY}/conf cp ${PWD}/sources/meta-boot2qt/meta-boot2qt-distro/conf/${LAYERSCONF} ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf - if [ ! -d ${PWD}/sources/meta-boot2qt/.git ]; then + if [ -e ${PWD}/sources/meta-boot2qt/.QT-FOR-DEVICE-CREATION-LICENSE-AGREEMENT ]; then QT_SDK_PATH=$(readlink -f ${PWD}/sources/meta-boot2qt/../../../../) fi fi -- cgit v1.2.3-54-g00ecf