From: Paul Eggleton Date: Thu, 11 Feb 2016 01:13:26 +0000 (+1300) Subject: classes/externalsrc: disable rm_work when active X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~27052 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0867a425166086624bcffa231a1497291f860cb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index 607861f023e..9d7ab00e9e2 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,