mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
fb0a43cd2f
commit
cd369a732e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user