summaryrefslogtreecommitdiff
path: root/classes/native.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-03-31 11:41:58 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-05 15:05:36 +0100
commitd1a8b276c0f7c2838816071bca797bb56fcccef7 (patch)
treea1a12202a097981e0bc58e9e63163903c920ef9e /classes/native.bbclass
parent3440328ac1ccbd5ca6aeea4a4b6084ecafd6fdda (diff)
relocatable: Class to post-process packages for relocatability
This class helps make packages relocatable by post-processing the binaries and using chrpath to set the RPATH relative to $ORIGIN. Patch also enables this post-processing for native packages and adds chrpath to the required utilties. Based on ideas from a patch from Tom Rini <tom_rini@mentor.com> Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'classes/native.bbclass')
-rw-r--r--classes/native.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/native.bbclass b/classes/native.bbclass
index 6698b61cfc..0381e83fc7 100644
--- a/classes/native.bbclass
+++ b/classes/native.bbclass
@@ -1,3 +1,6 @@
+# We want native packages to be relocatable
+inherit relocatable
+
# Native packages are built indirectly via dependency,
# no need for them to be a direct target of 'world'
EXCLUDE_FROM_WORLD = "1"