[meta-freescale] [fsl-community-bsp-base][PATCH 1/2] setup-environment: Move DL_DIR setting to local.conf

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


This improves user-friendness as it makes clear where it is storing
the downloads cache.

Change-Id: Iedd2d22b938ea192dda96ef2c80a716d6796e53f
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 conf/site.conf    | 5 -----
 setup-environment | 2 ++
 2 files changed, 2 insertions(+), 5 deletions(-)
 delete mode 100644 conf/site.conf

diff --git a/conf/site.conf b/conf/site.conf
deleted file mode 100644
index e7f94b1..0000000
--- a/conf/site.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-SCONF_VERSION = "1"
-
-BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
-
-DL_DIR = "${BSPDIR}/downloads/"
diff --git a/setup-environment b/setup-environment
index 2583fe3..3d071ab 100644
--- a/setup-environment
+++ b/setup-environment
@@ -145,6 +145,8 @@ if [ ! -e conf/local.conf.sample ]; then
 
 BB_NUMBER_THREADS = '$NCPU'
 PARALLEL_MAKE = '-j $NCPU'
+
+DL_DIR ?= "\${BSPDIR}/downloads/"
 EOF
     # Change settings according environment
     sed -e "s,MACHINE ??=.*,MACHINE ??= '$MACHINE',g" \
-- 
1.8.4.rc3




More information about the meta-freescale mailing list