]> 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)
committerScott Garman <scott.a.garman@intel.com>
Mon, 24 Sep 2012 16:51:12 +0000 (09:51 -0700)
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 101f6151780de9ba9bf557918a7daa2c605c8a41..b3e19c48a179b38fe4355fe892d68a191d9f212f 100644 (file)
@@ -465,7 +465,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)