summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass10
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}
260PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev" 260PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev kernel-modules"
261FILES = "" 261FILES = ""
262FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*" 262FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*"
263FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH}" 263FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH}"
264FILES_kernel-vmlinux = "/boot/vmlinux*" 264FILES_kernel-vmlinux = "/boot/vmlinux*"
265FILES_kernel-modules = ""
265RDEPENDS_kernel = "kernel-base" 266RDEPENDS_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}"
272ALLOW_EMPTY_kernel = "1" 273ALLOW_EMPTY_kernel = "1"
273ALLOW_EMPTY_kernel-base = "1" 274ALLOW_EMPTY_kernel-base = "1"
274ALLOW_EMPTY_kernel-image = "1" 275ALLOW_EMPTY_kernel-image = "1"
276ALLOW_EMPTY_kernel-modules = "1"
277DESCRIPTION_kernel-modules = "Kernel modules meta package"
275 278
276pkg_postinst_kernel-image () { 279pkg_postinst_kernel-image () {
277if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then 280if [ ! -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