blob: 991fb6cc231b5223489ec4d3f8953f48be208409 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# Standards are great! Everyone has their own. In an effort to standardize licensing
2# names, common-licenses will use the SPDX standard license names. In order to not
3# break the non-standardized license names that we find in LICENSE, we'll set
Andrew Geissler82c905d2020-04-13 13:39:40 -05004# up a bunch of VarFlags to accommodate non-SPDX license names.
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005#
6# We should really discuss standardizing this field, but that's a longer term goal.
7# For now, we can do this and it should grab the most common LICENSE naming variations.
8#
9# We should NEVER have a GPL/LGPL without a version!!!!
10# Any mapping to MPL/LGPL/GPL should be fixed
11
12# AGPL variations
Andrew Geissler90fd73c2021-03-05 15:25:55 -060013SPDXLICENSEMAP[AGPL-3] = "AGPL-3.0-only"
14SPDXLICENSEMAP[AGPL-3+] = "AGPL-3.0-or-later"
15SPDXLICENSEMAP[AGPLv3] = "AGPL-3.0-only"
16SPDXLICENSEMAP[AGPLv3+] = "AGPL-3.0-or-later"
17SPDXLICENSEMAP[AGPLv3.0] = "AGPL-3.0-only"
18SPDXLICENSEMAP[AGPLv3.0+] = "AGPL-3.0-or-later"
19SPDXLICENSEMAP[AGPL-3.0] = "AGPL-3.0-only"
20SPDXLICENSEMAP[AGPL-3.0+] = "AGPL-3.0-or-later"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021
Andrew Geissler5199d832021-09-24 16:47:35 -050022# BSD variations
23SPDXLICENSEMAP[BSD-0-Clause] = "0BSD"
24
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025# GPL variations
Andrew Geissler90fd73c2021-03-05 15:25:55 -060026SPDXLICENSEMAP[GPL-1] = "GPL-1.0-only"
27SPDXLICENSEMAP[GPL-1+] = "GPL-1.0-or-later"
28SPDXLICENSEMAP[GPLv1] = "GPL-1.0-only"
29SPDXLICENSEMAP[GPLv1+] = "GPL-1.0-or-later"
30SPDXLICENSEMAP[GPLv1.0] = "GPL-1.0-only"
31SPDXLICENSEMAP[GPLv1.0+] = "GPL-1.0-or-later"
32SPDXLICENSEMAP[GPL-1.0] = "GPL-1.0-only"
33SPDXLICENSEMAP[GPL-1.0+] = "GPL-1.0-or-later"
34SPDXLICENSEMAP[GPL-2] = "GPL-2.0-only"
35SPDXLICENSEMAP[GPL-2+] = "GPL-2.0-or-later"
36SPDXLICENSEMAP[GPLv2] = "GPL-2.0-only"
37SPDXLICENSEMAP[GPLv2+] = "GPL-2.0-or-later"
38SPDXLICENSEMAP[GPLv2.0] = "GPL-2.0-only"
39SPDXLICENSEMAP[GPLv2.0+] = "GPL-2.0-or-later"
40SPDXLICENSEMAP[GPL-2.0] = "GPL-2.0-only"
41SPDXLICENSEMAP[GPL-2.0+] = "GPL-2.0-or-later"
42SPDXLICENSEMAP[GPL-3] = "GPL-3.0-only"
43SPDXLICENSEMAP[GPL-3+] = "GPL-3.0-or-later"
44SPDXLICENSEMAP[GPLv3] = "GPL-3.0-only"
45SPDXLICENSEMAP[GPLv3+] = "GPL-3.0-or-later"
46SPDXLICENSEMAP[GPLv3.0] = "GPL-3.0-only"
47SPDXLICENSEMAP[GPLv3.0+] = "GPL-3.0-or-later"
48SPDXLICENSEMAP[GPL-3.0] = "GPL-3.0-only"
49SPDXLICENSEMAP[GPL-3.0+] = "GPL-3.0-or-later"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050050
Andrew Geissler5199d832021-09-24 16:47:35 -050051# LGPL variations
Andrew Geissler90fd73c2021-03-05 15:25:55 -060052SPDXLICENSEMAP[LGPLv2] = "LGPL-2.0-only"
53SPDXLICENSEMAP[LGPLv2+] = "LGPL-2.0-or-later"
54SPDXLICENSEMAP[LGPLv2.0] = "LGPL-2.0-only"
55SPDXLICENSEMAP[LGPLv2.0+] = "LGPL-2.0-or-later"
56SPDXLICENSEMAP[LGPL-2.0] = "LGPL-2.0-only"
57SPDXLICENSEMAP[LGPL-2.0+] = "LGPL-2.0-or-later"
58SPDXLICENSEMAP[LGPL2.1] = "LGPL-2.1-only"
59SPDXLICENSEMAP[LGPL2.1+] = "LGPL-2.1-or-later"
60SPDXLICENSEMAP[LGPLv2.1] = "LGPL-2.1-only"
61SPDXLICENSEMAP[LGPLv2.1+] = "LGPL-2.1-or-later"
62SPDXLICENSEMAP[LGPL-2.1] = "LGPL-2.1-only"
63SPDXLICENSEMAP[LGPL-2.1+] = "LGPL-2.1-or-later"
64SPDXLICENSEMAP[LGPLv3] = "LGPL-3.0-only"
65SPDXLICENSEMAP[LGPLv3+] = "LGPL-3.0-or-later"
66SPDXLICENSEMAP[LGPL-3.0] = "LGPL-3.0-only"
67SPDXLICENSEMAP[LGPL-3.0+] = "LGPL-3.0-or-later"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050068
Andrew Geissler5199d832021-09-24 16:47:35 -050069# MPL variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -050070SPDXLICENSEMAP[MPL-1] = "MPL-1.0"
71SPDXLICENSEMAP[MPLv1] = "MPL-1.0"
72SPDXLICENSEMAP[MPLv1.1] = "MPL-1.1"
73SPDXLICENSEMAP[MPLv2] = "MPL-2.0"
74
Andrew Geissler5199d832021-09-24 16:47:35 -050075# MIT variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -050076SPDXLICENSEMAP[MIT-X] = "MIT"
77SPDXLICENSEMAP[MIT-style] = "MIT"
78
Andrew Geissler5199d832021-09-24 16:47:35 -050079# Openssl variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -050080SPDXLICENSEMAP[openssl] = "OpenSSL"
81
Andrew Geissler5199d832021-09-24 16:47:35 -050082# PSF variations
Andrew Geisslerc3d88e42020-10-02 09:45:00 -050083SPDXLICENSEMAP[PSF] = "PSF-2.0"
84SPDXLICENSEMAP[PSFv2] = "PSF-2.0"
85
Andrew Geissler5199d832021-09-24 16:47:35 -050086# Python variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -050087SPDXLICENSEMAP[Python-2] = "Python-2.0"
88
Andrew Geissler5199d832021-09-24 16:47:35 -050089# Apache variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -050090SPDXLICENSEMAP[Apachev2] = "Apache-2.0"
91SPDXLICENSEMAP[Apache-2] = "Apache-2.0"
92
Andrew Geissler5199d832021-09-24 16:47:35 -050093# Artistic variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -050094SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0"
95SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0"
96
Andrew Geissler5199d832021-09-24 16:47:35 -050097# Academic variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -050098SPDXLICENSEMAP[AFL-2] = "AFL-2.0"
99SPDXLICENSEMAP[AFL-1] = "AFL-1.2"
100SPDXLICENSEMAP[AFLv2] = "AFL-2.0"
101SPDXLICENSEMAP[AFLv1] = "AFL-1.2"
102
Andrew Geissler5199d832021-09-24 16:47:35 -0500103# CDDL variations
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500104SPDXLICENSEMAP[CDDLv1] = "CDDL-1.0"
105SPDXLICENSEMAP[CDDL-1] = "CDDL-1.0"
106
Andrew Geissler5199d832021-09-24 16:47:35 -0500107# Other variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500108SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -0500109SPDXLICENSEMAP[FreeType] = "FTL"
Andrew Geissler5199d832021-09-24 16:47:35 -0500110SPDXLICENSEMAP[Nauman] = "Naumen"
111SPDXLICENSEMAP[tcl] = "TCL"
112SPDXLICENSEMAP[vim] = "Vim"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500113
Andrew Geissler5199d832021-09-24 16:47:35 -0500114# Silicon Graphics variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500115SPDXLICENSEMAP[SGIv1] = "SGI-1"
116
117# Additional license directories. Add your custom licenses directories this path.
118# LICENSE_PATH += "${COREBASE}/custom-licenses"
119
120# Set if you want the license.manifest copied to the image
121#COPY_LIC_MANIFEST = "1"
122
123# If you want the pkg licenses copied over as well you must set
124# both COPY_LIC_MANIFEST and COPY_LIC_DIRS
125#COPY_LIC_DIRS = "1"
126
127## SPDX temporary directory
128SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp"
129SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans"
130
131## SPDX Format info
132SPDX_VERSION = "SPDX-1.1"
133DATA_LICENSE = "CC0-1.0"
134
135## Fossology scan information
136# You can set option to control if the copyright information will be skipped
137# during the identification process.
138#
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500139# FOSS_NO_COPYRIGHT = "true"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500140# NO copyright will be processed. That means only license information will be
141# identified and output to SPDX file
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500142# FOSS_NO_COPYRIGHT = "false"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500143# Copyright will be identified and output to SPDX file along with license
144# information. The process will take more time than not processing copyright
145# information.
146#
147
148FOSS_NO_COPYRIGHT = "true"
149
150# A option defined as[FOSS_RECURSIVE_UNPACK] in ./meta/conf/licenses.conf. is
151# used to control if FOSSology server need recursively unpack tar.gz file which
152# is sent from do_spdx task.
153#
154# FOSS_RECURSIVE_UNPACK = "false":
155# FOSSology server does NOT recursively unpack. In the current release, this
156# is the default choice because recursively unpack will not necessarily break
157# down original compressed files.
158# FOSS_RECURSIVE_UNPACK = "true":
159# FOSSology server recursively unpack components.
160#
161
162FOSS_RECURSIVE_UNPACK = "false"
163
164# An option defined as [FOSS_FULL_SPDX] in ./meta/conf/licenses.conf is used to
165# control what kind of SPDX output to get from the FOSSology server.
166#
167# FOSS_FULL_SPDX = "true":
168# Tell FOSSology server to return full SPDX output, like if the program was
169# run from the command line. This is needed in order to get license refs for
170# the full package rather than individual files only.
171#
172# FOSS_FULL_SPDX = "false":
173# Tell FOSSology to only process license information for files. All package
174# license tags in the report will be "NOASSERTION"
175#
176
177FOSS_FULL_SPDX = "true"
178
179# FOSSologySPDX instance server. http://localhost/repo is the default
180# installation location for FOSSology.
181#
182# For more information on FOSSologySPDX commandline:
183# https://github.com/spdx-tools/fossology-spdx/wiki/Fossology-SPDX-Web-API
184#
185
186FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once"
187FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}"
188
189FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0"