summaryrefslogtreecommitdiffstats
path: root/meta/classes
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:28:39 +0100
commite3a13b8d93cdfe2fdb58ef84f6d58bbbcaeb7a05 (patch)
treebbe27f6a6967e678684f25529ac7e7ccc3edde58 /meta/classes
parent476ced15c244b5a4bb91cef59fdf7e3b5a981576 (diff)
downloadpoky-e3a13b8d93cdfe2fdb58ef84f6d58bbbcaeb7a05.tar.gz
package.bbclass: change RPATHs for nativesdk packages
Change binaries RPATHs, to include $ORIGIN, to make them relocatable. (From OE-Core rev: f6362c5248914485fc8bf3c3f0ca6cc962bf753e) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 @@
40 40
41inherit packagedata 41inherit packagedata
42inherit prserv 42inherit prserv
43inherit chrpath
43 44
44PKGD = "${WORKDIR}/package" 45PKGD = "${WORKDIR}/package"
45PKGDEST = "${WORKDIR}/packages-split" 46PKGDEST = "${WORKDIR}/packages-split"
@@ -444,6 +445,10 @@ python perform_packagecopy () {
444 subprocess.call('rm -rf %s/*' % (dvar), shell=True) 445 subprocess.call('rm -rf %s/*' % (dvar), shell=True)
445 # Preserve sparse files and hard links 446 # Preserve sparse files and hard links
446 subprocess.call('tar -cf - -C %s -ps . | tar -xf - -C %s' % (dest, dvar), shell=True) 447 subprocess.call('tar -cf - -C %s -ps . | tar -xf - -C %s' % (dest, dvar), shell=True)
448
449 # replace RPATHs for the nativesdk binaries, to make them relocatable
450 if bb.data.inherits_class('nativesdk', d):
451 rpath_replace (dvar, d)
447} 452}
448 453
449# We generate a master list of directories to process, we start by 454# We generate a master list of directories to process, we start by