summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-module-split.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass
index 0e4e110f0c..fd04b72f03 100644
--- a/meta/classes/kernel-module-split.bbclass
+++ b/meta/classes/kernel-module-split.bbclass
@@ -31,6 +31,7 @@ PACKAGESPLITFUNCS_prepend = "split_kernel_module_packages "
31KERNEL_MODULES_META_PACKAGE ?= "kernel-modules" 31KERNEL_MODULES_META_PACKAGE ?= "kernel-modules"
32 32
33KERNEL_MODULE_PACKAGE_PREFIX ?= "" 33KERNEL_MODULE_PACKAGE_PREFIX ?= ""
34KERNEL_MODULE_PROVIDE_VIRTUAL ?= "1"
34 35
35python split_kernel_module_packages () { 36python split_kernel_module_packages () {
36 import re 37 import re
@@ -119,10 +120,16 @@ python split_kernel_module_packages () {
119 # Avoid automatic -dev recommendations for modules ending with -dev. 120 # Avoid automatic -dev recommendations for modules ending with -dev.
120 d.setVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs', 1) 121 d.setVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs', 1)
121 122
123 # Provide virtual package without postfix
124 providevirt = d.getVar('KERNEL_MODULE_PROVIDE_VIRTUAL', True)
125 if providevirt == "1":
126 postfix = format.split('%s')[1]
127 d.setVar('RPROVIDES_' + pkg, pkg.replace(postfix, ''))
128
122 module_regex = '^(.*)\.k?o$' 129 module_regex = '^(.*)\.k?o$'
123 130
124 module_pattern_prefix = d.getVar('KERNEL_MODULE_PACKAGE_PREFIX') 131 module_pattern_prefix = d.getVar('KERNEL_MODULE_PACKAGE_PREFIX')
125 module_pattern = module_pattern_prefix + 'kernel-module-%s' 132 module_pattern = module_pattern_prefix + 'kernel-module-%s-' + d.getVar("KERNEL_VERSION", True)
126 133
127 postinst = d.getVar('pkg_postinst_modules') 134 postinst = d.getVar('pkg_postinst_modules')
128 postrm = d.getVar('pkg_postrm_modules') 135 postrm = d.getVar('pkg_postrm_modules')