sys-kernel/coreos-kernel: copy vmlinux and vdso libs into /usr/lib/debug

This shouldn't affect the SDK or the OS image, but ensures that debug
symbols are available from the binary package.

vmlinux is installed to:

    /usr/lib/debug/usr/boot/vmlinux-<version>

vdso binaries are installed to:

    /usr/lib/debug/usr/lib/modules/<version>/vdso/

A symlink is created:

    /usr/lib/debug/usr/lib/modules/<version>/vmlinux ->
    ../../../boot/vmlinux-<version>
This commit is contained in:
Benjamin Gilbert 2017-08-22 22:04:37 -07:00
parent 878cde170c
commit 9bd0973251

View File

@ -77,9 +77,12 @@ src_install() {
insinto "/usr/lib/modules/${KV_FULL}/build" insinto "/usr/lib/modules/${KV_FULL}/build"
doins build/System.map doins build/System.map
# TODO: vmlinux would be useful for debugging but it is >300MB
# Uncomment vdso_install for easy access to debug symbols in gdb: insinto "/usr/lib/debug/usr/boot"
# set debug-file-directory /lib/modules/4.0.7-coreos-r2/vdso/ newins build/vmlinux "vmlinux-${KV_FULL}"
#kmake INSTALL_MOD_PATH="${D}/usr" vdso_install dosym "../../../boot/vmlinux-${KV_FULL}" "/usr/lib/debug/usr/lib/modules/${KV_FULL}/vmlinux"
# For easy access to vdso debug symbols in gdb:
# set debug-file-directory /usr/lib/debug/usr/lib/modules/${KV_FULL}/vdso/
kmake INSTALL_MOD_PATH="${D}/usr/lib/debug/usr" vdso_install
} }