diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-02-11 14:13:26 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-11 12:33:02 +0000 |
commit | 20034c3f7affe335bf9d75abf97cbf8e5c288c65 (patch) | |
tree | 985aeaaf59b8db82bf8f5db09d104b2797f2ca89 /meta | |
parent | c38f25377b6fd171c26fa667c1d7ac8bd314cb34 (diff) | |
download | poky-20034c3f7affe335bf9d75abf97cbf8e5c288c65.tar.gz |
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.
(From OE-Core rev: c0867a425166086624bcffa231a1497291f860cb)
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.bbclass | 3 |
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 () { | |||
86 | # Ensure compilation happens every time | 86 | # Ensure compilation happens every time |
87 | d.setVarFlag('do_compile', 'nostamp', '1') | 87 | d.setVarFlag('do_compile', 'nostamp', '1') |
88 | 88 | ||
89 | # We don't want the workdir to go away | ||
90 | d.appendVar('RM_WORK_EXCLUDE', ' ' + d.getVar('PN', True)) | ||
91 | |||
89 | # If B=S the same builddir is used even for different architectures. | 92 | # If B=S the same builddir is used even for different architectures. |
90 | # Thus, use a shared CONFIGURESTAMPFILE so that change of do_configure | 93 | # Thus, use a shared CONFIGURESTAMPFILE so that change of do_configure |
91 | # task hash is correctly detected if e.g. MACHINE changes. In addition, | 94 | # task hash is correctly detected if e.g. MACHINE changes. In addition, |