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