[OE-core] base.bbclass: Implement PACKAGECONFIG
Richard Purdie
richard.purdie at linuxfoundation.org
Thu Oct 6 15:55:56 UTC 2011
On Thu, 2011-10-06 at 16:46 +0200, Koen Kooi wrote:
> Op 6 okt. 2011, om 16:18 heeft Richard Purdie het volgende geschreven:
>
> > These enabled options to be specified in the form:
> >
> > PACKAGECONFIG ?? = "<default options>"
> > PACKAGECONFIG[foo] = "--enable-foo,--disable-foo,foo_depends,foo_runtime_depends"
> >
> > So that DEPENDS, RDEPENDS_${PN} and EXTRA_OECONF can be automatically
> > built from specific options. Those options can easily be customised
> > by the distro config or the user.
>
> What if I want it in RDEPENDS_some-other-subpackage?
As yet to code doesn't support it but it could be extended to quite
easily.
There are several things in that function I don't like, I found at least
one bitbake bug (exposure of the defaultval flag) and I think bitbake
itself should have some kind of appendVar() function...
So consider that code a starting point, not a finished end result :)
Cheers,
Richard
More information about the Openembedded-core
mailing list