diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 8c5aaf5848..a47fe93cb7 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -257,11 +257,12 @@ EXPORT_FUNCTIONS do_compile do_install do_configure | |||
257 | 257 | ||
258 | # kernel-base becomes kernel-${KERNEL_VERSION} | 258 | # kernel-base becomes kernel-${KERNEL_VERSION} |
259 | # kernel-image becomes kernel-image-${KERNEL_VERISON} | 259 | # kernel-image becomes kernel-image-${KERNEL_VERISON} |
260 | PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev" | 260 | PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev kernel-modules" |
261 | FILES = "" | 261 | FILES = "" |
262 | FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*" | 262 | FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*" |
263 | FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH}" | 263 | FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH}" |
264 | FILES_kernel-vmlinux = "/boot/vmlinux*" | 264 | FILES_kernel-vmlinux = "/boot/vmlinux*" |
265 | FILES_kernel-modules = "" | ||
265 | RDEPENDS_kernel = "kernel-base" | 266 | RDEPENDS_kernel = "kernel-base" |
266 | # Allow machines to override this dependency if kernel image files are | 267 | # Allow machines to override this dependency if kernel image files are |
267 | # not wanted in images as standard | 268 | # not wanted in images as standard |
@@ -272,6 +273,8 @@ RPROVIDES_kernel-base += "kernel-${KERNEL_VERSION}" | |||
272 | ALLOW_EMPTY_kernel = "1" | 273 | ALLOW_EMPTY_kernel = "1" |
273 | ALLOW_EMPTY_kernel-base = "1" | 274 | ALLOW_EMPTY_kernel-base = "1" |
274 | ALLOW_EMPTY_kernel-image = "1" | 275 | ALLOW_EMPTY_kernel-image = "1" |
276 | ALLOW_EMPTY_kernel-modules = "1" | ||
277 | DESCRIPTION_kernel-modules = "Kernel modules meta package" | ||
275 | 278 | ||
276 | pkg_postinst_kernel-image () { | 279 | pkg_postinst_kernel-image () { |
277 | if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then | 280 | if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then |
@@ -463,8 +466,6 @@ python populate_packages_prepend () { | |||
463 | 466 | ||
464 | import re | 467 | import re |
465 | metapkg = "kernel-modules" | 468 | metapkg = "kernel-modules" |
466 | d.setVar('ALLOW_EMPTY_' + metapkg, "1") | ||
467 | d.setVar('FILES_' + metapkg, "") | ||
468 | blacklist = [ 'kernel-dev', 'kernel-image', 'kernel-base', 'kernel-vmlinux' ] | 469 | blacklist = [ 'kernel-dev', 'kernel-image', 'kernel-base', 'kernel-vmlinux' ] |
469 | for l in module_deps.values(): | 470 | for l in module_deps.values(): |
470 | for i in l: | 471 | for i in l: |
@@ -476,9 +477,6 @@ python populate_packages_prepend () { | |||
476 | if not pkg in blacklist and not pkg in metapkg_rdepends: | 477 | if not pkg in blacklist and not pkg in metapkg_rdepends: |
477 | metapkg_rdepends.append(pkg) | 478 | metapkg_rdepends.append(pkg) |
478 | d.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends)) | 479 | d.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends)) |
479 | d.setVar('DESCRIPTION_' + metapkg, 'Kernel modules meta package') | ||
480 | packages.append(metapkg) | ||
481 | d.setVar('PACKAGES', ' '.join(packages)) | ||
482 | } | 480 | } |
483 | 481 | ||
484 | # Support checking the kernel size since some kernels need to reside in partitions | 482 | # Support checking the kernel size since some kernels need to reside in partitions |