blob: 751424d1b689df6ce6b9381232dadc5096b17a6a [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
48#Python variations
49SPDXLICENSEMAP[PSF] = "Python-2.0"
50SPDXLICENSEMAP[PSFv2] = "Python-2.0"
51SPDXLICENSEMAP[Python-2] = "Python-2.0"
52
53#Apache variations
54SPDXLICENSEMAP[Apachev2] = "Apache-2.0"
55SPDXLICENSEMAP[Apache-2] = "Apache-2.0"
56
57#Artistic variations
58SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0"
59SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0"
60
61#Academic variations
62SPDXLICENSEMAP[AFL-2] = "AFL-2.0"
63SPDXLICENSEMAP[AFL-1] = "AFL-1.2"
64SPDXLICENSEMAP[AFLv2] = "AFL-2.0"
65SPDXLICENSEMAP[AFLv1] = "AFL-1.2"
66
Brad Bishopd7bf8c12018-02-25 22:55:05 -050067#CDDL variations
68SPDXLICENSEMAP[CDDLv1] = "CDDL-1.0"
69SPDXLICENSEMAP[CDDL-1] = "CDDL-1.0"
70
Patrick Williamsc124f4f2015-09-15 14:41:29 -050071#Other variations
72SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0"
73
74#Silicon Graphics variations
75SPDXLICENSEMAP[SGIv1] = "SGI-1"
76
77# Additional license directories. Add your custom licenses directories this path.
78# LICENSE_PATH += "${COREBASE}/custom-licenses"
79
80# Set if you want the license.manifest copied to the image
81#COPY_LIC_MANIFEST = "1"
82
83# If you want the pkg licenses copied over as well you must set
84# both COPY_LIC_MANIFEST and COPY_LIC_DIRS
85#COPY_LIC_DIRS = "1"
86
87## SPDX temporary directory
88SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp"
89SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans"
90
91## SPDX Format info
92SPDX_VERSION = "SPDX-1.1"
93DATA_LICENSE = "CC0-1.0"
94
95## Fossology scan information
96# You can set option to control if the copyright information will be skipped
97# during the identification process.
98#
Brad Bishop6e60e8b2018-02-01 10:27:11 -050099# FOSS_NO_COPYRIGHT = "true"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500100# NO copyright will be processed. That means only license information will be
101# identified and output to SPDX file
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500102# FOSS_NO_COPYRIGHT = "false"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500103# Copyright will be identified and output to SPDX file along with license
104# information. The process will take more time than not processing copyright
105# information.
106#
107
108FOSS_NO_COPYRIGHT = "true"
109
110# A option defined as[FOSS_RECURSIVE_UNPACK] in ./meta/conf/licenses.conf. is
111# used to control if FOSSology server need recursively unpack tar.gz file which
112# is sent from do_spdx task.
113#
114# FOSS_RECURSIVE_UNPACK = "false":
115# FOSSology server does NOT recursively unpack. In the current release, this
116# is the default choice because recursively unpack will not necessarily break
117# down original compressed files.
118# FOSS_RECURSIVE_UNPACK = "true":
119# FOSSology server recursively unpack components.
120#
121
122FOSS_RECURSIVE_UNPACK = "false"
123
124# An option defined as [FOSS_FULL_SPDX] in ./meta/conf/licenses.conf is used to
125# control what kind of SPDX output to get from the FOSSology server.
126#
127# FOSS_FULL_SPDX = "true":
128# Tell FOSSology server to return full SPDX output, like if the program was
129# run from the command line. This is needed in order to get license refs for
130# the full package rather than individual files only.
131#
132# FOSS_FULL_SPDX = "false":
133# Tell FOSSology to only process license information for files. All package
134# license tags in the report will be "NOASSERTION"
135#
136
137FOSS_FULL_SPDX = "true"
138
139# FOSSologySPDX instance server. http://localhost/repo is the default
140# installation location for FOSSology.
141#
142# For more information on FOSSologySPDX commandline:
143# https://github.com/spdx-tools/fossology-spdx/wiki/Fossology-SPDX-Web-API
144#
145
146FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once"
147FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}"
148
149FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0"