diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2012-07-31 11:49:38 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-02 15:28:39 +0100 |
commit | e3a13b8d93cdfe2fdb58ef84f6d58bbbcaeb7a05 (patch) | |
tree | bbe27f6a6967e678684f25529ac7e7ccc3edde58 /meta/classes | |
parent | 476ced15c244b5a4bb91cef59fdf7e3b5a981576 (diff) | |
download | poky-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.bbclass | 5 |
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 | ||
41 | inherit packagedata | 41 | inherit packagedata |
42 | inherit prserv | 42 | inherit prserv |
43 | inherit chrpath | ||
43 | 44 | ||
44 | PKGD = "${WORKDIR}/package" | 45 | PKGD = "${WORKDIR}/package" |
45 | PKGDEST = "${WORKDIR}/packages-split" | 46 | PKGDEST = "${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 |