[poky] require statement does not honor .bbappend
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Feb 3 07:01:15 PST 2012
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
More information about the poky
mailing list