summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-02 14:16:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-02 17:07:29 +0100
commitf89bced26de055817100d0b0e03094b031fcfd48 (patch)
tree9cab2bcd730602a93fca2952b89edef1e64fdc71
parent147c44c882a3dc667c079165d3ddc9d78b702286 (diff)
downloadopenembedded-core-f89bced26de055817100d0b0e03094b031fcfd48.tar.gz
openembedded-core-f89bced26de055817100d0b0e03094b031fcfd48.tar.bz2
openembedded-core-f89bced26de055817100d0b0e03094b031fcfd48.zip
nativesdk.bbclass: Ensure we have chrpath >=0.14
Versions earlier than 0.14 can't cope with 32 bit binaries on a 64 bit system and vice versa. This results in problems for certain SDKMACHINE combinations on certain hosts. By ensuring we build chrpath-replacement-native we avoid this problems and the binaries work correctly. [YOCTO #3161] [YOCTO #3201] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/nativesdk.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index 3334817da0..94365e3c66 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -16,6 +16,13 @@ CLASSOVERRIDE = "class-nativesdk"
PACKAGE_ARCH = "${SDK_ARCH}-nativesdk"
PACKAGE_ARCHS = "${SDK_PACKAGE_ARCHS}"
+#
+# We need chrpath >= 0.14 to ensure we can deal with 32 and 64 bit
+# binaries
+#
+DEPENDS_append = " chrpath-replacement-native"
+EXTRANATIVEPATH += "chrpath-native"
+
STAGING_DIR_HOST = "${STAGING_DIR}/${MULTIMACH_HOST_SYS}"
STAGING_DIR_TARGET = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}"