<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 12:30 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>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">* it&#39;s not very universal, but works with default oe-core setup and<br>


  shows basic HOW-TO. It can be improved later.<br>
<br>
</div><div class="im">Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>&gt;<br>
---<br>
 V2: added .pyo to WHITELIST<br>
     shorter filenames<br>
     TMPDIR<br>
     added duplicates but not shown<br>
<br>
 V3: use also populate-sysroot.MACHINE, manifest name for populate-sysroot<br>
     was changed in febeaf3d1b8917b660c7279b008d8b03337568e9<br>
<br>
</div> V4: dropped eglibc-initial work around, it was fixed in oe-core<br>
<div class="im"><br>
 scripts/sstate-sysroot-cruft.sh | 34 ++++++++++++++++++++++++++++++++++<br>
 1 file changed, 34 insertions(+)<br>
 create mode 100755 scripts/sstate-sysroot-cruft.sh<br>
<br>
diff --git a/scripts/sstate-sysroot-cruft.sh b/scripts/sstate-sysroot-cruft.sh<br>
new file mode 100755<br>
</div>index 0000000..ca23dcf<br>
<div class="im">--- /dev/null<br>
+++ b/scripts/sstate-sysroot-cruft.sh<br>
@@ -0,0 +1,34 @@<br>
+#!/bin/sh<br>
+<br>
+# Used to find files installed in sysroot which are not tracked by sstate manifest<br>
+# Update BASE<br>
+<br>
+BASE=&quot;/OE/oe-core&quot;<br></div></blockquote><div><br></div>This seems interesting, but I have a few comments/concerns.</div><div class="gmail_quote"><br></div><div class="gmail_quote">1) don&#39;t hardcode BASE, figure out the path relative to the script&#39;s location, e.g. BASE=&quot;$(cd $(dirname $(dirname $0)) &amp;&amp; pwd)&quot;</div>

<div class="gmail_quote">2) output files shouldn&#39;t go into oe-core directly, as oe-core isn&#39;t guaranteed to be writable, and it&#39;s more common to expect output from a script like this to go relative to the current directory, or a temp directory</div>

<div class="gmail_quote">3) extract TMPDIR from bitbake -e, rather than hardcoding that, as that breaks for any distros or users which separate their tmpdirs by distro, or set TCLIBCAPPEND = &quot;&quot;</div>-- <br>Christopher Larson<br>


</div>