Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # 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 Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 4 | # up a bunch of VarFlags to accommodate non-SPDX license names. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | # |
| 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 Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 13 | SPDXLICENSEMAP[AGPL-3] = "AGPL-3.0-only" |
| 14 | SPDXLICENSEMAP[AGPL-3+] = "AGPL-3.0-or-later" |
| 15 | SPDXLICENSEMAP[AGPLv3] = "AGPL-3.0-only" |
| 16 | SPDXLICENSEMAP[AGPLv3+] = "AGPL-3.0-or-later" |
| 17 | SPDXLICENSEMAP[AGPLv3.0] = "AGPL-3.0-only" |
| 18 | SPDXLICENSEMAP[AGPLv3.0+] = "AGPL-3.0-or-later" |
| 19 | SPDXLICENSEMAP[AGPL-3.0] = "AGPL-3.0-only" |
| 20 | SPDXLICENSEMAP[AGPL-3.0+] = "AGPL-3.0-or-later" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 22 | # BSD variations |
| 23 | SPDXLICENSEMAP[BSD-0-Clause] = "0BSD" |
| 24 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | # GPL variations |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 26 | SPDXLICENSEMAP[GPL-1] = "GPL-1.0-only" |
| 27 | SPDXLICENSEMAP[GPL-1+] = "GPL-1.0-or-later" |
| 28 | SPDXLICENSEMAP[GPLv1] = "GPL-1.0-only" |
| 29 | SPDXLICENSEMAP[GPLv1+] = "GPL-1.0-or-later" |
| 30 | SPDXLICENSEMAP[GPLv1.0] = "GPL-1.0-only" |
| 31 | SPDXLICENSEMAP[GPLv1.0+] = "GPL-1.0-or-later" |
| 32 | SPDXLICENSEMAP[GPL-1.0] = "GPL-1.0-only" |
| 33 | SPDXLICENSEMAP[GPL-1.0+] = "GPL-1.0-or-later" |
| 34 | SPDXLICENSEMAP[GPL-2] = "GPL-2.0-only" |
| 35 | SPDXLICENSEMAP[GPL-2+] = "GPL-2.0-or-later" |
| 36 | SPDXLICENSEMAP[GPLv2] = "GPL-2.0-only" |
| 37 | SPDXLICENSEMAP[GPLv2+] = "GPL-2.0-or-later" |
| 38 | SPDXLICENSEMAP[GPLv2.0] = "GPL-2.0-only" |
| 39 | SPDXLICENSEMAP[GPLv2.0+] = "GPL-2.0-or-later" |
| 40 | SPDXLICENSEMAP[GPL-2.0] = "GPL-2.0-only" |
| 41 | SPDXLICENSEMAP[GPL-2.0+] = "GPL-2.0-or-later" |
| 42 | SPDXLICENSEMAP[GPL-3] = "GPL-3.0-only" |
| 43 | SPDXLICENSEMAP[GPL-3+] = "GPL-3.0-or-later" |
| 44 | SPDXLICENSEMAP[GPLv3] = "GPL-3.0-only" |
| 45 | SPDXLICENSEMAP[GPLv3+] = "GPL-3.0-or-later" |
| 46 | SPDXLICENSEMAP[GPLv3.0] = "GPL-3.0-only" |
| 47 | SPDXLICENSEMAP[GPLv3.0+] = "GPL-3.0-or-later" |
| 48 | SPDXLICENSEMAP[GPL-3.0] = "GPL-3.0-only" |
| 49 | SPDXLICENSEMAP[GPL-3.0+] = "GPL-3.0-or-later" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 50 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 51 | # LGPL variations |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 52 | SPDXLICENSEMAP[LGPLv2] = "LGPL-2.0-only" |
| 53 | SPDXLICENSEMAP[LGPLv2+] = "LGPL-2.0-or-later" |
| 54 | SPDXLICENSEMAP[LGPLv2.0] = "LGPL-2.0-only" |
| 55 | SPDXLICENSEMAP[LGPLv2.0+] = "LGPL-2.0-or-later" |
| 56 | SPDXLICENSEMAP[LGPL-2.0] = "LGPL-2.0-only" |
| 57 | SPDXLICENSEMAP[LGPL-2.0+] = "LGPL-2.0-or-later" |
| 58 | SPDXLICENSEMAP[LGPL2.1] = "LGPL-2.1-only" |
| 59 | SPDXLICENSEMAP[LGPL2.1+] = "LGPL-2.1-or-later" |
| 60 | SPDXLICENSEMAP[LGPLv2.1] = "LGPL-2.1-only" |
| 61 | SPDXLICENSEMAP[LGPLv2.1+] = "LGPL-2.1-or-later" |
| 62 | SPDXLICENSEMAP[LGPL-2.1] = "LGPL-2.1-only" |
| 63 | SPDXLICENSEMAP[LGPL-2.1+] = "LGPL-2.1-or-later" |
| 64 | SPDXLICENSEMAP[LGPLv3] = "LGPL-3.0-only" |
| 65 | SPDXLICENSEMAP[LGPLv3+] = "LGPL-3.0-or-later" |
| 66 | SPDXLICENSEMAP[LGPL-3.0] = "LGPL-3.0-only" |
| 67 | SPDXLICENSEMAP[LGPL-3.0+] = "LGPL-3.0-or-later" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 68 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 69 | # MPL variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 70 | SPDXLICENSEMAP[MPL-1] = "MPL-1.0" |
| 71 | SPDXLICENSEMAP[MPLv1] = "MPL-1.0" |
| 72 | SPDXLICENSEMAP[MPLv1.1] = "MPL-1.1" |
| 73 | SPDXLICENSEMAP[MPLv2] = "MPL-2.0" |
| 74 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 75 | # MIT variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 76 | SPDXLICENSEMAP[MIT-X] = "MIT" |
| 77 | SPDXLICENSEMAP[MIT-style] = "MIT" |
| 78 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 79 | # Openssl variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 80 | SPDXLICENSEMAP[openssl] = "OpenSSL" |
| 81 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 82 | # PSF variations |
Andrew Geissler | c3d88e4 | 2020-10-02 09:45:00 -0500 | [diff] [blame] | 83 | SPDXLICENSEMAP[PSF] = "PSF-2.0" |
| 84 | SPDXLICENSEMAP[PSFv2] = "PSF-2.0" |
| 85 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 86 | # Python variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 87 | SPDXLICENSEMAP[Python-2] = "Python-2.0" |
| 88 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 89 | # Apache variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 90 | SPDXLICENSEMAP[Apachev2] = "Apache-2.0" |
| 91 | SPDXLICENSEMAP[Apache-2] = "Apache-2.0" |
| 92 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 93 | # Artistic variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 94 | SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0" |
| 95 | SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0" |
| 96 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 97 | # Academic variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 98 | SPDXLICENSEMAP[AFL-2] = "AFL-2.0" |
| 99 | SPDXLICENSEMAP[AFL-1] = "AFL-1.2" |
| 100 | SPDXLICENSEMAP[AFLv2] = "AFL-2.0" |
| 101 | SPDXLICENSEMAP[AFLv1] = "AFL-1.2" |
| 102 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 103 | # CDDL variations |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 104 | SPDXLICENSEMAP[CDDLv1] = "CDDL-1.0" |
| 105 | SPDXLICENSEMAP[CDDL-1] = "CDDL-1.0" |
| 106 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 107 | # Other variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 108 | SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 109 | SPDXLICENSEMAP[FreeType] = "FTL" |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 110 | SPDXLICENSEMAP[Nauman] = "Naumen" |
| 111 | SPDXLICENSEMAP[tcl] = "TCL" |
| 112 | SPDXLICENSEMAP[vim] = "Vim" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 113 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 114 | # Silicon Graphics variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 115 | SPDXLICENSEMAP[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 |
| 128 | SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp" |
| 129 | SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans" |
| 130 | |
| 131 | ## SPDX Format info |
| 132 | SPDX_VERSION = "SPDX-1.1" |
| 133 | DATA_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 139 | # FOSS_NO_COPYRIGHT = "true" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 140 | # NO copyright will be processed. That means only license information will be |
| 141 | # identified and output to SPDX file |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 142 | # FOSS_NO_COPYRIGHT = "false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 143 | # 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 | |
| 148 | FOSS_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 | |
| 162 | FOSS_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 | |
| 177 | FOSS_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 | |
| 186 | FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once" |
| 187 | FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}" |
| 188 | |
| 189 | FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0" |