diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-03-23 13:52:01 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-26 15:05:46 +0200 |
commit | 7aeea5345bfeb2b1420480ab90657786fd2bd815 (patch) | |
tree | 7f691be8f1d4ccdf44bc68cd943c39a038432654 /meta-oe/classes | |
parent | 7c6bca094b8b59a4890ad9e3cc3799c5b9d443a2 (diff) | |
download | meta-openembedded-7aeea5345bfeb2b1420480ab90657786fd2bd815.tar.gz |
kernel.bbclass: don't create /etc/modutils/*
* update-modules was updated to read /etc/modules-load.d/*.conf
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/kernel.bbclass | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass index 3636ff087..9ce2f44c0 100644 --- a/meta-oe/classes/kernel.bbclass +++ b/meta-oe/classes/kernel.bbclass | |||
@@ -128,7 +128,6 @@ kernel_do_install() { | |||
128 | install -m 0644 .config ${D}/boot/config-${KERNEL_VERSION} | 128 | install -m 0644 .config ${D}/boot/config-${KERNEL_VERSION} |
129 | install -m 0644 vmlinux ${D}/boot/vmlinux-${KERNEL_VERSION} | 129 | install -m 0644 vmlinux ${D}/boot/vmlinux-${KERNEL_VERSION} |
130 | [ -e Module.symvers ] && install -m 0644 Module.symvers ${D}/boot/Module.symvers-${KERNEL_VERSION} | 130 | [ -e Module.symvers ] && install -m 0644 Module.symvers ${D}/boot/Module.symvers-${KERNEL_VERSION} |
131 | install -d ${D}/etc/modutils | ||
132 | install -d ${D}/etc/modules-load.d | 131 | install -d ${D}/etc/modules-load.d |
133 | install -d ${D}/etc/modprobe.d | 132 | install -d ${D}/etc/modprobe.d |
134 | 133 | ||
@@ -416,7 +415,7 @@ python populate_packages_prepend () { | |||
416 | 415 | ||
417 | dvar = d.getVar('PKGD', True) | 416 | dvar = d.getVar('PKGD', True) |
418 | 417 | ||
419 | # If autoloading is requested, output /etc/modutils/<name> and append | 418 | # If autoloading is requested, output /etc/modules-load.d/<name>.conf and append |
420 | # appropriate modprobe commands to the postinst | 419 | # appropriate modprobe commands to the postinst |
421 | autoload = d.getVar('module_autoload_%s' % basename, True) | 420 | autoload = d.getVar('module_autoload_%s' % basename, True) |
422 | if autoload: | 421 | if autoload: |
@@ -425,9 +424,6 @@ python populate_packages_prepend () { | |||
425 | for m in autoload.split(): | 424 | for m in autoload.split(): |
426 | f.write('%s\n' % m) | 425 | f.write('%s\n' % m) |
427 | f.close() | 426 | 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) | ||
431 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) | 427 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) |
432 | if not postinst: | 428 | if not postinst: |
433 | bb.fatal("pkg_postinst_%s not defined" % pkg) | 429 | bb.fatal("pkg_postinst_%s not defined" % pkg) |
@@ -443,7 +439,7 @@ python populate_packages_prepend () { | |||
443 | f.close() | 439 | f.close() |
444 | 440 | ||
445 | files = d.getVar('FILES_%s' % pkg, True) | 441 | files = d.getVar('FILES_%s' % pkg, True) |
446 | files = "%s /etc/modutils/%s /etc/modutils/%s.conf /etc/modules-load.d/%s.conf /etc/modprobe.d/%s.conf" % (files, basename, basename, basename, basename) | 442 | files = "%s /etc/modules-load.d/%s.conf /etc/modprobe.d/%s.conf" % (files, basename, basename) |
447 | d.setVar('FILES_%s' % pkg, files) | 443 | d.setVar('FILES_%s' % pkg, files) |
448 | 444 | ||
449 | if vals.has_key("description"): | 445 | if vals.has_key("description"): |
@@ -469,11 +465,11 @@ python populate_packages_prepend () { | |||
469 | do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.cis$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='') | 465 | do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.cis$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='') |
470 | do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='update-modules kernel-%s' % d.getVar("KERNEL_VERSION", True)) | 466 | do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='update-modules kernel-%s' % d.getVar("KERNEL_VERSION", True)) |
471 | 467 | ||
472 | # If modutils and modprobe.d are empty at this point, remove them to | 468 | # If modules-load.d and modprobe.d are empty at this point, remove them to |
473 | # avoid warnings. removedirs only raises an OSError if an empty | 469 | # avoid warnings. removedirs only raises an OSError if an empty |
474 | # directory cannot be removed. | 470 | # directory cannot be removed. |
475 | dvar = d.getVar('PKGD', True) | 471 | dvar = d.getVar('PKGD', True) |
476 | for dir in ["%s/etc/modutils" % (dvar), "%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]: | 472 | for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]: |
477 | if len(os.listdir(dir)) == 0: | 473 | if len(os.listdir(dir)) == 0: |
478 | os.rmdir(dir) | 474 | os.rmdir(dir) |
479 | 475 | ||