<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 12:30 AM, Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>></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'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 <<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>><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="/OE/oe-core"<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't hardcode BASE, figure out the path relative to the script's location, e.g. BASE="$(cd $(dirname $(dirname $0)) && pwd)"</div>
<div class="gmail_quote">2) output files shouldn't go into oe-core directly, as oe-core isn't guaranteed to be writable, and it'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 = ""</div>-- <br>Christopher Larson<br>
</div>