[yocto] Which is the best strategy to customize Qt configuration?

Leonardo Sandoval leonardo.sandoval.gonzalez at linux.intel.com
Mon Jul 13 08:47:45 PDT 2015



On 07/13/2015 09:23 AM, Pampolini Matteo wrote:
> Hello everybody,
>
>
> my name is Matteo and I'm writing from Italy.
>
>
> I'm involved in a project that requires a very customized Linux installation and I think Yocto is the best choice for this purpose.
>
>
> I was able to build and run some images from Poky 1.8 reference and now I'm trying to create my own one, with a custom configuration of Qt for X11.
>
>
> In particular I would like to remove Phonon support to avoid GStreamer/GLib dependencies: the quickest (and bad) solution was to modify meta/recipes-qt/qt4/qt4.inc file and it works, of course.
>
>
> But in order to follow Yocto guidelines and learn the right approach, I would like to create a new layer and, with proper use of .bbappend files, create my own Qt custom configuration.
>

For this point, you can create a new layer and inside a new image file. 
This image will basically inherit the one you want, then you need to 
remove the specific recipe. A possible way to remove it is though 
IMAGE_INSTALL_remove = "<pkg to remove">

>
> Now I'm in trouble a little bit because I do not exactly now which Qt-related files should be included in my layer and how they should relate with the provided ones, may you please help me?
>

Dependencies can be found using the '-g' bitbake command line. That 
command produces .dot files, and you can parse these to figure out what 
you want.

>
> Many thanks in advance for your kind support,
>
>
> Matteo
>
>
>



More information about the yocto mailing list