summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-02-11 14:13:26 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-11 12:32:55 +0000
commitc0867a425166086624bcffa231a1497291f860cb (patch)
tree54f106154c3390f3446f564369283ffee1e140af /meta
parent87e744791e59806d0c87b37d72ff32a96bbcb929 (diff)
downloadopenembedded-core-c0867a425166086624bcffa231a1497291f860cb.tar.gz
openembedded-core-c0867a425166086624bcffa231a1497291f860cb.tar.bz2
openembedded-core-c0867a425166086624bcffa231a1497291f860cb.zip
classes/externalsrc: disable rm_work when active
If you're using externalsrc, it's very likely that you're going to want to examine the intermediate build results even if the recipe builds successfully; therefore you won't want rm_work to delete those. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/externalsrc.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 607861f023..9d7ab00e9e 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -86,6 +86,9 @@ python () {
# Ensure compilation happens every time
d.setVarFlag('do_compile', 'nostamp', '1')
+ # We don't want the workdir to go away
+ d.appendVar('RM_WORK_EXCLUDE', ' ' + d.getVar('PN', True))
+
# If B=S the same builddir is used even for different architectures.
# Thus, use a shared CONFIGURESTAMPFILE so that change of do_configure
# task hash is correctly detected if e.g. MACHINE changes. In addition,