summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-04-19 12:01:48 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2012-04-26 09:17:27 +0200
commit21d048aecfe72b6f15965906db988e9300fad68a (patch)
tree5b6ade20d0f85c67a8f99edf41a2911c41b225c8 /meta-oe/classes
parentc557b72f6c82bd65cff8085571eb14659c90e46d (diff)
downloadmeta-openembedded-21d048aecfe72b6f15965906db988e9300fad68a.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 Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r--meta-oe/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index 4b61c0c49..b7e9f54a8 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -467,7 +467,7 @@ python populate_packages_prepend () {
467 # avoid warnings. removedirs only raises an OSError if an empty 467 # avoid warnings. removedirs only raises an OSError if an empty
468 # directory cannot be removed. 468 # directory cannot be removed.
469 dvar = d.getVar('PKGD', True) 469 dvar = d.getVar('PKGD', True)
470 for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]: 470 for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc" % (dvar)]:
471 if len(os.listdir(dir)) == 0: 471 if len(os.listdir(dir)) == 0:
472 os.rmdir(dir) 472 os.rmdir(dir)
473 473