diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2016-03-24 07:20:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-28 15:55:50 +0100 |
commit | 9ee403b31067895695f0143b716187d7262c560c (patch) | |
tree | 3858bd46063e39084b21986c0d5487e23bf790b9 /meta/classes/archiver.bbclass | |
parent | 37683ef86e48f30074394de86ed5a080e9e5d74f (diff) | |
download | poky-9ee403b31067895695f0143b716187d7262c560c.tar.gz |
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]
(From OE-Core rev: 2f53fb2ae561e2eb599682ba95ce83ad1b4b7ada)
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r-- | meta/classes/archiver.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 7758f3c44d..42982abef3 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -61,6 +61,12 @@ python () { | |||
61 | else: | 61 | else: |
62 | bb.debug(1, 'archiver: %s is included: %s' % (pn, reason)) | 62 | bb.debug(1, 'archiver: %s is included: %s' % (pn, reason)) |
63 | 63 | ||
64 | # We just archive gcc-source for all the gcc related recipes | ||
65 | if d.getVar('BPN', True) in ['gcc', 'libgcc'] \ | ||
66 | and not pn.startswith('gcc-source'): | ||
67 | bb.debug(1, 'archiver: %s is excluded, covered by gcc-source' % pn) | ||
68 | return | ||
69 | |||
64 | ar_src = d.getVarFlag('ARCHIVER_MODE', 'src', True) | 70 | ar_src = d.getVarFlag('ARCHIVER_MODE', 'src', True) |
65 | ar_dumpdata = d.getVarFlag('ARCHIVER_MODE', 'dumpdata', True) | 71 | ar_dumpdata = d.getVarFlag('ARCHIVER_MODE', 'dumpdata', True) |
66 | ar_recipe = d.getVarFlag('ARCHIVER_MODE', 'recipe', True) | 72 | ar_recipe = d.getVarFlag('ARCHIVER_MODE', 'recipe', True) |