Skip to contentSkip to conversation

how do I find the filename of the kernel

DISCUSSION Joshua Immanuel 1 participant 2 messages Feb 24, 2012

lore
Share & tools
lore
#0 lore raw

Hello all,
I am trying to write a config file in grub-native recipe for which I
need the kernel filename (in my case bzImage-3.0.4-yocto-standard+).

I find in kernel.bbclass that the kernel file name is constructed from
"${KERNEL_IMAGETYPE}-${KERNEL_VERSION}". And the KERNEL_VERSION is filled from the 'get_kernelversion' method in linux-kernel-base.bbclass, which needs the location of kernel's build directory (${B}). Obviously, this build directory location will not be available in other recipes.

So, how do I get the filename of the kernel in other recipes?

Regards
Joshua

Signature · 3 lines
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in
#1 lore raw

Hello all,

Quoted 6 lines · Joshua Immanuel

I find in kernel.bbclass that the kernel file name is
constructed from "${KERNEL_IMAGETYPE}-${KERNEL_VERSION}". And the KERNEL_VERSION is filled from the 'get_kernelversion' method in linux-kernel-base.bbclass, which needs the location of kernel's build directory (${B}). Obviously, this build directory location will not be available in other recipes.

Aww. Missed this. In kernel_do_install method of kernel.bbclass I found that KERNEL_VERSION is echoed into a file (${D}/kernel/kernel-abiversion). And this file is added to sysroot_stage_dir. I guess, that I have to read that file in order to get construct the kernel filename. Am I right?

Regards
Joshua

Signature · 3 lines
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in