diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2013-01-29 21:16:28 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-07 11:14:37 +0000 |
commit | 4d5ef2af504635c60ffd2d971191bc111035c3a2 (patch) | |
tree | 88a8859786dd783db1501d50396e61561e0f5616 | |
parent | d4e470322658af75db276ecbe8d906949541c872 (diff) | |
download | poky-4d5ef2af504635c60ffd2d971191bc111035c3a2.tar.gz |
bitbake.conf: add STAMPS_DIR for constructing STAMP
Add STAMPS_DIR for constructing STAMP, the defination of STAMP is:
STAMP = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
We can only change the TMPDIR if we want to change the STAMP's location,
but the bb_cache.dat would be regenerated if TMPDIR changes, so add
STAMPS_DIR for constructing it, and add it to the BB_ENV_EXTRAWHITE,
this is very usefull for the "bitbake -S", since then it can be run by:
STAMPS_DIR=<path> bitbake -S <recipe>
which will avoid putting the stamps to ${TMPDIR}/stamps.
BTW, break the too long BB_ENV_EXTRAWHITE into several lines.
[YOCTO #1659]
(From OE-Core rev: ce732c04b3ac06633e20efa8799c4189abfd41b3)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/conf/bitbake.conf | 5 | ||||
-rwxr-xr-x | scripts/oe-buildenv-internal | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 3afaf4ab2b..beba7d10de 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -336,8 +336,9 @@ GITDIR = "${CO_DIR}/git2" | |||
336 | BZRDIR = "${CO_DIR}/bzr" | 336 | BZRDIR = "${CO_DIR}/bzr" |
337 | HGDIR = "${CO_DIR}/hg" | 337 | HGDIR = "${CO_DIR}/hg" |
338 | 338 | ||
339 | STAMP = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}" | 339 | STAMPS_DIR ?= "${TMPDIR}/stamps" |
340 | STAMPCLEAN = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PN}/*-*" | 340 | STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}" |
341 | STAMPCLEAN = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/*-*" | ||
341 | WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}" | 342 | WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}" |
342 | T = "${WORKDIR}/temp" | 343 | T = "${WORKDIR}/temp" |
343 | D = "${WORKDIR}/image" | 344 | D = "${WORKDIR}/image" |
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index 7783574c53..0a4d3243d1 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
@@ -80,4 +80,8 @@ unset BITBAKEDIR | |||
80 | # Used by the runqemu script | 80 | # Used by the runqemu script |
81 | export BUILDDIR | 81 | export BUILDDIR |
82 | export PATH | 82 | export PATH |
83 | export BB_ENV_EXTRAWHITE="MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND SOCKS5_PASSWD SOCKS5_USER SCREENDIR" | 83 | export BB_ENV_EXTRAWHITE="MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy \ |
84 | HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY \ | ||
85 | all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY \ | ||
86 | SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND \ | ||
87 | SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR" | ||