public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Robert Yang" <liezhi.yang@windriver.com>
To: Andreas Oberritter <obi@opendreambox.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 1/1] oe-buildenv-internal: Support extra settings
Date: Thu, 12 Nov 2020 19:32:59 +0800	[thread overview]
Message-ID: <2aaa45a7-a835-98a6-d49a-09c56e875721@windriver.com> (raw)
In-Reply-To: <20201112122412.3dfaaf80@opendreambox.org>

Hi Andreas,

On 11/12/20 7:24 PM, Andreas Oberritter wrote:
> Dear Robert,
> 
> On Thu, 12 Nov 2020 19:25:49 +0800
> "Robert Yang" <liezhi.yang@windriver.com> wrote:
> 
>> This can make it possible to do extra settings such as PATH for other layers,
>> for exampole, other layers may also have scripts directories as oe-core, we
>> have to run them with path since they are not in PATH, for example, there is a
>> tool meta-browser/scripts/firefox-gen-l10n-recipes, we have to use
>> /path/to/meta-browser/scripts to run it. Make oe-buildenv-internal check and
>> enable $OEROOT/extrasettings, and set a line like the following can fix the
>> problem:
>>
>> PATH=/relative/to/$OEROOT/meta-browser/scripts:$PATH
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>>   scripts/oe-buildenv-internal | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
>> index ba0a9b44d6..bf84003d72 100755
>> --- a/scripts/oe-buildenv-internal
>> +++ b/scripts/oe-buildenv-internal
>> @@ -98,6 +98,10 @@ for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do
>>   done
>>   unset BITBAKEDIR newpath
>>   
>> +if [ -e $OEROOT/extrasettings ]; then
>> +. $OEROOT/extrasettings
>> +fi
> 
> I think this filename isn't very descriptive, and people finding this file might wonder what it is about.

There is no such a file by default, the file should be created by other layers
or people out of oe-core.

> 
> How about sourcing all files (maybe with a given suffix like .sh) in $OEROOT/scripts/oe-buildenv-internal.d/ in lexical order?

If we do this, people need to patch oe-core/scripts/oe-buildenv-internal.d/ to
add their own settings, and oe-core can't accept such customization patches,
then it would make their oe-core repo non-fastword because of the local patches,
so I'm afraid that we can't do this.

// Robert

> 
> Regards,
> Andreas
> 

  reply	other threads:[~2020-11-12 11:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-12 11:25 [PATCH 0/1] oe-buildenv-internal: Support extra settings Robert Yang
2020-11-12 11:25 ` [PATCH 1/1] " Robert Yang
2020-11-12 11:24   ` [OE-core] " Andreas Oberritter
2020-11-12 11:32     ` Robert Yang [this message]
2020-11-12 11:47       ` Andreas Oberritter
2020-11-12 12:05         ` Robert Yang

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=2aaa45a7-a835-98a6-d49a-09c56e875721@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=obi@opendreambox.org \
    --cc=openembedded-core@lists.openembedded.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