]> code.ossystems Code Review - openembedded-core.git/commitdiff
uninative.bbclass: Choose the correct loader based on BUILD_ARCH
authorRandy Witt <randy.e.witt@linux.intel.com>
Wed, 9 Dec 2015 20:50:44 +0000 (12:50 -0800)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Dec 2015 07:03:14 +0000 (23:03 -0800)
Previously UNINATIVE_LOADER was always ld-linux-x86-64.so.2. That is
incorrect when the host is 32-bit.

This change also changes to using ?= so the user can override
UNINATIVE_LOADER if so desired.

[YOCTO #8124]

(From OE-Core master rev: b78fa0bcadd54bb29b6f1bb3a9308d4c454bf4e2)

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/uninative.bbclass

index 51391dbc4a83a71b11efeec0a1a572cec0564c06..0cd27db853e27cc4b2afc299c9030fa205c1e8d1 100644 (file)
@@ -1,6 +1,6 @@
 NATIVELSBSTRING = "universal"
 
-UNINATIVE_LOADER = "${STAGING_DIR_NATIVE}/lib/ld-linux-x86-64.so.2"
+UNINATIVE_LOADER ?= "${@bb.utils.contains('BUILD_ARCH', 'x86_64', '${STAGING_DIR_NATIVE}/lib/ld-linux-x86-64.so.2', '${STAGING_DIR_NATIVE}/lib/ld-linux.so.2', d)}"
 
 addhandler uninative_eventhandler
 uninative_eventhandler[eventmask] = "bb.event.BuildStarted"