diff options
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r-- | meta/classes/license.bbclass | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 813e1ea4f5..0c637e966e 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -256,21 +256,6 @@ def canonical_license(d, license): | |||
256 | """ | 256 | """ |
257 | return d.getVarFlag('SPDXLICENSEMAP', license) or license | 257 | return d.getVarFlag('SPDXLICENSEMAP', license) or license |
258 | 258 | ||
259 | def available_licenses(d): | ||
260 | """ | ||
261 | Return the available licenses by searching the directories specified by | ||
262 | COMMON_LICENSE_DIR and LICENSE_PATH. | ||
263 | """ | ||
264 | lic_dirs = ((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' + | ||
265 | (d.getVar('LICENSE_PATH') or '')).split() | ||
266 | |||
267 | licenses = [] | ||
268 | for lic_dir in lic_dirs: | ||
269 | licenses += os.listdir(lic_dir) | ||
270 | |||
271 | licenses = sorted(licenses) | ||
272 | return licenses | ||
273 | |||
274 | def expand_wildcard_licenses(d, wildcard_licenses): | 259 | def expand_wildcard_licenses(d, wildcard_licenses): |
275 | """ | 260 | """ |
276 | There are some common wildcard values users may want to use. Support them | 261 | There are some common wildcard values users may want to use. Support them |