All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: Paul Eggleton <paul.eggleton@linux.intel.com>,
	yocto <yocto@yoctoproject.org>
Subject: Re: Undefining a variable in a recipe?
Date: Fri, 02 May 2014 14:11:50 +0100	[thread overview]
Message-ID: <53639996.4090604@dynamicdevices.co.uk> (raw)
In-Reply-To: <CAP9ODKpi7p+oZ09XyVxAB+2Xv36YWVf4d4iO4jLEhEegzUQodA@mail.gmail.com>


On 02/05/2014 14:07, Otavio Salvador wrote:
> On Fri, May 2, 2014 at 10:01 AM, Alex J Lennon
> <ajlennon@dynamicdevices.co.uk> wrote:
>> On 02/05/2014 13:56, Otavio Salvador wrote:
>>> On Fri, May 2, 2014 at 2:24 AM, Alex J Lennon
>>> <ajlennon@dynamicdevices.co.uk> wrote:
>>> ...
>>>> So I guess I'm at the point where I'm wondering if a getVar() with a
>>>> flag is behaving as you would expect it to,
>>>> or how I might go about ensuring either UBOOT_MACHINE or UBOOT_CONFIG
>>>> isn't defined?
>>>>
>>>> Thanks in advance for any advice,
>>> I think we have a simple error error. You are mixing a recipe, which
>>> is old and a metadata layer with new concepts.
>>>
>>> The u-boot-imx, in 2009.08 recipe, used to set the UBOOT_MACHINE in
>>> the recipe as it was left as a fallback in case user needed it and the
>>> value was different from newer releases.
>>>
>>> In your case, the easier is to make a new yourmachine.conf and use the
>>> UBOOT_CONFIG or UBOOT_MACHINE setting there so it will work just fine.
>>>
>> If I have to do that, then I have to do that.
>>
>> However if I could just undefine one of the two variables defined in the
>> meta-fsl-arm
>> layer then I could continue with what I am doing without having to spend
>> the time
>> right now to rework the configuration, which is wasted effort for me, as
>> I will be moving
>> up to the new version of u-boot in the near future.
>>
>> Is there no simple way to undefine a variable in a recipe?
> You can change the recipe byhand. This is ugly and I wouldn't do it. I
> do think you are wasting more time trying to 'workaround' it than
> fixing it.

Or indeed, would be not be reasonable to modify the uboot-config.bbclass
such that
it tested for and discarded empty strings in UBOOT_MACHINE / UBOOT_CONFIG
which would seem to be a more complete test and would eliminate the
problem ?

> Comment the UBOOT_MACHINE setting in the u-boot-imx recipe and move
> on. The log is clear you're not setting the PREFERRED_VERSION
> accordingly and you should.
>

You've lost me. Why am I not setting PREFERRED_VERSION accordingly? I have
two recipes in the checkout and I have configured prefer the older one,
which
seems entirely reasonable.




  reply	other threads:[~2014-05-02 13:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01  9:42 Undefining a variable in a recipe? Alex J Lennon
2014-05-01 13:54 ` Paul Eggleton
2014-05-01 17:34   ` Alex J Lennon
2014-05-01 17:54     ` Otavio Salvador
2014-05-01 18:34       ` Alex J Lennon
2014-05-02  5:24       ` Alex J Lennon
2014-05-02 12:56         ` Otavio Salvador
2014-05-02 13:01           ` Alex J Lennon
2014-05-02 13:07             ` Otavio Salvador
2014-05-02 13:11               ` Alex J Lennon [this message]
2014-05-02 13:23                 ` Otavio Salvador
2014-05-02 13:25                   ` Otavio Salvador
2014-05-02 14:08                     ` Alex J Lennon
2014-05-02 15:24                       ` Otavio Salvador
2014-05-02 15:46                         ` Alex J Lennon
2014-05-02 16:55                           ` Otavio Salvador
2014-05-02 17:18                             ` Alex J Lennon
2014-05-02 13:28                   ` Paul Eggleton
2014-05-02 13:35                   ` Alex J Lennon
2014-05-02 13:45                     ` Otavio Salvador

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=53639996.4090604@dynamicdevices.co.uk \
    --to=ajlennon@dynamicdevices.co.uk \
    --cc=otavio@ossystems.com.br \
    --cc=paul.eggleton@linux.intel.com \
    --cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.