From: Mariano Lopez Date: Thu, 24 Mar 2016 07:20:28 +0000 (+0000) Subject: archiver.bbclass: Just archive gcc-source for all gcc recipes X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f53fb2ae561e2eb599682ba95ce83ad1b4b7ada;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git archiver.bbclass: Just archive gcc-source for all gcc recipes It is pointless to archive several times the gcc source. This change will archive gcc source once, for the gcc-source-{PV} recipe. [YOCTO #9327] Signed-off-by: Mariano Lopez Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 7758f3c44d7..42982abef3e 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass @@ -61,6 +61,12 @@ python () { else: bb.debug(1, 'archiver: %s is included: %s' % (pn, reason)) + # We just archive gcc-source for all the gcc related recipes + if d.getVar('BPN', True) in ['gcc', 'libgcc'] \ + and not pn.startswith('gcc-source'): + bb.debug(1, 'archiver: %s is excluded, covered by gcc-source' % pn) + return + ar_src = d.getVarFlag('ARCHIVER_MODE', 'src', True) ar_dumpdata = d.getVarFlag('ARCHIVER_MODE', 'dumpdata', True) ar_recipe = d.getVarFlag('ARCHIVER_MODE', 'recipe', True)