aboutsummaryrefslogtreecommitdiffstats
path: root/classes/kernel.bbclass
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-12-07 20:44:19 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-12-07 20:44:19 +0000
commit8457558134eea81f2274f4464b0984b5307a492b (patch)
tree859f4405cff69450560710fca5ab74d93449d29a /classes/kernel.bbclass
parent27abf6590e4a7b9620cd125e6d3197c7d800b9ac (diff)
downloadopenembedded-8457558134eea81f2274f4464b0984b5307a492b.tar.gz
kernel.bbclass: When processing module_autoload's, also try canonical name (with dashes).
* To remind, modprobe accepts both '-' & '_' in module names interchangeably. Actual module files use both. Still, in OE, some consistency is needed. And its natural to use dash as the separator, as package names already use that. So, if canonical naming is used, it all will "just work", refardless of what separator chars specific kernel module filename randomly contains.
Diffstat (limited to 'classes/kernel.bbclass')
-rw-r--r--classes/kernel.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index a1f165c73a..c00d0f3f58 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -349,6 +349,9 @@ python populate_packages_prepend () {
# If autoloading is requested, output /etc/modutils/<name> and append
# appropriate modprobe commands to the postinst
autoload = bb.data.getVar('module_autoload_%s' % basename, d, 1)
+ if not autoload:
+ # Also, try canonical name with dashes
+ autoload = bb.data.getVar('module_autoload_%s' % basename.replace('_', '-'), d, 1)
if autoload:
name = '%s/etc/modutils/%s' % (dvar, basename)
f = open(name, 'w')