diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-03-23 13:56:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-23 17:45:38 +0000 |
commit | d5d1508f25299ab215799d85f2ac4b31de69abf6 (patch) | |
tree | 04aac48690d36d6365e3699a4d55b748ec2b6857 /meta/classes/kernel.bbclass | |
parent | 1487af02b92278dec2eb539377cc29bb1b404153 (diff) | |
download | openembedded-core-d5d1508f25299ab215799d85f2ac4b31de69abf6.tar.gz openembedded-core-d5d1508f25299ab215799d85f2ac4b31de69abf6.tar.bz2 openembedded-core-d5d1508f25299ab215799d85f2ac4b31de69abf6.zip |
kernel.bbclass: use symlinks for modutils files
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 8 |
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 () { # appropriate modprobe commands to the postinst autoload = d.getVar('module_autoload_%s' % basename, True) 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) f = open(name, 'w') for m in autoload.split(): f.write('%s\n' % m) 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) if not postinst: bb.fatal("pkg_postinst_%s not defined" % pkg) |