[oe] [RFC] a small bbclass for task recipes

Richard Purdie rpurdie at rpsys.net
Fri Aug 10 15:50:21 UTC 2007


Hi,

On Fri, 2007-08-10 at 15:22 +0200, pHilipp Zabel wrote:
> while looking for the cause of several -dbg packages being included in
> my latest angstrom-x11-image builds, I noticed that some task packages
> have -dev, -doc and
> -dbg versions in the deploy directories because they don't set PACKAGES.
> 
> To improve consistency, I propose to add a small task.bbclass that does set
> ALLOW_EMPTY="1", PACKAGES="${PN}" and PACKAGE_ARCH="all".
> That way simple task recipes can just "inherit task".
> (If needed, this could be enhanced later with a python script to automatically
> add -dbg packages that RRECOMMEND the -dbg versions of packages that
> the main package RDEPENDs upon.)

Creating the -dev and -dbg packages for task packages is intentional.
The python code to create the RRECOMMENDS you mention already exists in
the form of depchains in package.bbclass.

I know this works in poky as its how we create development and debugging
images, I can't remember whether it was enabled in OE.dev or not but the
code is there...

Also, not all task packages are PACKAGE_ARCH = "all" although I guess
they'll be explicitly marked anyway.

Cheers,

Richard







More information about the Openembedded-devel mailing list