diff options
author | Kevin Hao <kexin.hao@windriver.com> | 2015-08-25 18:36:07 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 12:43:23 +0100 |
commit | a346a3cd527327eb55105942be4ef8215152c68d (patch) | |
tree | 0c8b2ed0a7a4af8801c9c117ee5fefbaca77c3ed /meta/classes/kernel.bbclass | |
parent | fc6e967c733dd6fb9fa00eb664daec5dd578de66 (diff) | |
download | poky-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.bbclass | 1 |
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 |
362 | RDEPENDS_kernel-base ?= "kernel-image" | 362 | RDEPENDS_kernel-base ?= "kernel-image" |
363 | PKG_kernel-image = "kernel-image-${@legitimize_package_name('${KERNEL_VERSION}')}" | 363 | PKG_kernel-image = "kernel-image-${@legitimize_package_name('${KERNEL_VERSION}')}" |
364 | RDEPENDS_kernel-image += "${@base_conditional('KERNEL_IMAGETYPE', 'vmlinux', 'kernel-vmlinux', '', d)}" | ||
364 | PKG_kernel-base = "kernel-${@legitimize_package_name('${KERNEL_VERSION}')}" | 365 | PKG_kernel-base = "kernel-${@legitimize_package_name('${KERNEL_VERSION}')}" |
365 | RPROVIDES_kernel-base += "kernel-${KERNEL_VERSION}" | 366 | RPROVIDES_kernel-base += "kernel-${KERNEL_VERSION}" |
366 | ALLOW_EMPTY_kernel = "1" | 367 | ALLOW_EMPTY_kernel = "1" |