diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-17 10:04:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-20 11:52:35 +0100 |
commit | 3d6229535c7030f0d866235a56f1d8afcc95292a (patch) | |
tree | 7c6de4b04719ace739434c91643dcb1cb0ed4ca9 /meta | |
parent | 14a04abb9b1a176a623d9f6f50ed62af67274170 (diff) | |
download | poky-3d6229535c7030f0d866235a56f1d8afcc95292a.tar.gz |
bitbake.conf/gcc: Add clean masks for stamp files
This takes advantage of new bitbake functionality to clean up stale stamp
files when creating new stamp files.
[YOCTO #2961]
(From OE-Core rev: e21b6c04e512a3bc2339a20045b7041f1d26e859)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/bitbake.conf | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-common.inc | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 9c51630e0b..b3d3f52609 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -332,7 +332,8 @@ GITDIR = "${CO_DIR}/git2" | |||
332 | BZRDIR = "${CO_DIR}/bzr" | 332 | BZRDIR = "${CO_DIR}/bzr" |
333 | HGDIR = "${CO_DIR}/hg" | 333 | HGDIR = "${CO_DIR}/hg" |
334 | 334 | ||
335 | STAMP = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PF}" | 335 | STAMP = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PN}-${EXTENDPE}${PV}-${PR}" |
336 | STAMPCLEAN = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PN}-*-*" | ||
336 | WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PF}" | 337 | WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PF}" |
337 | T = "${WORKDIR}/temp" | 338 | T = "${WORKDIR}/temp" |
338 | D = "${WORKDIR}/image" | 339 | D = "${WORKDIR}/image" |
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index 72180db2a8..4ef2a1b8a0 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc | |||
@@ -63,6 +63,10 @@ SS = "${TMPDIR}/stamps/work-shared/gcc-${PV}-${PR}" | |||
63 | do_fetch[stamp-base] = "${SS}" | 63 | do_fetch[stamp-base] = "${SS}" |
64 | do_unpack[stamp-base] = "${SS}" | 64 | do_unpack[stamp-base] = "${SS}" |
65 | do_patch[stamp-base] = "${SS}" | 65 | do_patch[stamp-base] = "${SS}" |
66 | SSCLEAN = "${TMPDIR}/stamps/work-shared/gcc-*-*" | ||
67 | do_fetch[stamp-base-clean] = "${SSCLEAN}" | ||
68 | do_unpack[stamp-base-clean] = "${SSCLEAN}" | ||
69 | do_patch[stamp-base-clean] = "${SSCLEAN}" | ||
66 | 70 | ||
67 | # SW means Shared Work directory | 71 | # SW means Shared Work directory |
68 | SW = "${TMPDIR}/work-shared/gcc-${PV}-${PR}" | 72 | SW = "${TMPDIR}/work-shared/gcc-${PV}-${PR}" |