public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] bitbake: Allow setting DL_DIR from environment
@ 2018-10-30 16:44 Harald Seiler
  2018-10-31  6:13 ` chombourger
  2018-10-31  6:39 ` Jan Kiszka
  0 siblings, 2 replies; 8+ messages in thread
From: Harald Seiler @ 2018-10-30 16:44 UTC (permalink / raw)
  To: isar-users

This patch allows adding DL_DIR to BB_ENV_EXTRAWHITE
and then specifying a custom DL_DIR in the environment.

This behavior mirrors the one in poky.

Signed-off-by: Harald Seiler <hws@denx.de>
---
 bitbake/conf/bitbake.conf   | 2 +-
 meta/conf/isar-bitbake.conf | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bitbake/conf/bitbake.conf b/bitbake/conf/bitbake.conf
index a460df4..ba0d68b 100644
--- a/bitbake/conf/bitbake.conf
+++ b/bitbake/conf/bitbake.conf
@@ -23,7 +23,7 @@ CVSDIR = "${DL_DIR}/cvs"
 DEPENDS = ""
 DEPLOY_DIR = "${TMPDIR}/deploy"
 DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images"
-DL_DIR = "${TMPDIR}/downloads"
+DL_DIR ?= "${TMPDIR}/downloads"
 FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
 FILE_DIRNAME = "${@os.path.dirname(d.getVar('FILE', False))}"
 GITDIR = "${DL_DIR}/git"
diff --git a/meta/conf/isar-bitbake.conf b/meta/conf/isar-bitbake.conf
index 666c4a3..39e73f6 100644
--- a/meta/conf/isar-bitbake.conf
+++ b/meta/conf/isar-bitbake.conf
@@ -19,7 +19,7 @@
 # OTHER DEALINGS IN THE SOFTWARE.
 
 WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PF}"
-DL_DIR = "${TOPDIR}/downloads"
+DL_DIR ?= "${TOPDIR}/downloads"
 SSTATE_DIR ?= "${TMPDIR}/sstate-cache"
 BUILDCHROOT_HOST_DIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/buildchroot-host/rootfs"
 BUILDCHROOT_TARGET_DIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/buildchroot-target/rootfs"
--
2.14.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-11-09 14:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-30 16:44 [PATCH] bitbake: Allow setting DL_DIR from environment Harald Seiler
2018-10-31  6:13 ` chombourger
2018-10-31  6:39 ` Jan Kiszka
2018-11-01 10:45   ` Upgrading bitbake in isar Maxim Yu. Osipov
2018-11-02  9:55     ` Henning Schild
2018-11-06 11:06   ` [PATCH] bitbake: Allow setting DL_DIR from environment Harald Seiler
2018-11-06 11:14     ` Jan Kiszka
2018-11-09 14:11     ` Baurzhan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox