kernel: copy only *.ko for debug info
authorChuanhong Guo <gch981213@gmail.com>
Sun, 7 Jan 2024 15:56:05 +0000 (23:56 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sun, 7 Jan 2024 15:56:05 +0000 (23:56 +0800)
commit066b0fee76684a9fca44635d63bf2c699ef8e89c
tree014497ad9df6a84a208ae27ab38400fec6e822f5
parent96580500d2806136a98cf38657e7c6082dab7e1c
kernel: copy only *.ko for debug info

Previous commits installed non-elf files into /lib/modules/$VER/.
COLLECT_KERNEL_DEBUG tries to strip all files and these two files
break the build.
Fix it by copying only kernel modules for debug info collection.

Fixes: e1d8e57614 ("kernel: include modinfo for built-in modules")
Fixes: 29f6da4340 ("kernel: include built-in module list")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
include/kernel-build.mk