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

login
register
mail settings
Submitter Otavio Salvador
Date Nov. 1, 2013, 1:33 p.m.
Message ID <1383312784-755-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/60971/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Nov. 1, 2013, 1:33 p.m.
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@ossystems.com.br>
---
 setup-environment | 7 +++++++
 1 file changed, 7 insertions(+)

Patch

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