diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2011-05-20 17:29:47 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-20 17:30:49 +0100 |
commit | 4f5209ce31f1cc7fc0c97453b5247640c07e7f31 (patch) | |
tree | 72553a54d1f7e7c7c986df95c504ad6cfa009a45 /meta | |
parent | 2f4c803427c5c95161105f4eea0d78a7431c9bdc (diff) | |
download | poky-4f5209ce31f1cc7fc0c97453b5247640c07e7f31.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 4 |
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" | |||
214 | # Allow machines to override this dependency if kernel image files are | 214 | # Allow machines to override this dependency if kernel image files are |
215 | # not wanted in images as standard | 215 | # not wanted in images as standard |
216 | RDEPENDS_kernel-base ?= "kernel-image" | 216 | RDEPENDS_kernel-base ?= "kernel-image" |
217 | PKG_kernel-image = "kernel-image-${KERNEL_VERSION}" | 217 | PKG_kernel-image = "kernel-image-${@legitimize_package_name('${KERNEL_VERSION}')}" |
218 | PKG_kernel-base = "kernel-${KERNEL_VERSION}" | 218 | PKG_kernel-base = "kernel-${@legitimize_package_name('${KERNEL_VERSION}')}" |
219 | ALLOW_EMPTY_kernel = "1" | 219 | ALLOW_EMPTY_kernel = "1" |
220 | ALLOW_EMPTY_kernel-base = "1" | 220 | ALLOW_EMPTY_kernel-base = "1" |
221 | ALLOW_EMPTY_kernel-image = "1" | 221 | ALLOW_EMPTY_kernel-image = "1" |