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

pHilipp Zabel philipp.zabel at gmail.com
Sat Aug 11 17:20:05 UTC 2007


On 8/11/07, Richard Purdie <rpurdie at rpsys.net> wrote:
> On Sat, 2007-08-11 at 15:05 +0200, Koen Kooi wrote:
> > Richard Purdie schreef:
> > > On Sat, 2007-08-11 at 12:20 +0200, pHilipp Zabel wrote:
> > >> I guess it should to something like
> > >> PACKAGES = "${PN} ${PN}-dbg ${PN}-dev" or not touch packages at all,
> > >> if the code also works for -doc and -locale and enable that code,
> > >> however it is done.
> > >
> > > PACKAGES shouldn't need touching. Empty -doc and -locale packages won't
> > > get created.
> >
> > Even with ALLOW_EMPTY="1"?
>
> Hmm. I guess adding ALLOW_EMPTY_foo = "1" for each task is boring so we
> could be doing:
>
> ALLOW_EMPTY_${PN}-doc = "0"
> ALLOW_EMPTY_${PN}-locale = "0"
>
> Is that preferable to overriding PACKAGES?

Good question. Those two lines are ugly enough to support
my wish to create task.bbclass instead of plastering them into each
and every task recipe :)

OTOH if we one day decide to add another ${PN}-something to base PACKAGES,
(${PN}-staging?),  this has to be adapted - not so if we overwrite PACKAGES.

regards
Philipp




More information about the Openembedded-devel mailing list