summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-04-19 12:01:48 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-24 15:51:35 +0100
commit963742f5a9bce2dfedd58350af754d256e2211cb (patch)
treee0224570cd4e4523e11a0a409281455a0db43c27 /meta/classes
parente2e297d8a3b5a89b5730432e998669341c50c172 (diff)
downloadopenembedded-core-963742f5a9bce2dfedd58350af754d256e2211cb.tar.gz
openembedded-core-963742f5a9bce2dfedd58350af754d256e2211cb.tar.bz2
openembedded-core-963742f5a9bce2dfedd58350af754d256e2211cb.tar.xz
openembedded-core-963742f5a9bce2dfedd58350af754d256e2211cb.zip
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 3519e7c29..e8f0f9a44 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -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)