All of lore.kernel.org
 help / color / mirror / Atom feed
* Key expansion and overrides?
@ 2015-03-26 14:30 Richard Purdie
  2015-03-26 15:23 ` Christopher Larson
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2015-03-26 14:30 UTC (permalink / raw)
  To: bitbake-devel

Two interesting test cases:

OVERIDES = "myoverride"
TESTME = "myoverride"
FOO = "1"
FOO_${TESTME} = "2"

FOO = 1 or 2?

OVERIDES = "myoverride"
TESTME = "myoverride"
FOO = "1 2"
FOO_remove_${TESTME} = "2"

FOO = "1 2" or "1"?

Currently expansion in overrides doesn't work. I discovered this trying
to do:

X_remove_pn-gcc-cross-${TARGET_ARCH} = "Y"

which I do believe is a valid thing to attempt.

There are two ways of fixing this I guess. One is to call expandKeys()
before and after update_data() but I suspect we can still cases which
won't work. The other is to move to a model where overrides are applied
more dynamically and we lose the need for update_data(). There may be
some performance penalty for it.

I'm leaning towards trying to kill off update_data() right now...

Thoughts/comments welcome.

Cheers,

Richard





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Key expansion and overrides?
  2015-03-26 14:30 Key expansion and overrides? Richard Purdie
@ 2015-03-26 15:23 ` Christopher Larson
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Larson @ 2015-03-26 15:23 UTC (permalink / raw)
  To: Richard Purdie; +Cc: bitbake-devel

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

On Thu, Mar 26, 2015 at 7:30 AM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> Two interesting test cases:
>
> OVERIDES = "myoverride"
> TESTME = "myoverride"
> FOO = "1"
> FOO_${TESTME} = "2"
>
> FOO = 1 or 2?
>
> OVERIDES = "myoverride"
> TESTME = "myoverride"
> FOO = "1 2"
> FOO_remove_${TESTME} = "2"
>
> FOO = "1 2" or "1"?
>
> Currently expansion in overrides doesn't work. I discovered this trying
> to do:
>
> X_remove_pn-gcc-cross-${TARGET_ARCH} = "Y"
>
> which I do believe is a valid thing to attempt.
>
> There are two ways of fixing this I guess. One is to call expandKeys()
> before and after update_data() but I suspect we can still cases which
> won't work. The other is to move to a model where overrides are applied
> more dynamically and we lose the need for update_data(). There may be
> some performance penalty for it.
>
> I'm leaning towards trying to kill off update_data() right now...
>

I also would lean towards removing update_data, at least prototyping it to
see what the performance penalties are.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 1835 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-26 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-26 14:30 Key expansion and overrides? Richard Purdie
2015-03-26 15:23 ` Christopher Larson

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.