summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-03-24 00:14:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-24 17:45:29 +0000
commitcd369a732e17e57794a89519de6bab3847330630 (patch)
tree04cc79d985d2e7f01f5a0aa91c4e07ccefa181b5
parentfb0a43cd2f0dafd568b98432070954b791f3858c (diff)
downloadpoky-cd369a732e17e57794a89519de6bab3847330630.tar.gz
license.bbclass: Remove the available_licenses() function
It is no longer used in OE-Core. (From OE-Core rev: aa662aae352c65cb5d13172bf98ed4ae3cb46c26) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/license.bbclass15
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
259def 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
274def expand_wildcard_licenses(d, wildcard_licenses): 259def 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