base.bbclass: Implement PACKAGECONFIG
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Oct 2011 22:06:32 +0000 (23:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Oct 2011 10:35:42 +0000 (11:35 +0100)
commite5f25363ad88756ad63d512691256add267e3db8
tree25d3b79d5c2fb766ed315e788dd1cbc3bdd6963f
parent633e31f9a18ea5431162bce1d2e74be22c711a7c
base.bbclass: Implement PACKAGECONFIG

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.

Based on some ideas from Chris Elston <celston@katalix.com> but with
an improved easier to use one line interface.

(From OE-Core rev: 7a58911f6951abd56db9ebb37f8d6284d91fa514)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass