Wow I'm bad at this. Sorry again about that reply only to you!<br><br><div class="gmail_quote">On Wed, Jul 18, 2012 at 9:24 AM, Nathan West <span dir="ltr"><<a href="mailto:nate.ewest@gmail.com" target="_blank">nate.ewest@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Saul. Sorry about the duplicate there...<div><br></div><div>I think we are both right somehow... I didn't have this problem using vanilla oe-core,</div>
<div>it only appeared after setting up another oe-core through the angstrom setup scripts.</div>
<div><br></div><div>Based on that it appears angstrom setup scripts somehow gave me a different version</div><div>of prelink. After looking in the vanilla oe-core sysroots I do in fact see the --root option,</div><div>but the angstrom setup scripts sysroots does not have it (I promise I checked before </div>
<div>the patch! :-) )</div><div><br></div><div>Anyway it looks like the --root is a problem with angstrom and I will take it over there,</div><div>barring some insight from someone on this list.</div><div><br></div><div>
I do think the config change is still valid though. Starting on line 14 @ </div>
<div><a href="http://cgit.openembedded.org/openembedded-core/tree/meta/classes/image-prelink.bbclass#n14" target="_blank">http://cgit.openembedded.org/openembedded-core/tree/meta/classes/image-prelink.bbclass#n14</a></div>
<div><br></div>
<div>If there isn't one already a config is copied to ${IMAGE_ROOTFS}${sysconfdir}, then</div><div>the prelink command leaves out the ${IMAGE_ROOTFS}.</div><span><font color="#888888"><div><br></div><div>
-Nathan</div></font></span><div><div><div><br></div><div><br></div>
<div><br></div><div>
<br><div class="gmail_quote">On Tue, Jul 17, 2012 at 8:48 PM, Saul Wold <span dir="ltr"><<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 07/17/2012 03:16 PM, Nathan West wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hopefully I do this right. First time patching (ever! this is exciting :-) )<br>
<br>
</blockquote></div>
Welcome to the wonderful world of patching!<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The --root option doesn't work and isn't documented anywhere I could<br>
find, and without the ${IMAGE_ROOTFS} before the config file it was<br>
point to my native /etc/prelink.conf (which doesn't exist and probably<br>
would be useful if it did)<br>
<br>
</blockquote></div>
Which prelink are you using, it's possible you did not look at the correct one.<br>
<br>
There should be a tmp/sysroot/x86_64-linux/usr/<u></u>sbin/prelink (if you are building on a 64bit machine, otherwise i586-linux), that's the prelink binary and a --help to that will show the --root option.<br>
<br>
It should not be using your host's /etc/prelink.conf, but the sysroot version.<br>
<br>
The --root option should take care of it as it's described as follows:<br>
<br>
--root=ROOT_PATH Prefix all paths with ROOT_PATH<br>
<br>
So, the next question is what's going on to cause it to use your host's prelinker instead of the native version that should be build as part of the native tools?<div><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Be gentle if I screwed up!<br>
</blockquote></div>
No worries.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-Nathan<br>
<br>
</blockquote>
<br>
Hope that was not too painful, let see how we can help you accomplish what you are trying to do.<br>
<br>
Sau!<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
<br>
---<br>
meta/classes/image-prelink.<u></u>bbclass | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/image-prelink.<u></u>bbclass<br>
b/meta/classes/image-prelink.<u></u>bbclass<br>
index 53ef47e..2d62f03 100644<br>
--- a/meta/classes/image-prelink.<u></u>bbclass<br>
+++ b/meta/classes/image-prelink.<u></u>bbclass<br>
@@ -21,7 +21,7 @@ prelink_image () {<br>
fi<br>
# prelink!<br></div>
-${STAGING_DIR_NATIVE}${<u></u>sbindir_native}/prelink --root ${IMAGE_ROOTFS}<div><br>
-amR -N -c ${sysconfdir}/prelink.conf<br></div>
+${STAGING_DIR_NATIVE}${<u></u>sbindir_native}/prelink ${IMAGE_ROOTFS} -amR -N<div><br>
-c ${IMAGE_ROOTFS}${sysconfdir}/<u></u>prelink.conf<br>
# Remove the prelink.conf if we had to add it.<br>
if [ "$dummy_prelink_conf" = "true" ]; then<br>
--<br>
1.7.9.5<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.<u></u>openembedded.org</a><br>
<a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openembedded-core</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br>