summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2015-03-23 16:39:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-25 12:39:39 +0000
commit68bc42113de55bc1724c13c7a4646a75d2cab7be (patch)
treeabc77080bcabba4f508579ad75a6b61c6f1e3d0e /meta/classes
parent65a8408155fa490a7f5438a1aa8c501433fe2c33 (diff)
downloadpoky-68bc42113de55bc1724c13c7a4646a75d2cab7be.tar.gz
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. (From OE-Core rev: 2e3768075878b8fc0f7642cae89ab7b9d03fe52c) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-module-split.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass
index 32b80856e0..cd42dbe846 100644
--- a/meta/classes/kernel-module-split.bbclass
+++ b/meta/classes/kernel-module-split.bbclass
@@ -148,7 +148,7 @@ python split_kernel_module_packages () {
148 postinst = d.getVar('pkg_postinst_%s' % pkg, True) 148 postinst = d.getVar('pkg_postinst_%s' % pkg, True)
149 if not postinst: 149 if not postinst:
150 bb.fatal("pkg_postinst_%s not defined" % pkg) 150 bb.fatal("pkg_postinst_%s not defined" % pkg)
151 postinst += d.getVar('autoload_postinst_fragment', True) % autoload 151 postinst += d.getVar('autoload_postinst_fragment', True) % (autoload or basename)
152 d.setVar('pkg_postinst_%s' % pkg, postinst) 152 d.setVar('pkg_postinst_%s' % pkg, postinst)
153 153
154 # Write out any modconf fragment 154 # Write out any modconf fragment