[fsl-community-bsp-base] setup-environment: return if no conf/local.conf generated
Submitted by Ting Liu on July 9, 2014, 3:38 a.m.
Patch ID: 75207
@@ -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
# 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/:.\?$//'`"