[yocto] Question about automatic debug package generation
Nicolas Dechesne
nicolas.dechesne at linaro.org
Thu Sep 26 15:29:05 PDT 2013
On Fri, Sep 27, 2013 at 12:00 AM, Brad Litterell <brad at evidence.com> wrote:
> My recipe builds and ships an executable in /foo/bin/fooapp
>
> FILES_${PN} += "/foo/bin/*"
>
> WARNING: QA Issue: foo: Files/directories were installed but not shipped
> /foo/bin/.debug
> /foo/bin/.debug/fooapp
>
> This file doesn't appear in the image, but is in the package folder:
> ./package/foo/bin/.debug/fooapp
>
> It appears something is automatically creating these .debug files during
> the packaging steps, but the corresponding file isn't under packages-split.
>
>
> Can someone point me to a place to learn more about how these are
> created and packaged?
>
this is done in meta/classes/package.bbclass. at the beginning of that
file, you will find an overall description of what the 'packaging' steps
are, and you can see, among many things:
# d) split_and_strip_files - split the files into runtime and debug and
strip them.
# Debug files include debug info split, and associated sources that end
up in -dbg packages
you can then check the source code for the function split_and_strip_files.
Now, about 'packaging' the files, you need to look at
meta/conf/bitbake.conf and search for FILES_{PN}-dbg. this is the default
variable that specifies which files go into the -dbg package. Your issue
above is because the 'default' path for binary is /usr/bin, hence the
'default' path for debug variants is /usr/bin/.debug. But if you need
'/foo' , you can change these default in your recipe, by modifying
FILES_{PN}xxx in your .bb file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130927/32cf658d/attachment.html>
More information about the yocto
mailing list