Permalink
Browse files

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>
Acked-by: Phil Blundell <philb@gnu.org>
  • Loading branch information...
1 parent 9665a28 commit 063c182297c4e599581cbc8408964d6534aa18c6 @mtdcr mtdcr committed Apr 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 classes/kernel.bbclass
View
@@ -248,8 +248,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"

0 comments on commit 063c182

Please sign in to comment.