diff options
Diffstat (limited to 'meta/classes/kernel.bbclass')
| -rw-r--r-- | meta/classes/kernel.bbclass | 13 |
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. |
| 490 | do_kernel_link_vmlinux() { | 490 | do_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 | ||
| 498 | do_strip() { | 501 | do_strip() { |
| @@ -522,7 +525,7 @@ do_strip() { | |||
| 522 | } | 525 | } |
| 523 | do_strip[dirs] = "${B}" | 526 | do_strip[dirs] = "${B}" |
| 524 | 527 | ||
| 525 | addtask do_strip before do_sizecheck after do_kernel_link_vmlinux | 528 | addtask 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 |
