mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 06:51:26 +02:00
Merge pull request #2722 from bgilbert/vmlinux
sys-kernel/coreos-{modules,kernel}: add debug symbols to /usr/lib/debug
This commit is contained in:
commit
d5b45e9a24
@ -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
|
||||||
}
|
}
|
@ -41,6 +41,13 @@ src_install() {
|
|||||||
INSTALL_FW_PATH="${T}/fw" \
|
INSTALL_FW_PATH="${T}/fw" \
|
||||||
modules_install
|
modules_install
|
||||||
|
|
||||||
|
# Install to /usr/lib/debug with debug symbols intact
|
||||||
|
kmake INSTALL_MOD_PATH="${D}/usr/lib/debug/usr" \
|
||||||
|
INSTALL_FW_PATH="${T}/fw" \
|
||||||
|
modules_install
|
||||||
|
rm "${D}/usr/lib/debug/usr/lib/modules/${KV_FULL}/"modules.* || die
|
||||||
|
rm "${D}/usr/lib/debug/usr/lib/modules/${KV_FULL}/"{source,build} || die
|
||||||
|
|
||||||
# Clean up the build tree
|
# Clean up the build tree
|
||||||
shred_keys
|
shred_keys
|
||||||
kmake clean
|
kmake clean
|
Loading…
x
Reference in New Issue
Block a user