summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2015-12-22 16:12:53 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-18 11:47:08 +0000
commit76e35f1d76dcd7a68fb6bed08363992407947a44 (patch)
tree55a1ed3bd10033b7635771772ef43a010cfe0356 /meta/classes/kernel.bbclass
parentd453fa183caa66131a355232282b7ec38eb68d24 (diff)
downloadpoky-76e35f1d76dcd7a68fb6bed08363992407947a44.tar.gz
kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass
Move do_kernel_link_vmlinux() from kernel-yocto.bbclass into kernel.bbclass so that it's available to any kernel recipe. Note that the task is not enabled by default in kernel-yocto.bbclass, so don't enable by default in kernel.bbclass either. To enable, see the example in linux-yocto.inc, ie: addtask kernel_link_vmlinux after do_compile before do_install (From OE-Core rev: a29371848deda618a42f9a30f9856a44c2342fe6) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5c3287bb98..dee6f7db24 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -417,6 +417,18 @@ python split_kernel_packages () {
417 do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.(bin|fw|cis|dsp)$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='') 417 do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.(bin|fw|cis|dsp)$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
418} 418}
419 419
420# Many scripts want to look in arch/$arch/boot for the bootable
421# image. This poses a problem for vmlinux based booting. This
422# task arranges to have vmlinux appear in the normalized directory
423# location.
424do_kernel_link_vmlinux() {
425 if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
426 mkdir ${B}/arch/${ARCH}/boot
427 fi
428 cd ${B}/arch/${ARCH}/boot
429 ln -sf ../../../vmlinux
430}
431
420do_strip() { 432do_strip() {
421 if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then 433 if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
422 if [ "${KERNEL_IMAGETYPE}" != "vmlinux" ]; then 434 if [ "${KERNEL_IMAGETYPE}" != "vmlinux" ]; then