Skip to content

Commit 347df1d

Browse files
Deploy vmlinux for kernel debugging (#829)
"Having a handy 'vmlinux' would be helpful for debugging kernel issues. Start generating vmlinux and make it available along with the kernel image."
2 parents a97a06f + 2dd6cc4 commit 347df1d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

classes-recipe/image_types_qcom.bbclass

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ create_qcomflash_pkg() {
4848
done
4949
fi
5050

51+
# vmlinux
52+
[ -e "${DEPLOY_DIR_IMAGE}/vmlinux" -a \
53+
! -e "vmlinux" ] && \
54+
install -m 0644 "${DEPLOY_DIR_IMAGE}/vmlinux" vmlinux
55+
5156
# Legacy boot images
5257
if [ -n "${QCOM_DTB_DEFAULT}" ]; then
5358
[ -e "${DEPLOY_DIR_IMAGE}/boot-initramfs-${QCOM_DTB_DEFAULT}-${MACHINE}.img" -a \

conf/machine/include/qcom-base.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-dev"
55

66
KERNEL_IMAGETYPE ?= "Image"
7+
KERNEL_ALT_IMAGETYPE ?= "vmlinux"
8+
79
KERNEL_IMAGETYPES ?= "Image.gz"
810

911
# For dtb.bin generation

0 commit comments

Comments
 (0)