summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-03-23 13:56:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-23 17:47:41 +0000
commit42fbaceb449b6902d530259758de1272b3d59184 (patch)
tree4a8fcf82068e3713c57a8dd2f983c8cd109a4389
parentc6db496be65bc1f354e62792ba3daa90d62ad428 (diff)
downloadpoky-42fbaceb449b6902d530259758de1272b3d59184.tar.gz
kernel.bbclass: use symlinks for modutils files
(From OE-Core rev: d5d1508f25299ab215799d85f2ac4b31de69abf6) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 975ae13758..54ed7f71f9 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -407,16 +407,14 @@ python populate_packages_prepend () {
407 # appropriate modprobe commands to the postinst 407 # appropriate modprobe commands to the postinst
408 autoload = d.getVar('module_autoload_%s' % basename, True) 408 autoload = d.getVar('module_autoload_%s' % basename, True)
409 if autoload: 409 if autoload:
410 name = '%s/etc/modutils/%s' % (dvar, basename)
411 f = open(name, 'w')
412 for m in autoload.split():
413 f.write('%s\n' % m)
414 f.close()
415 name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename) 410 name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename)
416 f = open(name, 'w') 411 f = open(name, 'w')
417 for m in autoload.split(): 412 for m in autoload.split():
418 f.write('%s\n' % m) 413 f.write('%s\n' % m)
419 f.close() 414 f.close()
415 modutils_name = '%s/etc/modutils/%s' % (dvar, basename)
416 modutils_target = '../modules-load.d/%s.conf' % (basename)
417 os.symlink(modutils_target, modutils_name)
420 postinst = d.getVar('pkg_postinst_%s' % pkg, True) 418 postinst = d.getVar('pkg_postinst_%s' % pkg, True)
421 if not postinst: 419 if not postinst:
422 bb.fatal("pkg_postinst_%s not defined" % pkg) 420 bb.fatal("pkg_postinst_%s not defined" % pkg)