[meta-freescale] [fsl-community-bsp-base][PATCH] setup-environment: return if no conf/local.conf generated

ting.liu at freescale.com ting.liu at freescale.com
Tue Jul 8 20:38:26 PDT 2014


From: Ting Liu <ting.liu at freescale.com>

there will be no conf/local.conf generated if python version check
in poky/scripts/oe-buildenv-internal failed. In this case, no need
to go further.

Signed-off-by: Ting Liu <ting.liu at freescale.com>
---
 setup-environment | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/setup-environment b/setup-environment
index 5931e2b..a19aa13 100755
--- a/setup-environment
+++ b/setup-environment
@@ -132,6 +132,11 @@ cd $OEROOT
 
 . ./oe-init-build-env $CWD/$1 > /dev/null
 
+# if conf/local.conf not generated, no need to go further
+if [ ! -e conf/local.conf ]; then
+    clean_up && return 1
+fi
+
 # Clean up PATH, because if it includes tokens to current directories somehow,
 # wrong binaries can be used instead of the expected ones during task execution
 export PATH="`echo $PATH | sed 's/\(:.\|:\)*:/:/g;s/^.\?://;s/:.\?$//'`"
-- 
1.8.3.2



More information about the meta-freescale mailing list