summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-07-31 11:49:38 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-02 15:24:52 +0100
commitf6362c5248914485fc8bf3c3f0ca6cc962bf753e (patch)
tree71fba2da04ec7f5edc568e36755070676d9cec91
parentb50677b1641b201fd69942fd82a360907338234d (diff)
downloadopenembedded-core-f6362c5248914485fc8bf3c3f0ca6cc962bf753e.tar.gz
openembedded-core-f6362c5248914485fc8bf3c3f0ca6cc962bf753e.tar.bz2
openembedded-core-f6362c5248914485fc8bf3c3f0ca6cc962bf753e.zip
package.bbclass: change RPATHs for nativesdk packages
Change binaries RPATHs, to include $ORIGIN, to make them relocatable. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 3aaf9998e0..4be2fc2dc5 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -40,6 +40,7 @@
inherit packagedata
inherit prserv
+inherit chrpath
PKGD = "${WORKDIR}/package"
PKGDEST = "${WORKDIR}/packages-split"
@@ -444,6 +445,10 @@ python perform_packagecopy () {
subprocess.call('rm -rf %s/*' % (dvar), shell=True)
# Preserve sparse files and hard links
subprocess.call('tar -cf - -C %s -ps . | tar -xf - -C %s' % (dest, dvar), shell=True)
+
+ # replace RPATHs for the nativesdk binaries, to make them relocatable
+ if bb.data.inherits_class('nativesdk', d):
+ rpath_replace (dvar, d)
}
# We generate a master list of directories to process, we start by