[poky] Extending recipes
Chris Larson
clarson at kergoth.com
Wed Dec 15 09:57:36 PST 2010
On Wed, Dec 15, 2010 at 10:33 AM, Gary Thomas <gary at mlbassoc.com> wrote:
> I have a number of recipes that are in the Poky core that
> need a little extending for my environment. Mostly, this
> can be done with a .bbappend file, but some are a bit trickier.
>
> For example, in
> meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.16.bb
> there are a couple of lines which control how this package is
> configured and built. In particular:
> DEPENDS += "gst-plugins-base libid3tag libmad mpeg2dec liba52 lame"
> EXTRA_OECONF +=
> "--with-plugins=a52dec,lame,id3tag,mad,mpeg2dec,mpegstream,mpegaudioparse,asfdemux,realmedia"
> In my case, I want to have the h264 encoder/decoder built as well.
> I don't see a [good?] way to change these lines to be effectively:
> DEPENDS += "gst-plugins-base libid3tag libmad mpeg2dec liba52 lame x264"
> EXTRA_OECONF +=
> "--with-plugins=a52dec,lame,id3tag,mad,mpeg2dec,mpegstream,mpegaudioparse,asfdemux,realmedia,x264"
>
> The DEPENDS variable is easy enough to extend in .bbappend,
> but how should I handle EXTRA_OECONF?
The list of plugins should likely be shifted into its own variable in
the core, so that its easier to override. Alternatively, you could
use oe_filter_out() to remove the current --with-plugins and add your
own.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
More information about the poky
mailing list