<HTML><HEAD><!-- Template generated by Exclaimer Mail Disclaimers on 01:28:49 woensdag, 24 augustus 2016 -->
<STYLE type=text/css>P.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY>
<P class=ImprintUniqueID><div>On 24-08-16 09:18, Richard Purdie wrote:<br />&gt; On Wed, 2016-08-24 at 08:35 +0200, Mike Looijmans wrote:<br />&gt;&gt; First time I&#39;ve heard about this limitation, I don&#39;t understand<br />&gt;&gt; what&#39;s this about either. I&#39;ve been telling people to put their arch<br />&gt;&gt; or machine specific code into a seperate package and RDEPEND on it<br />&gt;&gt; from an allarch package that holds the Python code that calls into<br />&gt;&gt; that.<br />&gt;&gt;<br />&gt;&gt; We haven&#39;t seen any problems with that.<br />&gt;&gt;<br />&gt;&gt; So what is the bad thing that would happen if we don&#39;t set the<br />&gt;&gt; SIGGEN_EXCLUDE... variables in the layer.conf file?<br />&gt;<br />&gt; If you have an allarch recipe X and you depend on a tune or machine<br />&gt; specific package from it, what you&#39;ll see is that when you switch<br />&gt; MACHINE (with a different tune), the recipe X will rebuild each time.<br /><br />So it&#39;s just inefficient, but does not break things?<br /><br />&gt; This is obviously suboptimal however its not the end of the world. It<br />&gt; is problematic if you&#39;re using PR server.<br /><br />Which brings me to the next question: What would go wrong then?<br /><br />(PR server is somewhat mandatory today)<br /><br />&gt; The reason it rebuilds is that its checksum has a dependency on<br />&gt; something which is tune or machine specific, you change MACHINE, the<br />&gt; checksum changes and the allarch recipe&#39;s checksum changes.<br />&gt;<br />&gt; If we remove the dependency from the task checksum, the problem isn&#39;t<br />&gt; there and it doesn&#39;t rebuild, however there are some circumstances<br />&gt; where this could be an issue, e.g. if a dependency name was renamed by<br />&gt; debian.bbclass for example.<br />&gt;<br />&gt; The mechanism for removing such a dependency is the one I&#39;ve mentioned<br />&gt; in layer.conf.<br />&gt;<br />&gt; You can see if you have a problem with your layers by running:<br />&gt;<br />&gt; oe-selftest -r sstatetests.SStateTests.test_sstate_allarch_samesigs<br />&gt;<br />&gt; Does that make the issue any clearer?<br /><br />A bit. But I don&#39;t understand what I have to fill in where. Example:<br /><br /><br />mike@mikebuntu:~/.../recipes-spike/spike$ cat spikeall.bb<br />LICENSE="CLOSED"<br />inherit allarch<br />RDEPENDS_${PN} = "spikemach"<br />do_install() {<br /> &nbsp;&nbsp;install -d ${D}${bindir}<br /> &nbsp;&nbsp;echo &#39;cat ${sysconfdir}/hello&#39; &gt; ${S}/${PN}.sh<br /> &nbsp;&nbsp;install -m 755 ${S}/${PN}.sh ${D}${bindir}<br />}<br />mike@mikebuntu:~/.../recipes-spike/spike$ cat spikemach.bb<br />LICENSE="CLOSED"<br />PACKAGE_ARCH="${MACHINE_ARCH}"<br />PV="2"<br />do_install() {<br /> &nbsp;&nbsp;install -d ${D}${sysconfdir}<br /> &nbsp;&nbsp;echo "${MACHINE}" &gt; ${D}${sysconfdir}/hello<br />}<br /><br /><br />I run "bitbake spikeall" and both packages get built.<br /><br />I run "bitbake spikeall" and nothing builds (which is good)<br /><br />Change the PV in spikemach.bb, and run "bitbake spikeall". Both spikemach and <br />spikeall are built (which is the problem we&#39;re talking about then, spikeall <br />needn&#39;t build again).<br /><br />I add the following line to the layer.conf in that layer:<br /><br />SIGGEN_EXCLUDERECIPES_ABISAFE += "spikeall"<br /><br />No change, spikeall still gets rebuilt along with spikemach.<br /><br />The other way around maybe?<br /><br />SIGGEN_EXCLUDERECIPES_ABISAFE += "spikemach"<br /><br />Now it appears to work. Changing spikemach no longer causes spikeall to rebuild.<br /><br />I have no clue as to why this would be needed, but I&#39;ll take your word for it.<br /><br />Why can&#39;t we just do SIGGEN_EXCLUDERECIPES_ABISAFE="1" in the spikemach.bb <br />recipe? That&#39;s much easier to maintain and understand...<br /><br /></div></P>
<P class=ImprintUniqueID><FONT face="Calibri Light"></FONT>&nbsp;</P>
<P class=ImprintUniqueID><FONT face="Calibri Light">Kind regards,</FONT></P>
<P class=ImprintUniqueID><FONT face="Calibri Light"></FONT>&nbsp;</P>
<P class=ImprintUniqueID><font style='font-family:Calibri Light;font-size:12pt;font-weight:bold;'>Mike Looijmans</font></P>
<P class=ImprintUniqueID><font style='font-family:Calibri Light;font-size:12pt;'>System Expert</font></P>
<P class=ImprintUniqueID><FONT face="Calibri Light"></FONT>&nbsp;</P>
<P class=ImprintUniqueID><FONT face="Calibri Light"></FONT></P>
<P class=ImprintUniqueID><FONT face="Calibri Light"></FONT></P>
<P class=ImprintUniqueID><img width=375 height=74 style='border: 0px Solid ; 'src="cid:imagec229b8.PNG@43032e80.4885f7eb"><BR /><BR /></P>
<P class=ImprintUniqueID>
<TABLE class=ImprintUniqueIDTable style="HEIGHT: 72px; BORDER-COLLAPSE: collapse; WIDTH: 475px" cellSpacing=0 cols=3 cellPadding=0 border=0>
  <TBODY>
  <TR>
    <TD style="WIDTH: 205px">
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light"><STRONG>TOPIC
      Products</STRONG></FONT></P></TD>
    <TD style="WIDTH: 6px">
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light"></FONT>&nbsp;</P></TD>
    <TD style="WIDTH: 256px">
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light"></FONT>&nbsp;</P></TD></TR>
  <TR>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light">Materiaalweg
      4</FONT></P></TD>
    <TD style="WIDTH: 29px">
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light"></FONT>&nbsp;</P></TD>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light"></FONT>&nbsp;</P></TD></TR>
  <TR>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light">5681
      RJ&nbsp;Best</FONT></P></TD>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light">T:</FONT></P></TD>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light">+31 (0) 499 33
      69 69</FONT></P></TD></TR>
  <TR>
    <TD style="HEIGHT: 14px">
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light">Postbus
      440</FONT></P></TD>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light">E:</FONT></P></TD>
    <TD>
      <P class=ImprintUniqueID><font style='font-family:Calibri Light;font-size:8pt;'>mike.looijmans@topicproducts.com</font></P></TD></TR>
  <TR>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light">5680 AK
      Best</FONT></P></TD>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light">W:</FONT></P></TD>
    <TD>
      <P class=ImprintUniqueID><FONT size=1 face="Calibri Light"><A href="http://www.topicproducts.com">www.topicproducts.com</A></FONT></P></TD></TR>
  <TR>
    <TD><FONT size=1 face="Calibri Light">The Netherlands</FONT></TD>
    <TD><FONT size=1 face="Calibri Light"></FONT></TD></TD>
    <TD><FONT size=1 face="Calibri Light"></FONT></TD>
    <TD><FONT size=1 face="Calibri Light"></FONT></TD></TR></TBODY></TABLE></P>
<P class=ImprintUniqueID><A href="https://www.facebook.com/TopicProducts"><FONT size=1 face="Calibri Light"><IMG id=IMG1 border=0 src="cid:imagefc50fd.JPG@0494df1d.4a81e1bd" width=20 height=19 /> </FONT></A><A href="https://twitter.com/TopicProducts"><FONT size=1 face="Calibri Light"><IMG id=IMG1 border=0 src="cid:image7d3cad.JPG@412f780e.438bddb8" width=20 height=19 /></FONT></A><A href="https://www.linkedin.com/company/topic-embedded-products"><FONT size=1 face="Calibri Light"><IMG id=IMG1 border=0 src="cid:image3ad530.JPG@a1cfbd66.48886d68" width=20 height=18 /></FONT></A><BR /><FONT color=green size=1 face="Calibri Light">Please consider the environment before printing this
e-mail<BR /></FONT></P><BR /><A href="http://topic.nl/vacancy/topic-zoekt-technische-software-engineers/"><font style='font-family:Arial;font-size:8pt;'>Topic zoekt gedreven (embedded) software specialisten!</font></A><BR /><BR />
<P class=ImprintUniqueID></P>
<P><FONT face="Calibri Light"></FONT></P>
<P><FONT face="Calibri Light"></FONT></P></FONT></EM></BODY></HTML>