summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-04-19 19:01:48 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-28 15:53:13 (GMT)
commitb0f05958fc051f22721d4d10d8c1fd562d4d3b8b (patch)
treefdc1c5bb6afd0b481a6c711f2b4514a0c3d0be8c /meta/classes
parent57cdce3108052d1cccba196da63f4a02fae35dc7 (diff)
downloadpoky-b0f05958fc051f22721d4d10d8c1fd562d4d3b8b.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: 961498e3b4c4a93070bf278e67fc48c02333cd63) 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.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 101f615..b3e19c4 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -465,7 +465,7 @@ python populate_packages_prepend () {
465 # avoid warnings. removedirs only raises an OSError if an empty 465 # avoid warnings. removedirs only raises an OSError if an empty
466 # directory cannot be removed. 466 # directory cannot be removed.
467 dvar = d.getVar('PKGD', True) 467 dvar = d.getVar('PKGD', True)
468 for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]: 468 for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc" % (dvar)]:
469 if len(os.listdir(dir)) == 0: 469 if len(os.listdir(dir)) == 0:
470 os.rmdir(dir) 470 os.rmdir(dir)
471 471