]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
license.bbclass: Remove the available_licenses() function
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Wed, 23 Mar 2022 23:14:58 +0000 (00:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Mar 2022 17:41:41 +0000 (17:41 +0000)
It is no longer used in OE-Core.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes/license.bbclass

index 813e1ea4f5a2469cc6e9949e1019577e12b9ddb5..0c637e966ebeb0af1ceb0816ba0e19724ebffed0 100644 (file)
@@ -256,21 +256,6 @@ def canonical_license(d, license):
     """
     return d.getVarFlag('SPDXLICENSEMAP', license) or license
 
-def available_licenses(d):
-    """
-    Return the available licenses by searching the directories specified by
-    COMMON_LICENSE_DIR and LICENSE_PATH.
-    """
-    lic_dirs = ((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' +
-                (d.getVar('LICENSE_PATH') or '')).split()
-
-    licenses = []
-    for lic_dir in lic_dirs:
-        licenses += os.listdir(lic_dir)
-
-    licenses = sorted(licenses)
-    return licenses
-
 def expand_wildcard_licenses(d, wildcard_licenses):
     """
     There are some common wildcard values users may want to use. Support them