Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Robert Yang <liezhi.yang@windriver.com>
Cc: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [RFC PATCH] bitbake.conf: Stop providing ${P} and ${PF} by default
Date: Wed, 11 Sep 2013 11:10:28 +0100	[thread overview]
Message-ID: <1378894228.3484.176.camel@ted> (raw)
In-Reply-To: <52303854.1020209@windriver.com>

On Wed, 2013-09-11 at 17:31 +0800, Robert Yang wrote:
> 
> On 09/10/2013 10:08 PM, Richard Purdie wrote:
> > On Tue, 2013-09-10 at 15:33 +0800, Robert Yang wrote:
> >> Thanks, Can we provide a replacement for the "bitbake PN-PV" since it is
> >> useful, for example, can we support the PREFERRED_VERSION_${PN} in the env
> >> in the future ? There is a similar bug:
> >>
> >> https://bugzilla.yoctoproject.org/show_bug.cgi?id=4965
> >
> > If you set BB_PRESERVE_ENV=1 you can set PREFERRED_VERSION_xxx from the
> > environment so this should already be possible?
> >
> 
> It seems that the BB_PRESERVE_ENV=1 doesn't work, but we use the
> BB_ENV_EXTRAWHITE, for example:
> 
> $ export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PREFERRED_VERSION_make"
> $ export PREFERRED_VERSION_make="3.81",
> 
> Then it works, maybe something is wrong with the BB_PRESERVE_ENV.

It is broken, yes, I've sent out a patch to fix it. There is one other
problem, you can't use "-" in a shell environment variable so you can't
do:

PREFERRED_VERSION_make-native = xxx

which is annoying. We might want to add some kind of mangling mechanism
like a double underscore translating to a dash or something...

Cheers,

Richard




  reply	other threads:[~2013-09-11 10:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-09 14:14 [RFC PATCH] bitbake.conf: Stop providing ${P} and ${PF} by default Richard Purdie
2013-09-09 18:19 ` Chris Larson
2013-09-10  7:33 ` Robert Yang
2013-09-10 14:08   ` Richard Purdie
2013-09-11  9:31     ` Robert Yang
2013-09-11 10:10       ` Richard Purdie [this message]
2013-09-12  2:17         ` Robert Yang
2013-09-12  7:23 ` 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=1378894228.3484.176.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=liezhi.yang@windriver.com \
    --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