summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2016-05-25 04:47:17 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-30 15:58:11 +0100
commitc45c94223dde0c87714a541e4c3ecc5df69342f4 (patch)
treeae198bcd0b58167608d4d92a3ac8b32cde95fec4 /meta/classes/kernel.bbclass
parent0437a59e3c298d40aaa96af09b80bff8fcbe292d (diff)
downloadpoky-c45c94223dde0c87714a541e4c3ecc5df69342f4.tar.gz
kernel: Make symbol link to vmlinuz in boot directory
Rename do_kernel_link_vmlinux to do_kernel_link_images and make a symbol link to vmlinuz(if exists) for reference in arch/$arch/boot directory. Signen-off-by: He Zhe <zhe.he@windriver.com> (From OE-Core rev: 6e58f54be103814b6b8a85b236510633c49e6832) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index e7e2cb3963..dcf8bae042 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -484,15 +484,18 @@ python split_kernel_packages () {
484} 484}
485 485
486# Many scripts want to look in arch/$arch/boot for the bootable 486# Many scripts want to look in arch/$arch/boot for the bootable
487# image. This poses a problem for vmlinux based booting. This 487# image. This poses a problem for vmlinux and vmlinuz based
488# task arranges to have vmlinux appear in the normalized directory 488# booting. This task arranges to have vmlinux and vmlinuz appear
489# location. 489# in the normalized directory location.
490do_kernel_link_vmlinux() { 490do_kernel_link_images() {
491 if [ ! -d "${B}/arch/${ARCH}/boot" ]; then 491 if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
492 mkdir ${B}/arch/${ARCH}/boot 492 mkdir ${B}/arch/${ARCH}/boot
493 fi 493 fi
494 cd ${B}/arch/${ARCH}/boot 494 cd ${B}/arch/${ARCH}/boot
495 ln -sf ../../../vmlinux 495 ln -sf ../../../vmlinux
496 if [ -f ../../../vmlinuz ]; then
497 ln -sf ../../../vmlinuz
498 fi
496} 499}
497 500
498do_strip() { 501do_strip() {
@@ -522,7 +525,7 @@ do_strip() {
522} 525}
523do_strip[dirs] = "${B}" 526do_strip[dirs] = "${B}"
524 527
525addtask do_strip before do_sizecheck after do_kernel_link_vmlinux 528addtask do_strip before do_sizecheck after do_kernel_link_images
526 529
527# Support checking the kernel size since some kernels need to reside in partitions 530# Support checking the kernel size since some kernels need to reside in partitions
528# with a fixed length or there is a limit in transferring the kernel to memory 531# with a fixed length or there is a limit in transferring the kernel to memory