summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-11-12 14:21:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:32:01 +0000
commitefdab526245e512d9163758fadb971e0aee86710 (patch)
tree5c82e5f2c0f93d1c918b35be61cba83b3d7494d8 /meta
parentcc0d0441094115debe823a81c7c0bca3184f0551 (diff)
downloadpoky-efdab526245e512d9163758fadb971e0aee86710.tar.gz
license.bbclass: Add function get_deployed_files
This function will get the files that were deployed using the sstate-control manifest file. This will give a better view of what was deployed next to the image. [YOCTO #6772] (From OE-Core rev: f1a0a86ea2db6f16d9b643636a8973aaeb85e4a6) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/license.bbclass15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index ff97098e2f..48d457e824 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -225,6 +225,21 @@ def get_boot_dependencies(d):
225 break 225 break
226 return depends 226 return depends
227 227
228def get_deployed_files(man_file):
229 """
230 Get the files deployed from the sstate manifest
231 """
232
233 dep_files = []
234 excluded_files = ["README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt"]
235 with open(man_file, "r") as manifest:
236 all_files = manifest.read()
237 for f in all_files.splitlines():
238 if ((not (os.path.islink(f) or os.path.isdir(f))) and
239 not os.path.basename(f) in excluded_files):
240 dep_files.append(os.path.basename(f))
241 return dep_files
242
228python do_populate_lic() { 243python do_populate_lic() {
229 """ 244 """
230 Populate LICENSE_DIRECTORY with licenses. 245 Populate LICENSE_DIRECTORY with licenses.