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