summaryrefslogtreecommitdiff
path: root/meta/classes/kernel.bbclass
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:30 +0100
commit8c6bf9f6775fc5aaa8bc2c77924c95a00f1c1890 (patch)
treefaeae212c2b799e9f62d9db0862bfb3c572a1a32 /meta/classes/kernel.bbclass
parent3ebb3254cbe3151ea74a770347c41b4d794d9aaa (diff)
downloadopenembedded-core-8c6bf9f6775fc5aaa8bc2c77924c95a00f1c1890.tar.gz
openembedded-core-8c6bf9f6775fc5aaa8bc2c77924c95a00f1c1890.tar.bz2
openembedded-core-8c6bf9f6775fc5aaa8bc2c77924c95a00f1c1890.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. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-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"