diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2012-03-23 06:48:42 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-23 07:56:21 +0100 |
commit | efc1626c8ec48149437ab46228f52eeaf43c9416 (patch) | |
tree | 28eb4f4eff923d7a61c7073867d1a9dcca7dd319 /meta-oe | |
parent | 3ec761eeb334504ea420744900c287acbfb6ee26 (diff) | |
download | meta-openembedded-efc1626c8ec48149437ab46228f52eeaf43c9416.tar.gz |
kernel.bbclass: import QA warning fix for unpackaged files from oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/classes/kernel.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass index c6fc197aa..cd36e5590 100644 --- a/meta-oe/classes/kernel.bbclass +++ b/meta-oe/classes/kernel.bbclass | |||
@@ -110,6 +110,8 @@ kernel_do_install() { | |||
110 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install | 110 | oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install |
111 | rm -f "${D}/lib/modules/${KERNEL_VERSION}/modules.order" | 111 | rm -f "${D}/lib/modules/${KERNEL_VERSION}/modules.order" |
112 | rm -f "${D}/lib/modules/${KERNEL_VERSION}/modules.builtin" | 112 | rm -f "${D}/lib/modules/${KERNEL_VERSION}/modules.builtin" |
113 | rm "${D}/lib/modules/${KERNEL_VERSION}/build" | ||
114 | rm "${D}/lib/modules/${KERNEL_VERSION}/source" | ||
113 | else | 115 | else |
114 | bbnote "no modules to install" | 116 | bbnote "no modules to install" |
115 | fi | 117 | fi |
@@ -455,6 +457,14 @@ python populate_packages_prepend () { | |||
455 | do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.cis$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='') | 457 | do_split_packages(d, root='/lib/firmware', file_regex='^(.*)\.cis$', output_pattern='kernel-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='') |
456 | 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)) | 458 | 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)) |
457 | 459 | ||
460 | # If modutils and modprobe.d are empty at this point, remove them to | ||
461 | # avoid warnings. removedirs only raises an OSError if an empty | ||
462 | # directory cannot be removed. | ||
463 | dvar = d.getVar('PKGD', True) | ||
464 | for dir in ["%s/etc/modutils" % (dvar), "%s/etc/modprobe.d" % (dvar)]: | ||
465 | if len(os.listdir(dir)) == 0: | ||
466 | os.rmdir(dir) | ||
467 | |||
458 | import re | 468 | import re |
459 | metapkg = "kernel-modules" | 469 | metapkg = "kernel-modules" |
460 | d.setVar('ALLOW_EMPTY_' + metapkg, "1") | 470 | d.setVar('ALLOW_EMPTY_' + metapkg, "1") |