[meta-freescale] [fsl-community-bsp-base][PATCH 2/2] setup-environment: Allow user to provide a site.conf

Otavio Salvador otavio at ossystems.com.br
Fri Nov 1 06:33:04 PDT 2013


The site.conf file is intended to provide configuration which is used
by default in the site where it is building.

There are several uses as:

- override DL_DIR for a company shared cache;
- set proxy value for GIT;
- etc...

Change-Id: I36bf6c5e1c192391b996a49f54cd4f413c769cb0
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 setup-environment | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/setup-environment b/setup-environment
index 3d071ab..f2c91d7 100644
--- a/setup-environment
+++ b/setup-environment
@@ -156,6 +156,13 @@ EOF
 
     cp $TEMPLATES/* conf/
 
+    for s in $HOME/.oe $HOME/.yocto; do
+        if [ -e $s/site.conf ]; then
+            echo "Linking $s/site.conf to conf/site.conf"
+            ln -s $s/site.conf conf
+        fi
+    done
+
     generated_config=1
 fi
 
-- 
1.8.4.rc3




More information about the meta-freescale mailing list