]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel: Fix packaging issue
authorSaul Wold <sgw@linux.intel.com>
Thu, 19 Apr 2012 19:01:48 +0000 (12:01 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Apr 2012 14:51:35 +0000 (15:51 +0100)
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

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/kernel.bbclass

index 3519e7c29610076b3580dd679f59797f78801b7a..e8f0f9a44ff5fae6d8fd2b20571b278a35c41ba0 100644 (file)
@@ -464,7 +464,7 @@ python populate_packages_prepend () {
        # avoid warnings. removedirs only raises an OSError if an empty
        # directory cannot be removed.
        dvar = d.getVar('PKGD', True)
-       for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]:
+       for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc" % (dvar)]:
                if len(os.listdir(dir)) == 0:
                        os.rmdir(dir)