summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2015-01-15 22:40:53 +0100
committerAndreas Oberritter <obi@opendreambox.org>2015-02-23 17:15:54 +0100
commitca8919f3ee6f0a8be8289a6dbc96ae2bf551f3ef (patch)
tree87ec8d0ab636d4855b5a99017bdf74c691624308
parent78a3af315bde7486dd8283872952463b83ab540e (diff)
downloadopenembedded-core-contrib-ca8919f3ee6f0a8be8289a6dbc96ae2bf551f3ef.tar.gz
openembedded-core-contrib-ca8919f3ee6f0a8be8289a6dbc96ae2bf551f3ef.tar.bz2
openembedded-core-contrib-ca8919f3ee6f0a8be8289a6dbc96ae2bf551f3ef.zip
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@opendreambox.org>
-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 db9e3d831f..3e803e4c04 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