[oe-commits] Saul Wold : kernel: Fix packaging issue

git at git.openembedded.org git at git.openembedded.org
Fri Sep 28 16:00:12 UTC 2012


Module: openembedded-core.git
Branch: denzil
Commit: 961498e3b4c4a93070bf278e67fc48c02333cd63
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=961498e3b4c4a93070bf278e67fc48c02333cd63

Author: Saul Wold <sgw at linux.intel.com>
Date:   Thu Apr 19 12:01:48 2012 -0700

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 at linux.intel.com>

---

 meta/classes/kernel.bbclass |    2 +-
 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 () {
 	# 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)
 





More information about the Openembedded-commits mailing list