[meta-freescale] [fsl-community-bsp-base][PATCH] setup-environment: Stop displaying imx6qsabresd when already configured
Alexandre Belloni
alexandre.belloni at free-electrons.com
Mon Apr 21 15:33:46 PDT 2014
When a build dir is already configured, using
'. ./setup-environment build' will display:
"Configuring for imx6qsabresd"
and
"Your configuration files at build have not been touched."
which is contradictory.
So test for an existing configuration before displaying the machine
Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
---
setup-environment | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/setup-environment b/setup-environment
index a4b211657072..17adf15628b7 100644
--- a/setup-environment
+++ b/setup-environment
@@ -91,7 +91,9 @@ if [ "x$MACHINE" = "x" ] || [ "$VALID_MACHINE" = "0" ]; then
usage && clean_up
return 1
else
- echo "Configuring for ${MACHINE}"
+ if [ ! -e $1/conf/local.conf.sample ]; then
+ echo "Configuring for ${MACHINE}"
+ fi
fi
if [ -z "$SDKMACHINE" ]; then
--
1.9.1
More information about the meta-freescale
mailing list