[oe-commits] org.oe.dev kernel.bbclass: When processing module_autoload's, also try canonical name (with dashes).

pfalcon commit openembedded-commits at lists.openembedded.org
Sat Dec 8 00:51:23 UTC 2007


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.

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: edca92923dc4906c4e69c4be7fb77907463095d8
ViewMTN: http://monotone.openembedded.org/revision/info/edca92923dc4906c4e69c4be7fb77907463095d8
Files:
1
classes/kernel.bbclass
Diffs:

#
# mt diff -r824df2058b58d2c073e156bbef26e2ca4e3adc4b -redca92923dc4906c4e69c4be7fb77907463095d8
#
# 
# 
# patch "classes/kernel.bbclass"
#  from [febd2ce49ceb10c4de3871e817579827e4757211]
#    to [63f744845e75d5fb5dae11b765f31d30ad820ace]
# 
============================================================
--- classes/kernel.bbclass	febd2ce49ceb10c4de3871e817579827e4757211
+++ classes/kernel.bbclass	63f744845e75d5fb5dae11b765f31d30ad820ace
@@ -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')






More information about the Openembedded-commits mailing list