<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 24, 2016 at 8:26 AM <<a href="mailto:mariano.lopez@linux.intel.com">mariano.lopez@linux.intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Mariano Lopez <<a href="mailto:mariano.lopez@linux.intel.com" target="_blank">mariano.lopez@linux.intel.com</a>><br>
<br>
It is pointless to archive several times the gcc source.<br>
This change will archive gcc source once, for the gcc-source-{PV}<br>
recipe.<br>
<br>
[YOCTO #9327]<br>
<br>
Signed-off-by: Mariano Lopez <<a href="mailto:mariano.lopez@linux.intel.com" target="_blank">mariano.lopez@linux.intel.com</a>><br>
---<br>
meta/classes/archiver.bbclass | 6 ++++++<br>
1 file changed, 6 insertions(+)<br>
<br>
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass<br>
index b95176b..1546bd0 100644<br>
--- a/meta/classes/archiver.bbclass<br>
+++ b/meta/classes/archiver.bbclass<br>
@@ -61,6 +61,12 @@ python () {<br>
else:<br>
bb.debug(1, 'archiver: %s is included: %s' % (pn, reason))<br>
<br>
+ # We just archive gcc-source for all the gcc related recipes<br>
+ if d.getVar('BPN', True) in ['gcc', 'libgcc'] \<br>
+ and not pn.startswith('gcc-source'):<br>
+ bb.debug(1, 'archiver: %s is excluded, covered by gcc-source' % pn)<br>
+ return<br></blockquote><div><br></div><div>Hmm, I wonder if it'd be possible to make this more generic, check for work-shared or something. </div></div></div>