All of lore.kernel.org
 help / color / mirror / Atom feed
* require statement does not honor .bbappend
@ 2012-02-02 23:22 Gary Thomas
  2012-02-03 10:07 ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2012-02-02 23:22 UTC (permalink / raw)
  To: Poky Project

This is really a bitbake problem, but I'll bring it up here.

I have a statement like this in one of my recipes:
    require xyz.bb

If I also have within my layers a xyz.bbappend file, it gets
processed when I build xyz, e.g.
   % bitbake xyz
but is ignored when I only 'require' that recipe.

Should it not be always processed?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: require statement does not honor .bbappend
  2012-02-02 23:22 require statement does not honor .bbappend Gary Thomas
@ 2012-02-03 10:07 ` Richard Purdie
  2012-02-03 13:27   ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2012-02-03 10:07 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Poky Project

On Thu, 2012-02-02 at 16:22 -0700, Gary Thomas wrote:
> This is really a bitbake problem, but I'll bring it up here.
> 
> I have a statement like this in one of my recipes:
>     require xyz.bb
> 
> If I also have within my layers a xyz.bbappend file, it gets
> processed when I build xyz, e.g.
>    % bitbake xyz
> but is ignored when I only 'require' that recipe.
> 
> Should it not be always processed?

No, as designed and implemented you can't bbappend to anything being
used as an include (or require), only the final .bb file.

Cheers,

Richard






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

* Re: require statement does not honor .bbappend
  2012-02-03 10:07 ` Richard Purdie
@ 2012-02-03 13:27   ` Gary Thomas
  2012-02-03 15:01     ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2012-02-03 13:27 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Poky Project

On 2012-02-03 03:07, Richard Purdie wrote:
> On Thu, 2012-02-02 at 16:22 -0700, Gary Thomas wrote:
>> This is really a bitbake problem, but I'll bring it up here.
>>
>> I have a statement like this in one of my recipes:
>>      require xyz.bb
>>
>> If I also have within my layers a xyz.bbappend file, it gets
>> processed when I build xyz, e.g.
>>     % bitbake xyz
>> but is ignored when I only 'require' that recipe.
>>
>> Should it not be always processed?
>
> No, as designed and implemented you can't bbappend to anything being
> used as an include (or require), only the final .bb file.

Bummer.  What's the rationale behind this [restriction]?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: require statement does not honor .bbappend
  2012-02-03 13:27   ` Gary Thomas
@ 2012-02-03 15:01     ` Richard Purdie
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2012-02-03 15:01 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Poky Project

On Fri, 2012-02-03 at 06:27 -0700, Gary Thomas wrote:
> On 2012-02-03 03:07, Richard Purdie wrote:
> > On Thu, 2012-02-02 at 16:22 -0700, Gary Thomas wrote:
> >> This is really a bitbake problem, but I'll bring it up here.
> >>
> >> I have a statement like this in one of my recipes:
> >>      require xyz.bb
> >>
> >> If I also have within my layers a xyz.bbappend file, it gets
> >> processed when I build xyz, e.g.
> >>     % bitbake xyz
> >> but is ignored when I only 'require' that recipe.
> >>
> >> Should it not be always processed?
> >
> > No, as designed and implemented you can't bbappend to anything being
> > used as an include (or require), only the final .bb file.
> 
> Bummer.  What's the rationale behind this [restriction]?

Trying to implement generic "append" files to conf and inc files was
going to be a significant headache for the parser and cache logic,
create a pile of ordering issues and was going to mean significant code
changes. The bbappend files were simple to understand and easy to
implement by comparison.

At the time, bbappend was seen as a sideline feature by most so we went
for the less invasive and simpler implementation (which was simpler to
use too).

Cheers,

Richard





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

end of thread, other threads:[~2012-02-03 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02 23:22 require statement does not honor .bbappend Gary Thomas
2012-02-03 10:07 ` Richard Purdie
2012-02-03 13:27   ` Gary Thomas
2012-02-03 15:01     ` Richard Purdie

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.