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 | |
| 22 | # GPL variations |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 23 | SPDXLICENSEMAP[GPL-1] = "GPL-1.0-only" |
| 24 | SPDXLICENSEMAP[GPL-1+] = "GPL-1.0-or-later" |
| 25 | SPDXLICENSEMAP[GPLv1] = "GPL-1.0-only" |
| 26 | SPDXLICENSEMAP[GPLv1+] = "GPL-1.0-or-later" |
| 27 | SPDXLICENSEMAP[GPLv1.0] = "GPL-1.0-only" |
| 28 | SPDXLICENSEMAP[GPLv1.0+] = "GPL-1.0-or-later" |
| 29 | SPDXLICENSEMAP[GPL-1.0] = "GPL-1.0-only" |
| 30 | SPDXLICENSEMAP[GPL-1.0+] = "GPL-1.0-or-later" |
| 31 | SPDXLICENSEMAP[GPL-2] = "GPL-2.0-only" |
| 32 | SPDXLICENSEMAP[GPL-2+] = "GPL-2.0-or-later" |
| 33 | SPDXLICENSEMAP[GPLv2] = "GPL-2.0-only" |
| 34 | SPDXLICENSEMAP[GPLv2+] = "GPL-2.0-or-later" |
| 35 | SPDXLICENSEMAP[GPLv2.0] = "GPL-2.0-only" |
| 36 | SPDXLICENSEMAP[GPLv2.0+] = "GPL-2.0-or-later" |
| 37 | SPDXLICENSEMAP[GPL-2.0] = "GPL-2.0-only" |
| 38 | SPDXLICENSEMAP[GPL-2.0+] = "GPL-2.0-or-later" |
| 39 | SPDXLICENSEMAP[GPL-3] = "GPL-3.0-only" |
| 40 | SPDXLICENSEMAP[GPL-3+] = "GPL-3.0-or-later" |
| 41 | SPDXLICENSEMAP[GPLv3] = "GPL-3.0-only" |
| 42 | SPDXLICENSEMAP[GPLv3+] = "GPL-3.0-or-later" |
| 43 | SPDXLICENSEMAP[GPLv3.0] = "GPL-3.0-only" |
| 44 | SPDXLICENSEMAP[GPLv3.0+] = "GPL-3.0-or-later" |
| 45 | SPDXLICENSEMAP[GPL-3.0] = "GPL-3.0-only" |
| 46 | SPDXLICENSEMAP[GPL-3.0+] = "GPL-3.0-or-later" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 47 | |
| 48 | #LGPL variations |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 49 | SPDXLICENSEMAP[LGPLv2] = "LGPL-2.0-only" |
| 50 | SPDXLICENSEMAP[LGPLv2+] = "LGPL-2.0-or-later" |
| 51 | SPDXLICENSEMAP[LGPLv2.0] = "LGPL-2.0-only" |
| 52 | SPDXLICENSEMAP[LGPLv2.0+] = "LGPL-2.0-or-later" |
| 53 | SPDXLICENSEMAP[LGPL-2.0] = "LGPL-2.0-only" |
| 54 | SPDXLICENSEMAP[LGPL-2.0+] = "LGPL-2.0-or-later" |
| 55 | SPDXLICENSEMAP[LGPL2.1] = "LGPL-2.1-only" |
| 56 | SPDXLICENSEMAP[LGPL2.1+] = "LGPL-2.1-or-later" |
| 57 | SPDXLICENSEMAP[LGPLv2.1] = "LGPL-2.1-only" |
| 58 | SPDXLICENSEMAP[LGPLv2.1+] = "LGPL-2.1-or-later" |
| 59 | SPDXLICENSEMAP[LGPL-2.1] = "LGPL-2.1-only" |
| 60 | SPDXLICENSEMAP[LGPL-2.1+] = "LGPL-2.1-or-later" |
| 61 | SPDXLICENSEMAP[LGPLv3] = "LGPL-3.0-only" |
| 62 | SPDXLICENSEMAP[LGPLv3+] = "LGPL-3.0-or-later" |
| 63 | SPDXLICENSEMAP[LGPL-3.0] = "LGPL-3.0-only" |
| 64 | SPDXLICENSEMAP[LGPL-3.0+] = "LGPL-3.0-or-later" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 65 | |
| 66 | #MPL variations |
| 67 | SPDXLICENSEMAP[MPL-1] = "MPL-1.0" |
| 68 | SPDXLICENSEMAP[MPLv1] = "MPL-1.0" |
| 69 | SPDXLICENSEMAP[MPLv1.1] = "MPL-1.1" |
| 70 | SPDXLICENSEMAP[MPLv2] = "MPL-2.0" |
| 71 | |
| 72 | #MIT variations |
| 73 | SPDXLICENSEMAP[MIT-X] = "MIT" |
| 74 | SPDXLICENSEMAP[MIT-style] = "MIT" |
| 75 | |
| 76 | #Openssl variations |
| 77 | SPDXLICENSEMAP[openssl] = "OpenSSL" |
| 78 | |
Andrew Geissler | c3d88e4 | 2020-10-02 09:45:00 -0500 | [diff] [blame] | 79 | #PSF variations |
| 80 | SPDXLICENSEMAP[PSF] = "PSF-2.0" |
| 81 | SPDXLICENSEMAP[PSFv2] = "PSF-2.0" |
| 82 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 83 | #Python variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 84 | SPDXLICENSEMAP[Python-2] = "Python-2.0" |
| 85 | |
| 86 | #Apache variations |
| 87 | SPDXLICENSEMAP[Apachev2] = "Apache-2.0" |
| 88 | SPDXLICENSEMAP[Apache-2] = "Apache-2.0" |
| 89 | |
| 90 | #Artistic variations |
| 91 | SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0" |
| 92 | SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0" |
| 93 | |
| 94 | #Academic variations |
| 95 | SPDXLICENSEMAP[AFL-2] = "AFL-2.0" |
| 96 | SPDXLICENSEMAP[AFL-1] = "AFL-1.2" |
| 97 | SPDXLICENSEMAP[AFLv2] = "AFL-2.0" |
| 98 | SPDXLICENSEMAP[AFLv1] = "AFL-1.2" |
| 99 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 100 | #CDDL variations |
| 101 | SPDXLICENSEMAP[CDDLv1] = "CDDL-1.0" |
| 102 | SPDXLICENSEMAP[CDDL-1] = "CDDL-1.0" |
| 103 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 104 | #Other variations |
| 105 | SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0" |
| 106 | |
| 107 | #Silicon Graphics variations |
| 108 | SPDXLICENSEMAP[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 |
| 121 | SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp" |
| 122 | SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans" |
| 123 | |
| 124 | ## SPDX Format info |
| 125 | SPDX_VERSION = "SPDX-1.1" |
| 126 | DATA_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 132 | # FOSS_NO_COPYRIGHT = "true" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 133 | # NO copyright will be processed. That means only license information will be |
| 134 | # identified and output to SPDX file |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 135 | # FOSS_NO_COPYRIGHT = "false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 136 | # 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 | |
| 141 | FOSS_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 | |
| 155 | FOSS_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 | |
| 170 | FOSS_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 | |
| 179 | FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once" |
| 180 | FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}" |
| 181 | |
| 182 | FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0" |