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 |
| 13 | SPDXLICENSEMAP[AGPL-3] = "AGPL-3.0" |
| 14 | SPDXLICENSEMAP[AGPLv3] = "AGPL-3.0" |
| 15 | SPDXLICENSEMAP[AGPLv3.0] = "AGPL-3.0" |
| 16 | |
| 17 | # GPL variations |
| 18 | SPDXLICENSEMAP[GPL-1] = "GPL-1.0" |
| 19 | SPDXLICENSEMAP[GPLv1] = "GPL-1.0" |
| 20 | SPDXLICENSEMAP[GPLv1.0] = "GPL-1.0" |
| 21 | SPDXLICENSEMAP[GPL-2] = "GPL-2.0" |
| 22 | SPDXLICENSEMAP[GPLv2] = "GPL-2.0" |
| 23 | SPDXLICENSEMAP[GPLv2.0] = "GPL-2.0" |
| 24 | SPDXLICENSEMAP[GPL-3] = "GPL-3.0" |
| 25 | SPDXLICENSEMAP[GPLv3] = "GPL-3.0" |
| 26 | SPDXLICENSEMAP[GPLv3.0] = "GPL-3.0" |
| 27 | |
| 28 | #LGPL variations |
| 29 | SPDXLICENSEMAP[LGPLv2] = "LGPL-2.0" |
| 30 | SPDXLICENSEMAP[LGPLv2.0] = "LGPL-2.0" |
| 31 | SPDXLICENSEMAP[LGPL2.1] = "LGPL-2.1" |
| 32 | SPDXLICENSEMAP[LGPLv2.1] = "LGPL-2.1" |
| 33 | SPDXLICENSEMAP[LGPLv3] = "LGPL-3.0" |
| 34 | |
| 35 | #MPL variations |
| 36 | SPDXLICENSEMAP[MPL-1] = "MPL-1.0" |
| 37 | SPDXLICENSEMAP[MPLv1] = "MPL-1.0" |
| 38 | SPDXLICENSEMAP[MPLv1.1] = "MPL-1.1" |
| 39 | SPDXLICENSEMAP[MPLv2] = "MPL-2.0" |
| 40 | |
| 41 | #MIT variations |
| 42 | SPDXLICENSEMAP[MIT-X] = "MIT" |
| 43 | SPDXLICENSEMAP[MIT-style] = "MIT" |
| 44 | |
| 45 | #Openssl variations |
| 46 | SPDXLICENSEMAP[openssl] = "OpenSSL" |
| 47 | |
Andrew Geissler | c3d88e4 | 2020-10-02 09:45:00 -0500 | [diff] [blame] | 48 | #PSF variations |
| 49 | SPDXLICENSEMAP[PSF] = "PSF-2.0" |
| 50 | SPDXLICENSEMAP[PSFv2] = "PSF-2.0" |
| 51 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 52 | #Python variations |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | SPDXLICENSEMAP[Python-2] = "Python-2.0" |
| 54 | |
| 55 | #Apache variations |
| 56 | SPDXLICENSEMAP[Apachev2] = "Apache-2.0" |
| 57 | SPDXLICENSEMAP[Apache-2] = "Apache-2.0" |
| 58 | |
| 59 | #Artistic variations |
| 60 | SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0" |
| 61 | SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0" |
| 62 | |
| 63 | #Academic variations |
| 64 | SPDXLICENSEMAP[AFL-2] = "AFL-2.0" |
| 65 | SPDXLICENSEMAP[AFL-1] = "AFL-1.2" |
| 66 | SPDXLICENSEMAP[AFLv2] = "AFL-2.0" |
| 67 | SPDXLICENSEMAP[AFLv1] = "AFL-1.2" |
| 68 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 69 | #CDDL variations |
| 70 | SPDXLICENSEMAP[CDDLv1] = "CDDL-1.0" |
| 71 | SPDXLICENSEMAP[CDDL-1] = "CDDL-1.0" |
| 72 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 73 | #Other variations |
| 74 | SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0" |
| 75 | |
| 76 | #Silicon Graphics variations |
| 77 | SPDXLICENSEMAP[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 |
| 90 | SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp" |
| 91 | SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans" |
| 92 | |
| 93 | ## SPDX Format info |
| 94 | SPDX_VERSION = "SPDX-1.1" |
| 95 | DATA_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 101 | # FOSS_NO_COPYRIGHT = "true" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 102 | # NO copyright will be processed. That means only license information will be |
| 103 | # identified and output to SPDX file |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 104 | # FOSS_NO_COPYRIGHT = "false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 105 | # 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 | |
| 110 | FOSS_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 | |
| 124 | FOSS_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 | |
| 139 | FOSS_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 | |
| 148 | FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once" |
| 149 | FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}" |
| 150 | |
| 151 | FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0" |