Openembedded Core Discussions
 help / color / mirror / Atom feed
* [jethro][master][PATCH 0/1] Fix for 32-bit uninative
@ 2015-12-09 20:50 Randy Witt
  2015-12-09 20:50 ` [jethro][master][PATCH 1/1] uninative.bbclass: Choose the correct loader based on BUILD_ARCH Randy Witt
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Witt @ 2015-12-09 20:50 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit c093fd8bd2fbf070728f5401ce3e6cf951fa820d:

  linux-yocto/4.1: Fix kernel oops on qemuarm boot (2015-12-08 17:22:31 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib rewitt/uninative-32bit-fix
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rewitt/uninative-32bit-fix

Randy Witt (1):
  uninative.bbclass: Choose the correct loader based on BUILD_ARCH

 meta/classes/uninative.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.4.3



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [jethro][master][PATCH 1/1] uninative.bbclass: Choose the correct loader based on BUILD_ARCH
  2015-12-09 20:50 [jethro][master][PATCH 0/1] Fix for 32-bit uninative Randy Witt
@ 2015-12-09 20:50 ` Randy Witt
  2015-12-10 22:01   ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Witt @ 2015-12-09 20:50 UTC (permalink / raw)
  To: openembedded-core

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]

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
---
 meta/classes/uninative.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 51391db..0cd27db 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -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"
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [jethro][master][PATCH 1/1] uninative.bbclass: Choose the correct loader based on BUILD_ARCH
  2015-12-09 20:50 ` [jethro][master][PATCH 1/1] uninative.bbclass: Choose the correct loader based on BUILD_ARCH Randy Witt
@ 2015-12-10 22:01   ` Burton, Ross
  2015-12-10 22:12     ` Randy Witt
  2015-12-11 21:23     ` Burton, Ross
  0 siblings, 2 replies; 5+ messages in thread
From: Burton, Ross @ 2015-12-10 22:01 UTC (permalink / raw)
  To: Randy Witt; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

On 9 December 2015 at 20:50, Randy Witt <randy.e.witt@linux.intel.com>
wrote:

> -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)}"
>

Would it be neater, and more flexible when other arches are different
(specifically I'm thinking of aarch64 here) to do:

UNINATIVE_LOADER = "${STAGING_DIR_NATIVE}/lib/ld-linux.so.2"
UNINATIVE_LOADER_x86-64 = "'${STAGING_DIR_NATIVE}/lib/ld-linux-x86-64.so.2"

At least I think that overload is correct...

Ross

[-- Attachment #2: Type: text/html, Size: 1349 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [jethro][master][PATCH 1/1] uninative.bbclass: Choose the correct loader based on BUILD_ARCH
  2015-12-10 22:01   ` Burton, Ross
@ 2015-12-10 22:12     ` Randy Witt
  2015-12-11 21:23     ` Burton, Ross
  1 sibling, 0 replies; 5+ messages in thread
From: Randy Witt @ 2015-12-10 22:12 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On 12/10/2015 02:01 PM, Burton, Ross wrote:
> On 9 December 2015 at 20:50, Randy Witt <randy.e.witt@linux.intel.com>
> wrote:
>
>> -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)}"
>>
>
> Would it be neater, and more flexible when other arches are different
> (specifically I'm thinking of aarch64 here) to do:
>
> UNINATIVE_LOADER = "${STAGING_DIR_NATIVE}/lib/ld-linux.so.2"
> UNINATIVE_LOADER_x86-64 = "'${STAGING_DIR_NATIVE}/lib/ld-linux-x86-64.so.2"

Yes, I like that better. I'll check the override and test it again.

> At least I think that overload is correct...
>
> Ross
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [jethro][master][PATCH 1/1] uninative.bbclass: Choose the correct loader based on BUILD_ARCH
  2015-12-10 22:01   ` Burton, Ross
  2015-12-10 22:12     ` Randy Witt
@ 2015-12-11 21:23     ` Burton, Ross
  1 sibling, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2015-12-11 21:23 UTC (permalink / raw)
  To: Randy Witt; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

On 10 December 2015 at 22:01, Burton, Ross <ross.burton@intel.com> wrote:

> Would it be neater, and more flexible when other arches are different
> (specifically I'm thinking of aarch64 here) to do:
>
> UNINATIVE_LOADER = "${STAGING_DIR_NATIVE}/lib/ld-linux.so.2"
> UNINATIVE_LOADER_x86-64 = "'${STAGING_DIR_NATIVE}/lib/ld-linux-x86-64.so.2"
>
> At least I think that overload is correct...
>

Of course BUILD_ARCH != TARGET_ARCH so this is wrong.

Ross

[-- Attachment #2: Type: text/html, Size: 1017 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-11 21:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-09 20:50 [jethro][master][PATCH 0/1] Fix for 32-bit uninative Randy Witt
2015-12-09 20:50 ` [jethro][master][PATCH 1/1] uninative.bbclass: Choose the correct loader based on BUILD_ARCH Randy Witt
2015-12-10 22:01   ` Burton, Ross
2015-12-10 22:12     ` Randy Witt
2015-12-11 21:23     ` Burton, Ross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox