Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>,
	openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] populate_sdk_base: Fix aarch64 OLDEST_KERNEL sdk issues
Date: Fri, 11 Sep 2015 08:24:38 -0500	[thread overview]
Message-ID: <55F2D616.1080604@windriver.com> (raw)
In-Reply-To: <1441974346.24871.383.camel@linuxfoundation.org>

On 9/11/15 7:25 AM, Richard Purdie wrote:
> aarch64 sets OLDEST_KERNEL to 3.14. This stops the aarch64 SDK installing on
> anything with an older kernel which is clearly incorrect.
> 
> I attempted to extract the correct non-overridden version from the data store
> but it proved problematic and I was running into data store issues. Those
> are a separate problem but there isn't time to fix this right now.
> 
> Instead just code the SDK kernel version separately to work around this for
> now (and fix the autobuilder tests and SDK usage).

Just an FYI -- if you package QEMU with your SDK, 3.14 might still be required.
 (System level emulation works, but application level emulation will fail on
older kernels.)

--Mark

> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> 
> diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
> index b015bf0..aa7a9a5 100644
> --- a/meta/classes/populate_sdk_base.bbclass
> +++ b/meta/classes/populate_sdk_base.bbclass
> @@ -81,6 +81,11 @@ python write_host_sdk_manifest () {
>  POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; "
>  POPULATE_SDK_POST_HOST_COMMAND_append = " write_host_sdk_manifest; "
>  
> +# Some archs override this, we need the nativesdk version
> +# turns out this is hard to get from the datastore due to TRANSLATED_TARGET_ARCH
> +# manipulation.
> +SDK_OLDEST_KERNEL = "2.6.32"
> +
>  fakeroot python do_populate_sdk() {
>      from oe.sdk import populate_sdk
>      from oe.manifest import create_manifest, Manifest
> @@ -156,7 +161,7 @@ EOF
>  	sed -i -e 's#@SDK_ARCH@#${SDK_ARCH}#g' \
>  		-e 's#@SDKPATH@#${SDKPATH}#g' \
>  		-e 's#@SDKEXTPATH@#${SDKEXTPATH}#g' \
> -		-e 's#@OLDEST_KERNEL@#${OLDEST_KERNEL}#g' \
> +		-e 's#@OLDEST_KERNEL@#${SDK_OLDEST_KERNEL}#g' \
>  		-e 's#@REAL_MULTIMACH_TARGET_SYS@#${REAL_MULTIMACH_TARGET_SYS}#g' \
>  		-e 's#@SDK_TITLE@#${SDK_TITLE}#g' \
>  		-e 's#@SDK_VERSION@#${SDK_VERSION}#g' \
> 
> 



      reply	other threads:[~2015-09-11 13:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11 12:25 [PATCH] populate_sdk_base: Fix aarch64 OLDEST_KERNEL sdk issues Richard Purdie
2015-09-11 13:24 ` Mark Hatle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55F2D616.1080604@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox