diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel-module-split.bbclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass index 0c045c91e9..9a95b72744 100644 --- a/meta/classes/kernel-module-split.bbclass +++ b/meta/classes/kernel-module-split.bbclass | |||
@@ -132,12 +132,18 @@ python split_kernel_module_packages () { | |||
132 | # appropriate modprobe commands to the postinst | 132 | # appropriate modprobe commands to the postinst |
133 | autoloadlist = (d.getVar("KERNEL_MODULE_AUTOLOAD", True) or "").split() | 133 | autoloadlist = (d.getVar("KERNEL_MODULE_AUTOLOAD", True) or "").split() |
134 | autoload = d.getVar('module_autoload_%s' % basename, True) | 134 | autoload = d.getVar('module_autoload_%s' % basename, True) |
135 | if autoload: | 135 | if autoload and autoload == basename: |
136 | bb.error("KERNEL_MODULE_AUTOLOAD has replaced module_autoload_%s, please replace it!" % basename) | 136 | bb.warn("module_autoload_%s was replaced by KERNEL_MODULE_AUTOLOAD for cases where basename == module name, please drop it" % basename) |
137 | if autoload and basename not in autoloadlist: | ||
138 | bb.warn("module_autoload_%s is defined but '%s' isn't included in KERNEL_MODULE_AUTOLOAD, please add it there" % (basename, basename)) | ||
137 | if basename in autoloadlist: | 139 | if basename in autoloadlist: |
138 | name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename) | 140 | name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename) |
139 | f = open(name, 'w') | 141 | f = open(name, 'w') |
140 | f.write('%s\n' % basename) | 142 | if autoload: |
143 | for m in autoload.split(): | ||
144 | f.write('%s\n' % m) | ||
145 | else: | ||
146 | f.write('%s\n' % basename) | ||
141 | f.close() | 147 | f.close() |
142 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) | 148 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) |
143 | if not postinst: | 149 | if not postinst: |