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" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 106 | SPDXLICENSEMAP[FreeType] = "FTL" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 107 | |
| 108 | #Silicon Graphics variations |
| 109 | SPDXLICENSEMAP[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 |
| 122 | SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp" |
| 123 | SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans" |
| 124 | |
| 125 | ## SPDX Format info |
| 126 | SPDX_VERSION = "SPDX-1.1" |
| 127 | DATA_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 133 | # FOSS_NO_COPYRIGHT = "true" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 134 | # NO copyright will be processed. That means only license information will be |
| 135 | # identified and output to SPDX file |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 136 | # FOSS_NO_COPYRIGHT = "false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 137 | # 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 | |
| 142 | FOSS_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 | |
| 156 | FOSS_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 | |
| 171 | FOSS_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 | |
| 180 | FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once" |
| 181 | FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}" |
| 182 | |
| 183 | FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0" |