blob: e2bd58f84a1f5098f14fa88804674272bf016a11 [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"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -0500106SPDXLICENSEMAP[FreeType] = "FTL"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500107
108#Silicon Graphics variations
109SPDXLICENSEMAP[SGIv1] = "SGI-1"
110
111# Additional license directories. Add your custom licenses directories this path.
112# LICENSE_PATH += "${COREBASE}/custom-licenses"
113
114# Set if you want the license.manifest copied to the image
115#COPY_LIC_MANIFEST = "1"
116
117# If you want the pkg licenses copied over as well you must set
118# both COPY_LIC_MANIFEST and COPY_LIC_DIRS
119#COPY_LIC_DIRS = "1"
120
121## SPDX temporary directory
122SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp"
123SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans"
124
125## SPDX Format info
126SPDX_VERSION = "SPDX-1.1"
127DATA_LICENSE = "CC0-1.0"
128
129## Fossology scan information
130# You can set option to control if the copyright information will be skipped
131# during the identification process.
132#
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500133# FOSS_NO_COPYRIGHT = "true"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500134# NO copyright will be processed. That means only license information will be
135# identified and output to SPDX file
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500136# FOSS_NO_COPYRIGHT = "false"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500137# Copyright will be identified and output to SPDX file along with license
138# information. The process will take more time than not processing copyright
139# information.
140#
141
142FOSS_NO_COPYRIGHT = "true"
143
144# A option defined as[FOSS_RECURSIVE_UNPACK] in ./meta/conf/licenses.conf. is
145# used to control if FOSSology server need recursively unpack tar.gz file which
146# is sent from do_spdx task.
147#
148# FOSS_RECURSIVE_UNPACK = "false":
149# FOSSology server does NOT recursively unpack. In the current release, this
150# is the default choice because recursively unpack will not necessarily break
151# down original compressed files.
152# FOSS_RECURSIVE_UNPACK = "true":
153# FOSSology server recursively unpack components.
154#
155
156FOSS_RECURSIVE_UNPACK = "false"
157
158# An option defined as [FOSS_FULL_SPDX] in ./meta/conf/licenses.conf is used to
159# control what kind of SPDX output to get from the FOSSology server.
160#
161# FOSS_FULL_SPDX = "true":
162# Tell FOSSology server to return full SPDX output, like if the program was
163# run from the command line. This is needed in order to get license refs for
164# the full package rather than individual files only.
165#
166# FOSS_FULL_SPDX = "false":
167# Tell FOSSology to only process license information for files. All package
168# license tags in the report will be "NOASSERTION"
169#
170
171FOSS_FULL_SPDX = "true"
172
173# FOSSologySPDX instance server. http://localhost/repo is the default
174# installation location for FOSSology.
175#
176# For more information on FOSSologySPDX commandline:
177# https://github.com/spdx-tools/fossology-spdx/wiki/Fossology-SPDX-Web-API
178#
179
180FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once"
181FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}"
182
183FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0"