Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Jens Rehsack" <rehsack@gmail.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: environment-setup.d usage in SDKs and eSDK
Date: Fri, 7 Aug 2020 18:14:39 +0200	[thread overview]
Message-ID: <5751DB36-25F5-4995-9CC6-106C30D0DF66@gmail.com> (raw)
In-Reply-To: <da1885af24ecf70823c3aa80ba668cc71493582b.camel@linuxfoundation.org>

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



> Am 07.08.2020 um 17:17 schrieb Richard Purdie <richard.purdie@linuxfoundation.org>:
> 
> I've just spent far too long staring at this so I'm going to write down
> what I found out. I may as well share it publicly.
> 
> An eSDK can be used like a normal SDK with an environment file that can
> be sourced. The challenge is that an eSDK contains native binaries
> rather than the nativesdk variants in the SDK.
> 
> This means that where an SDK has nativesdk environment.d files, an eSDK
> ends up using "native" environment.d files which are not used in any
> other context.
> 
> Some recipes like cmake implement both. Some others like icecc or
> openssl only have nativesdk variants. This probably needs cleaning up
> to be consistent.
> 
> It gets worse when you find that buildtools is included in eSDK and its
> environment file is sourced. This means you get a mix of nativesdk and
> native. If you set OECORE_NATIVE_SYSROOT in buildtools, it corrupts the
> eSDK's variable of the same name. This why buildtools has a hardcoded
> list of variables it puts in the enrivonment rather than using
> environment.d.
> 
> It would be better if the two sets of environment files (native and
> nativesdk) referenced different variables as currently the two can't
> coexist. This also really needs to be fixed.
> 
> Cheers,
> 
> Richard

Thank you very much for your patience and time digging deeper into this.
Maybe I'm getting the chance to help something - I forwarded this information
to the team and look if we can use both, SDK and eSDK so we would need
those fixups (and thus do them then ^^).

Cheers
--
Jens Rehsack - rehsack@gmail.com


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

      reply	other threads:[~2020-08-07 16:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-07 15:17 environment-setup.d usage in SDKs and eSDK Richard Purdie
2020-08-07 16:14 ` Jens Rehsack [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=5751DB36-25F5-4995-9CC6-106C30D0DF66@gmail.com \
    --to=rehsack@gmail.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