mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
kernel.bbclass: use symlinks for modutils files
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -420,16 +420,14 @@ python populate_packages_prepend () {
|
|||||||
# appropriate modprobe commands to the postinst
|
# appropriate modprobe commands to the postinst
|
||||||
autoload = d.getVar('module_autoload_%s' % basename, True)
|
autoload = d.getVar('module_autoload_%s' % basename, True)
|
||||||
if autoload:
|
if autoload:
|
||||||
name = '%s/etc/modutils/%s' % (dvar, basename)
|
|
||||||
f = open(name, 'w')
|
|
||||||
for m in autoload.split():
|
|
||||||
f.write('%s\n' % m)
|
|
||||||
f.close()
|
|
||||||
name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename)
|
name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename)
|
||||||
f = open(name, 'w')
|
f = open(name, 'w')
|
||||||
for m in autoload.split():
|
for m in autoload.split():
|
||||||
f.write('%s\n' % m)
|
f.write('%s\n' % m)
|
||||||
f.close()
|
f.close()
|
||||||
|
modutils_name = '%s/etc/modutils/%s' % (dvar, basename)
|
||||||
|
modutils_target = '../modules-load.d/%s.conf' % (basename)
|
||||||
|
os.symlink(modutils_target, modutils_name)
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg, True)
|
postinst = d.getVar('pkg_postinst_%s' % pkg, True)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
bb.fatal("pkg_postinst_%s not defined" % pkg)
|
bb.fatal("pkg_postinst_%s not defined" % pkg)
|
||||||
|
|||||||
Reference in New Issue
Block a user