[yocto] How to exclude QT Debug libraries from image

Paul Eggleton paul.eggleton at linux.intel.com
Sun Feb 9 03:44:48 PST 2014


Hi Brad,

On Sunday 09 February 2014 01:44:26 Brad Litterell wrote:
> I have a package "bar" that uses qt4-embedded (inherit qt4e).  When I
> include the dbg package for my stuff (bar-dbg) in the image, I also get
> several hundred MB of QT related debug files that I'm not interested in. 
> All I want to do is run GDB on my code, I don't care to debug into the QT
> code.
> 
> That makes sense as Yocto figures out the dependency chain for all the
> packages in the image, but I'm wondering if there is a way to defeat it
> since it will reduce the size of my image considerably (over 10x) and save
> me a lot of time during the build.
> 
> In essence, I want something like DEPENDS -= "<list of packages I want to
> exclude>".
> 
> Is there a way to do this?

Indeed there is; assuming you are using the dora (1.5) release or newer, you
can add the debug packages to BAD_RECOMMENDATIONS (since relationships between
-dbg and -dev packages are RRECOMMENDS.) This should also allow you to add
individual -dbg packages back in by explicitly adding them to IMAGE_INSTALL if 
you need to.

http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-BAD_RECOMMENDATIONS

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list