1
0

Auto detect debug symbols for host kernels

This commit is contained in:
2019-08-16 05:34:10 +00:00
parent fc50808893
commit 3064dc3a27
3 changed files with 12 additions and 2 deletions

View File

@ -348,6 +348,13 @@ func genHostKernels() (kcfg config.KernelConfig, err error) {
InitrdPath: kernelsBase + genInitrdPath(files, k),
RootFS: genRootfsImage(dii),
}
vmlinux := "/usr/lib/debug/boot/vmlinux-" + k
log.Println("vmlinux", vmlinux)
if exists(vmlinux) {
ki.VmlinuxPath = vmlinux
}
kcfg.Kernels = append(kcfg.Kernels, ki)
}