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

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

Comments

Otavio Salvador - Nov. 1, 2013, 1:33 p.m.
This improves user-friendness as it makes clear where it is storing
the downloads cache.

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

Patch

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" \