kernel-module-split: Allow custom suffix for package names
PATCH v2 1/1 kernel-module-split: Allow custom suffix for package names
This makes it possible to restore the behaviour changed by commit 78cde87 "kernel-module-split: Append KERNEL_VERSION string to kernel module name".
Signed-off-by Andreas Oberritter <[email protected]>
---
v2: rebased due to conflict with commit 87d03ff
meta/classes/kernel-module-split.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/kernel-module-split.bbclass +3 -1
@@ -33,6 +33,7 @@ PACKAGESPLITFUNCS_prepend = "split_kernel_module_packages " KERNEL_MODULES_META_PACKAGE ?= "kernel-modules" KERNEL_MODULE_PACKAGE_PREFIX ?= "" +KERNEL_MODULE_PACKAGE_SUFFIX ?= "-${KERNEL_VERSION}" KERNEL_MODULE_PROVIDE_VIRTUAL ?= "1" python split_kernel_module_packages () {
@@ -131,7 +132,8 @@ python split_kernel_module_packages () { module_regex = '^(.*)\.k?o$' module_pattern_prefix = d.getVar('KERNEL_MODULE_PACKAGE_PREFIX') - module_pattern = module_pattern_prefix + 'kernel-module-%s-' + d.getVar("KERNEL_VERSION") + module_pattern_suffix = d.getVar('KERNEL_MODULE_PACKAGE_SUFFIX') + module_pattern = module_pattern_prefix + 'kernel-module-%s' + module_pattern_suffix postinst = d.getVar('pkg_postinst_modules') postrm = d.getVar('pkg_postrm_modules')
Signature · 1 line
2.7.4