summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2011-05-20 17:29:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-20 17:30:49 +0100
commit4f5209ce31f1cc7fc0c97453b5247640c07e7f31 (patch)
tree72553a54d1f7e7c7c986df95c504ad6cfa009a45
parent2f4c803427c5c95161105f4eea0d78a7431c9bdc (diff)
downloadpoky-4f5209ce31f1cc7fc0c97453b5247640c07e7f31.tar.gz
poky-4f5209ce31f1cc7fc0c97453b5247640c07e7f31.tar.bz2
poky-4f5209ce31f1cc7fc0c97453b5247640c07e7f31.zip
kernel.bbclass: pass KERNEL_VERSION through legitimize_package_name
- KERNEL_VERSION may contain characters unsuitable for package names, e.g. underscores. Use legitimize_package_name to replace those characters. (From OE-Core rev: 8c6bf9f6775fc5aaa8bc2c77924c95a00f1c1890) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 70a782fbaf..1bb69f5136 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -214,8 +214,8 @@ RDEPENDS_kernel = "kernel-base"
# Allow machines to override this dependency if kernel image files are
# not wanted in images as standard
RDEPENDS_kernel-base ?= "kernel-image"
-PKG_kernel-image = "kernel-image-${KERNEL_VERSION}"
-PKG_kernel-base = "kernel-${KERNEL_VERSION}"
+PKG_kernel-image = "kernel-image-${@legitimize_package_name('${KERNEL_VERSION}')}"
+PKG_kernel-base = "kernel-${@legitimize_package_name('${KERNEL_VERSION}')}"
ALLOW_EMPTY_kernel = "1"
ALLOW_EMPTY_kernel-base = "1"
ALLOW_EMPTY_kernel-image = "1"