blob: 1fe5fc6ec125f21d5536aa465072c87e62494ba7 [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
22# GPL variations
Andrew Geissler90fd73c2021-03-05 15:25:55 -060023SPDXLICENSEMAP[GPL-1] = "GPL-1.0-only"
24SPDXLICENSEMAP[GPL-1+] = "GPL-1.0-or-later"
25SPDXLICENSEMAP[GPLv1] = "GPL-1.0-only"
26SPDXLICENSEMAP[GPLv1+] = "GPL-1.0-or-later"
27SPDXLICENSEMAP[GPLv1.0] = "GPL-1.0-only"
28SPDXLICENSEMAP[GPLv1.0+] = "GPL-1.0-or-later"
29SPDXLICENSEMAP[GPL-1.0] = "GPL-1.0-only"
30SPDXLICENSEMAP[GPL-1.0+] = "GPL-1.0-or-later"
31SPDXLICENSEMAP[GPL-2] = "GPL-2.0-only"
32SPDXLICENSEMAP[GPL-2+] = "GPL-2.0-or-later"
33SPDXLICENSEMAP[GPLv2] = "GPL-2.0-only"
34SPDXLICENSEMAP[GPLv2+] = "GPL-2.0-or-later"
35SPDXLICENSEMAP[GPLv2.0] = "GPL-2.0-only"
36SPDXLICENSEMAP[GPLv2.0+] = "GPL-2.0-or-later"
37SPDXLICENSEMAP[GPL-2.0] = "GPL-2.0-only"
38SPDXLICENSEMAP[GPL-2.0+] = "GPL-2.0-or-later"
39SPDXLICENSEMAP[GPL-3] = "GPL-3.0-only"
40SPDXLICENSEMAP[GPL-3+] = "GPL-3.0-or-later"
41SPDXLICENSEMAP[GPLv3] = "GPL-3.0-only"
42SPDXLICENSEMAP[GPLv3+] = "GPL-3.0-or-later"
43SPDXLICENSEMAP[GPLv3.0] = "GPL-3.0-only"
44SPDXLICENSEMAP[GPLv3.0+] = "GPL-3.0-or-later"
45SPDXLICENSEMAP[GPL-3.0] = "GPL-3.0-only"
46SPDXLICENSEMAP[GPL-3.0+] = "GPL-3.0-or-later"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050047
48#LGPL variations
Andrew Geissler90fd73c2021-03-05 15:25:55 -060049SPDXLICENSEMAP[LGPLv2] = "LGPL-2.0-only"
50SPDXLICENSEMAP[LGPLv2+] = "LGPL-2.0-or-later"
51SPDXLICENSEMAP[LGPLv2.0] = "LGPL-2.0-only"
52SPDXLICENSEMAP[LGPLv2.0+] = "LGPL-2.0-or-later"
53SPDXLICENSEMAP[LGPL-2.0] = "LGPL-2.0-only"
54SPDXLICENSEMAP[LGPL-2.0+] = "LGPL-2.0-or-later"
55SPDXLICENSEMAP[LGPL2.1] = "LGPL-2.1-only"
56SPDXLICENSEMAP[LGPL2.1+] = "LGPL-2.1-or-later"
57SPDXLICENSEMAP[LGPLv2.1] = "LGPL-2.1-only"
58SPDXLICENSEMAP[LGPLv2.1+] = "LGPL-2.1-or-later"
59SPDXLICENSEMAP[LGPL-2.1] = "LGPL-2.1-only"
60SPDXLICENSEMAP[LGPL-2.1+] = "LGPL-2.1-or-later"
61SPDXLICENSEMAP[LGPLv3] = "LGPL-3.0-only"
62SPDXLICENSEMAP[LGPLv3+] = "LGPL-3.0-or-later"
63SPDXLICENSEMAP[LGPL-3.0] = "LGPL-3.0-only"
64SPDXLICENSEMAP[LGPL-3.0+] = "LGPL-3.0-or-later"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050065
66#MPL variations
67SPDXLICENSEMAP[MPL-1] = "MPL-1.0"
68SPDXLICENSEMAP[MPLv1] = "MPL-1.0"
69SPDXLICENSEMAP[MPLv1.1] = "MPL-1.1"
70SPDXLICENSEMAP[MPLv2] = "MPL-2.0"
71
72#MIT variations
73SPDXLICENSEMAP[MIT-X] = "MIT"
74SPDXLICENSEMAP[MIT-style] = "MIT"
75
76#Openssl variations
77SPDXLICENSEMAP[openssl] = "OpenSSL"
78
Andrew Geisslerc3d88e42020-10-02 09:45:00 -050079#PSF variations
80SPDXLICENSEMAP[PSF] = "PSF-2.0"
81SPDXLICENSEMAP[PSFv2] = "PSF-2.0"
82
Patrick Williamsc124f4f2015-09-15 14:41:29 -050083#Python variations
Patrick Williamsc124f4f2015-09-15 14:41:29 -050084SPDXLICENSEMAP[Python-2] = "Python-2.0"
85
86#Apache variations
87SPDXLICENSEMAP[Apachev2] = "Apache-2.0"
88SPDXLICENSEMAP[Apache-2] = "Apache-2.0"
89
90#Artistic variations
91SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0"
92SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0"
93
94#Academic variations
95SPDXLICENSEMAP[AFL-2] = "AFL-2.0"
96SPDXLICENSEMAP[AFL-1] = "AFL-1.2"
97SPDXLICENSEMAP[AFLv2] = "AFL-2.0"
98SPDXLICENSEMAP[AFLv1] = "AFL-1.2"
99
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500100#CDDL variations
101SPDXLICENSEMAP[CDDLv1] = "CDDL-1.0"
102SPDXLICENSEMAP[CDDL-1] = "CDDL-1.0"
103
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500104#Other variations
105SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0"
106
107#Silicon Graphics variations
108SPDXLICENSEMAP[SGIv1] = "SGI-1"
109
110# Additional license directories. Add your custom licenses directories this path.
111# LICENSE_PATH += "${COREBASE}/custom-licenses"
112
113# Set if you want the license.manifest copied to the image
114#COPY_LIC_MANIFEST = "1"
115
116# If you want the pkg licenses copied over as well you must set
117# both COPY_LIC_MANIFEST and COPY_LIC_DIRS
118#COPY_LIC_DIRS = "1"
119
120## SPDX temporary directory
121SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp"
122SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans"
123
124## SPDX Format info
125SPDX_VERSION = "SPDX-1.1"
126DATA_LICENSE = "CC0-1.0"
127
128## Fossology scan information
129# You can set option to control if the copyright information will be skipped
130# during the identification process.
131#
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500132# FOSS_NO_COPYRIGHT = "true"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500133# NO copyright will be processed. That means only license information will be
134# identified and output to SPDX file
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500135# FOSS_NO_COPYRIGHT = "false"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500136# Copyright will be identified and output to SPDX file along with license
137# information. The process will take more time than not processing copyright
138# information.
139#
140
141FOSS_NO_COPYRIGHT = "true"
142
143# A option defined as[FOSS_RECURSIVE_UNPACK] in ./meta/conf/licenses.conf. is
144# used to control if FOSSology server need recursively unpack tar.gz file which
145# is sent from do_spdx task.
146#
147# FOSS_RECURSIVE_UNPACK = "false":
148# FOSSology server does NOT recursively unpack. In the current release, this
149# is the default choice because recursively unpack will not necessarily break
150# down original compressed files.
151# FOSS_RECURSIVE_UNPACK = "true":
152# FOSSology server recursively unpack components.
153#
154
155FOSS_RECURSIVE_UNPACK = "false"
156
157# An option defined as [FOSS_FULL_SPDX] in ./meta/conf/licenses.conf is used to
158# control what kind of SPDX output to get from the FOSSology server.
159#
160# FOSS_FULL_SPDX = "true":
161# Tell FOSSology server to return full SPDX output, like if the program was
162# run from the command line. This is needed in order to get license refs for
163# the full package rather than individual files only.
164#
165# FOSS_FULL_SPDX = "false":
166# Tell FOSSology to only process license information for files. All package
167# license tags in the report will be "NOASSERTION"
168#
169
170FOSS_FULL_SPDX = "true"
171
172# FOSSologySPDX instance server. http://localhost/repo is the default
173# installation location for FOSSology.
174#
175# For more information on FOSSologySPDX commandline:
176# https://github.com/spdx-tools/fossology-spdx/wiki/Fossology-SPDX-Web-API
177#
178
179FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once"
180FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}"
181
182FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0"