[OE-core] [PATCH 5/6] license.bbclass: Add function get_deployed_files
mariano.lopez at linux.intel.com
mariano.lopez at linux.intel.com
Mon Nov 9 10:23:50 UTC 2015
From: Mariano Lopez <mariano.lopez at linux.intel.com>
This function will get the files that were deployed in
the image using the sstate-control manifest file. This
will give a better view of what was deployed in the image.
[YOCTO #6772]
Signed-off-by: Mariano Lopez <mariano.lopez at linux.intel.com>
---
meta/classes/license.bbclass | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index d384491..463dd54 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -141,6 +141,19 @@ def get_boot_dependencies(d):
break
return depends
+def get_deployed_files(d, man_file):
+ """ This will get the files deployed from the sstate manifest """
+
+ dep_files = ""
+ excluded_files = ["README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt"]
+ with open(man_file, "r") as manifest:
+ all_files = manifest.read()
+ for f in all_files.splitlines():
+ if ((not (os.path.islink(f) or os.path.isdir(f))) and
+ not os.path.basename(f) in excluded_files):
+ dep_files = "%s %s" % (dep_files, os.path.basename(f))
+ return dep_files
+
def write_license_files(d, license_manifest, pkg_dic):
import re
--
1.8.4.5
More information about the Openembedded-core
mailing list