summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2015-08-25 18:36:07 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-03 12:43:23 +0100
commita346a3cd527327eb55105942be4ef8215152c68d (patch)
tree0c8b2ed0a7a4af8801c9c117ee5fefbaca77c3ed /meta/classes/kernel.bbclass
parentfc6e967c733dd6fb9fa00eb664daec5dd578de66 (diff)
downloadpoky-a346a3cd527327eb55105942be4ef8215152c68d.tar.gz
kernel.bbclass: add the runtime dependency on kernel-vmlinux for kernel-image
When a BSP uses vmlinux for boot, the kernel-image package is just empty. But by default the kernel-vmlinux is not installed. Then the pkg_postinst_kernel-image() would create a symlink to a non-existent file. Fix this by adding the runtime dependency on kernel-vmlinux for kernel-image if the KERNEL_IMAGETYPE is "vmlinux". (From OE-Core rev: bd8b9bc716774a8f8b4b97ece5c7b2eb58aa2330) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5318b5febe..919293e43d 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -361,6 +361,7 @@ RDEPENDS_kernel = "kernel-base"
361# not wanted in images as standard 361# not wanted in images as standard
362RDEPENDS_kernel-base ?= "kernel-image" 362RDEPENDS_kernel-base ?= "kernel-image"
363PKG_kernel-image = "kernel-image-${@legitimize_package_name('${KERNEL_VERSION}')}" 363PKG_kernel-image = "kernel-image-${@legitimize_package_name('${KERNEL_VERSION}')}"
364RDEPENDS_kernel-image += "${@base_conditional('KERNEL_IMAGETYPE', 'vmlinux', 'kernel-vmlinux', '', d)}"
364PKG_kernel-base = "kernel-${@legitimize_package_name('${KERNEL_VERSION}')}" 365PKG_kernel-base = "kernel-${@legitimize_package_name('${KERNEL_VERSION}')}"
365RPROVIDES_kernel-base += "kernel-${KERNEL_VERSION}" 366RPROVIDES_kernel-base += "kernel-${KERNEL_VERSION}"
366ALLOW_EMPTY_kernel = "1" 367ALLOW_EMPTY_kernel = "1"