diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-03-23 10:35:27 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-26 15:05:46 +0200 |
commit | 7c6bca094b8b59a4890ad9e3cc3799c5b9d443a2 (patch) | |
tree | 9ecdaa26462f8f3f588fe20d85edf62a5a099b8b /meta-oe/classes | |
parent | be333f0e2fd25882d20f039a7b26548b61b68bf2 (diff) | |
download | meta-openembedded-7c6bca094b8b59a4890ad9e3cc3799c5b9d443a2.tar.gz |
kernel.bbclass: use symlinks for modutils files
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/kernel.bbclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass index d87b177c7..3636ff087 100644 --- a/meta-oe/classes/kernel.bbclass +++ b/meta-oe/classes/kernel.bbclass | |||
@@ -420,16 +420,14 @@ python populate_packages_prepend () { | |||
420 | # appropriate modprobe commands to the postinst | 420 | # appropriate modprobe commands to the postinst |
421 | autoload = d.getVar('module_autoload_%s' % basename, True) | 421 | autoload = d.getVar('module_autoload_%s' % basename, True) |
422 | if autoload: | 422 | if autoload: |
423 | name = '%s/etc/modutils/%s' % (dvar, basename) | ||
424 | f = open(name, 'w') | ||
425 | for m in autoload.split(): | ||
426 | f.write('%s\n' % m) | ||
427 | f.close() | ||
428 | name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename) | 423 | name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename) |
429 | f = open(name, 'w') | 424 | f = open(name, 'w') |
430 | for m in autoload.split(): | 425 | for m in autoload.split(): |
431 | f.write('%s\n' % m) | 426 | f.write('%s\n' % m) |
432 | f.close() | 427 | f.close() |
428 | modutils_name = '%s/etc/modutils/%s' % (dvar, basename) | ||
429 | modutils_target = '../modules-load.d/%s.conf' % (basename) | ||
430 | os.symlink(modutils_target, modutils_name) | ||
433 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) | 431 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) |
434 | if not postinst: | 432 | if not postinst: |
435 | bb.fatal("pkg_postinst_%s not defined" % pkg) | 433 | bb.fatal("pkg_postinst_%s not defined" % pkg) |