On 07/17/2012 03:16 PM, Nathan West wrote:
Hopefully I do this right. First time patching (ever! this is exciting :-) )

Welcome to the wonderful world of patching!

The --root option doesn't work and isn't documented anywhere I could
find, and without the ${IMAGE_ROOTFS} before the config file it was
point to my native /etc/prelink.conf (which doesn't exist and probably
would be useful if it did)

Which prelink are you using, it's possible you did not look at the correct one.

There should be a tmp/sysroot/x86_64-linux/usr/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.

It should not be using your host's /etc/prelink.conf, but the sysroot version.

The --root option should take care of it as it's described as follows:

     --root=ROOT_PATH       Prefix all paths with ROOT_PATH

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?


Be gentle if I screwed up!
No worries.
-Nathan


Hope that was not too painful, let see how we can help you accomplish what you are trying to do.

Sau!




---
  meta/classes/image-prelink.bbclass |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image-prelink.bbclass
b/meta/classes/image-prelink.bbclass
index 53ef47e..2d62f03 100644
--- a/meta/classes/image-prelink.bbclass
+++ b/meta/classes/image-prelink.bbclass
@@ -21,7 +21,7 @@ prelink_image () {
fi
# prelink!
-${STAGING_DIR_NATIVE}${sbindir_native}/prelink --root ${IMAGE_ROOTFS}
-amR -N -c ${sysconfdir}/prelink.conf
+${STAGING_DIR_NATIVE}${sbindir_native}/prelink ${IMAGE_ROOTFS} -amR -N
-c ${IMAGE_ROOTFS}${sysconfdir}/prelink.conf
# Remove the prelink.conf if we had to add it.
if [ "$dummy_prelink_conf" = "true" ]; then
--
1.7.9.5


_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to