[oe-commits] Andreas Oberritter : kernel-module-split.bbclass: fix autoloading from postinst script

git at git.openembedded.org git at git.openembedded.org
Thu Apr 2 11:03:45 UTC 2015


Module: openembedded-core.git
Branch: master-next-1.9
Commit: 2e3768075878b8fc0f7642cae89ab7b9d03fe52c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2e3768075878b8fc0f7642cae89ab7b9d03fe52c

Author: Andreas Oberritter <obi at opendreambox.org>
Date:   Mon Mar 23 16:39:06 2015 +0100

kernel-module-split.bbclass: fix autoloading from postinst script

When using KERNEL_MODULE_AUTOLOAD, autoload was empty, causing
"modprobe None" to get appended to the postinst script.

Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/kernel-module-split.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass
index 32b8085..cd42dbe 100644
--- a/meta/classes/kernel-module-split.bbclass
+++ b/meta/classes/kernel-module-split.bbclass
@@ -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



More information about the Openembedded-commits mailing list