diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/license.bbclass | 15 |
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 | ||
228 | def 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 | |||
228 | python do_populate_lic() { | 243 | python do_populate_lic() { |
229 | """ | 244 | """ |
230 | Populate LICENSE_DIRECTORY with licenses. | 245 | Populate LICENSE_DIRECTORY with licenses. |