[oe-commits] [openembedded-core] 20/23: archiver.bbclass: Just archive gcc-source for all gcc recipes

git at git.openembedded.org git at git.openembedded.org
Mon Mar 28 14:56:45 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 2f53fb2ae561e2eb599682ba95ce83ad1b4b7ada
Author: Mariano Lopez <mariano.lopez at linux.intel.com>
AuthorDate: Thu Mar 24 07:20:28 2016 +0000

    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 <mariano.lopez at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/archiver.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 7758f3c..42982ab 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list