[oe-commits] Kevin Hao : kernel.bbclass: add the runtime dependency on kernel-vmlinux for kernel-image
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 1 21:21:10 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 5e8817bd375ee07b2ad9bae7e359a536b0ba856d
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5e8817bd375ee07b2ad9bae7e359a536b0ba856d
Author: Kevin Hao <kexin.hao at windriver.com>
Date: Tue Aug 25 18:36:07 2015 +0800
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 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/kernel.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5318b5f..919293e 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"
More information about the Openembedded-commits
mailing list