]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-module-split.bbclass: fix autoloading from postinst script
authorAndreas Oberritter <obi@opendreambox.org>
Mon, 23 Mar 2015 15:39:06 +0000 (16:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Mar 2015 10:08:48 +0000 (10:08 +0000)
When using KERNEL_MODULE_AUTOLOAD, autoload was empty, causing
"modprobe None" to get appended to the postinst script.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-module-split.bbclass

index 32b80856e03afc69c0163b5eed0c4b43eb3018b0..cd42dbe8469e2eb51f79ffef349ed6de6789070d 100644 (file)
@@ -148,7 +148,7 @@ python split_kernel_module_packages () {
             postinst = d.getVar('pkg_postinst_%s' % pkg, True)
             if not postinst:
                 bb.fatal("pkg_postinst_%s not defined" % pkg)
-            postinst += d.getVar('autoload_postinst_fragment', True) % autoload
+            postinst += d.getVar('autoload_postinst_fragment', True) % (autoload or basename)
             d.setVar('pkg_postinst_%s' % pkg, postinst)
 
         # Write out any modconf fragment