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 | |
| 48 | #Python variations |
| 49 | SPDXLICENSEMAP[PSF] = "Python-2.0" |
| 50 | SPDXLICENSEMAP[PSFv2] = "Python-2.0" |
| 51 | SPDXLICENSEMAP[Python-2] = "Python-2.0" |
| 52 | |
| 53 | #Apache variations |
| 54 | SPDXLICENSEMAP[Apachev2] = "Apache-2.0" |
| 55 | SPDXLICENSEMAP[Apache-2] = "Apache-2.0" |
| 56 | |
| 57 | #Artistic variations |
| 58 | SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0" |
| 59 | SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0" |
| 60 | |
| 61 | #Academic variations |
| 62 | SPDXLICENSEMAP[AFL-2] = "AFL-2.0" |
| 63 | SPDXLICENSEMAP[AFL-1] = "AFL-1.2" |
| 64 | SPDXLICENSEMAP[AFLv2] = "AFL-2.0" |
| 65 | SPDXLICENSEMAP[AFLv1] = "AFL-1.2" |
| 66 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 67 | #CDDL variations |
| 68 | SPDXLICENSEMAP[CDDLv1] = "CDDL-1.0" |
| 69 | SPDXLICENSEMAP[CDDL-1] = "CDDL-1.0" |
| 70 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 71 | #Other variations |
| 72 | SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0" |
| 73 | |
| 74 | #Silicon Graphics variations |
| 75 | SPDXLICENSEMAP[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 |
| 88 | SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp" |
| 89 | SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans" |
| 90 | |
| 91 | ## SPDX Format info |
| 92 | SPDX_VERSION = "SPDX-1.1" |
| 93 | DATA_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 99 | # FOSS_NO_COPYRIGHT = "true" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 100 | # NO copyright will be processed. That means only license information will be |
| 101 | # identified and output to SPDX file |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 102 | # FOSS_NO_COPYRIGHT = "false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 103 | # 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 | |
| 108 | FOSS_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 | |
| 122 | FOSS_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 | |
| 137 | FOSS_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 | |
| 146 | FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once" |
| 147 | FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}" |
| 148 | |
| 149 | FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0" |