On Mon, Nov 26, 2012 at 8:57 AM, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Mon, Nov 26, 2012 at 08:49:32AM -0500, Bruce Ashfield wrote:<br>
&gt; On Mon, Nov 26, 2012 at 7:37 AM, Martin Jansa &lt;<a href="mailto:martin.jansa@gmail.com">martin.jansa@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; * so it will work look KERNEL_IMAGE<br>
&gt; &gt; * also we were recreating modules.tgz with every kernel build, but<br>
&gt; &gt;   overwritting the same output file<br>
&gt; &gt;<br>
&gt; &gt; Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>&gt;<br>
&gt; &gt; ---<br>
&gt; &gt;  meta/classes/kernel.bbclass | 7 ++++++-<br>
&gt; &gt;  1 file changed, 6 insertions(+), 1 deletion(-)<br>
&gt; &gt;<br>
&gt; &gt; diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass<br>
&gt; &gt; index ee59aaf..9c70e70 100644<br>
&gt; &gt; --- a/meta/classes/kernel.bbclass<br>
&gt; &gt; +++ b/meta/classes/kernel.bbclass<br>
&gt; &gt; @@ -497,6 +497,10 @@ KERNEL_IMAGE_BASE_NAME ?=<br>
&gt; &gt; &quot;${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DA<br>
&gt; &gt;  # Don&#39;t include the DATETIME variable in the sstate package signatures<br>
&gt; &gt;  KERNEL_IMAGE_BASE_NAME[vardepsexclude] = &quot;DATETIME&quot;<br>
&gt; &gt;  KERNEL_IMAGE_SYMLINK_NAME ?= &quot;${KERNEL_IMAGETYPE}-${MACHINE}&quot;<br>
&gt; &gt; +MODULE_TARBALL_BASE_NAME ?=<br>
&gt; &gt; &quot;modules-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}.tgz&quot;<br>
&gt; &gt; +# Don&#39;t include the DATETIME variable in the sstate package signatures<br>
&gt; &gt; +MODULE_TARBALL_BASE_NAME[vardepsexclude] = &quot;DATETIME&quot;<br>
&gt; &gt; +MODULE_TARBALL_SYMLINK_NAME ?= &quot;modules-${MACHINE}.tgz&quot;<br>
&gt; &gt;<br>
&gt; &gt;  do_uboot_mkimage() {<br>
&gt; &gt;         if test &quot;x${KERNEL_IMAGETYPE}&quot; = &quot;xuImage&quot; ; then<br>
&gt; &gt; @@ -526,7 +530,8 @@ addtask uboot_mkimage before do_install after<br>
&gt; &gt; do_compile<br>
&gt; &gt;  kernel_do_deploy() {<br>
&gt; &gt;         install -m 0644 ${KERNEL_OUTPUT}<br>
&gt; &gt; ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin<br>
&gt; &gt;         if (grep -q -i -e &#39;^CONFIG_MODULES=y$&#39; .config); then<br>
&gt; &gt; -               tar -cvzf<br>
&gt; &gt; ${DEPLOYDIR}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib<br>
&gt; &gt; +               tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D}<br>
&gt; &gt; lib<br>
&gt; &gt; +               ln -sf ${MODULE_TARBALL_BASE_NAME}.bin<br>
&gt; &gt; ${MODULE_TARBALL_SYMLINK_NAME}<br>
&gt; &gt;<br>
&gt;<br>
&gt; Just a quick question, are there any concerns about existing users of the<br>
&gt; old tgz name ? Obviously, if they were in oe-core, we&#39;d know about them<br>
&gt; and update them, but I have no idea myself how much (if anything) was based<br>
&gt; on the old name. I&#39;m not sure of the best practices oe-core/oe uses for<br>
&gt; cases<br>
&gt; like this in the past, so I thought I&#39;d ask.<br>
<br>
</div></div>I remember seeing some thread about making whole modules tarball<br>
creation optional and disabled by default, so I guess there is only a<br>
few users of this.<br></blockquote><div><br></div><div>Agreed. It isn&#39;t common, the modules package yes .. the tarball, not that I&#39;ve</div><div>heard much about.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
&gt; The old shorter name was nice, but I agree that having it different than<br>
&gt; the image<br>
&gt; name makes it non obvious how to associate the image and modules, and that&#39;s<br>
&gt; a nice thing to fix.<br>
<br>
</div>True, but since oldname was the same for different kernel images I<br>
always found misleading to see 5 different uImages and only one modules<br>
tarball (which we know was created during build of latest uImage - but<br>
maybe not newest uImage version wise - so quite confusing for someone<br>
just trying to download matching uImage and modules).<br></blockquote><div><br></div><div>I definitely agree.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
&gt; Since we are already making a symlink, I guess we could consider<br>
&gt; a transnational<br>
&gt; symlink with the old name ? (but then again, if the link is there, people<br>
&gt; will continue<br>
&gt; to have dependencies on it and not update their own code).<br>
<br>
</div>I don&#39;t mind having 2 symlinks if there is the need for old name.<br></blockquote><div><br></div><div>I&#39;d wait to see if anyone pops up with a strong opinion. I&#39;m all for making the</div><div>file names consistent, but having a temporary symlink to catch any outliers<br>
might be a good thing too.</div><div><br></div><div>So I&#39;m a solid &quot;maybe&quot; :) I&#39;m hoping RP has a stronger opinion on the migration</div><div>path from the existing name.</div><div><br></div><div>Cheers,</div>
<div><br></div><div>Bruce</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Martin &#39;JaMa&#39; Jansa     jabber: <a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>&quot;Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end&quot;<br>
</div>