mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 15:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
37683ef86e
commit
9ee403b310
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user