aboutsummaryrefslogtreecommitdiffstats
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-02 23:46:08 +0100
commitbd8b9bc716774a8f8b4b97ece5c7b2eb58aa2330 (patch)
tree30aa3d861ab29e4069f84846f6d1ea83fedf0501 /meta/classes/kernel.bbclass
parent4edaa7498f98977e60381bd9e5f8778abfb9fe30 (diff)
downloadopenembedded-core-contrib-bd8b9bc716774a8f8b4b97ece5c7b2eb58aa2330.tar.gz
openembedded-core-contrib-bd8b9bc716774a8f8b4b97ece5c7b2eb58aa2330.tar.bz2
openembedded-core-contrib-bd8b9bc716774a8f8b4b97ece5c7b2eb58aa2330.zip
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". 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"
# not wanted in images as standard
RDEPENDS_kernel-base ?= "kernel-image"
PKG_kernel-image = "kernel-image-${@legitimize_package_name('${KERNEL_VERSION}')}"
+RDEPENDS_kernel-image += "${@base_conditional('KERNEL_IMAGETYPE', 'vmlinux', 'kernel-vmlinux', '', d)}"
PKG_kernel-base = "kernel-${@legitimize_package_name('${KERNEL_VERSION}')}"
RPROVIDES_kernel-base += "kernel-${KERNEL_VERSION}"
ALLOW_EMPTY_kernel = "1"