diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-04-19 12:01:48 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-26 10:05:12 +0100 |
commit | c65dc384179b9aa86224e3a40e87fd4c1986792c (patch) | |
tree | 9cfdbdfb4cafd02860444ed550c54fd9b317448c /meta/classes | |
parent | 8b6f915ebb5a3ad012d1eb1100a13925e99591d5 (diff) | |
download | poky-c65dc384179b9aa86224e3a40e87fd4c1986792c.tar.gz |
kernel: Fix packaging issue
Remove /etc since it is empty, when creating a machine that does not
deliver any module config files, the /etc is empty and is then warned
about not being shipped, so we remove it.
This occurs in the routerstationpro with the following warning:
WARNING: For recipe linux-yocto, the following files/directories were installed but not shipped in any package:
WARNING: /etc
(From OE-Core rev: 963742f5a9bce2dfedd58350af754d256e2211cb)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 3519e7c296..e8f0f9a44f 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -464,7 +464,7 @@ python populate_packages_prepend () { | |||
464 | # avoid warnings. removedirs only raises an OSError if an empty | 464 | # avoid warnings. removedirs only raises an OSError if an empty |
465 | # directory cannot be removed. | 465 | # directory cannot be removed. |
466 | dvar = d.getVar('PKGD', True) | 466 | dvar = d.getVar('PKGD', True) |
467 | for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]: | 467 | for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc" % (dvar)]: |
468 | if len(os.listdir(dir)) == 0: | 468 | if len(os.listdir(dir)) == 0: |
469 | os.rmdir(dir) | 469 | os.rmdir(dir) |
470 | 470 | ||