licenses.conf 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. # AGPL variations
  12. SPDXLICENSEMAP[AGPL-3] = "AGPL-3.0-only"
  13. SPDXLICENSEMAP[AGPL-3+] = "AGPL-3.0-or-later"
  14. SPDXLICENSEMAP[AGPLv3] = "AGPL-3.0-only"
  15. SPDXLICENSEMAP[AGPLv3+] = "AGPL-3.0-or-later"
  16. SPDXLICENSEMAP[AGPLv3.0] = "AGPL-3.0-only"
  17. SPDXLICENSEMAP[AGPLv3.0+] = "AGPL-3.0-or-later"
  18. SPDXLICENSEMAP[AGPL-3.0] = "AGPL-3.0-only"
  19. SPDXLICENSEMAP[AGPL-3.0+] = "AGPL-3.0-or-later"
  20. # BSD variations
  21. SPDXLICENSEMAP[BSD-0-Clause] = "0BSD"
  22. # GPL variations
  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"
  47. # LGPL variations
  48. SPDXLICENSEMAP[LGPLv2] = "LGPL-2.0-only"
  49. SPDXLICENSEMAP[LGPLv2+] = "LGPL-2.0-or-later"
  50. SPDXLICENSEMAP[LGPLv2.0] = "LGPL-2.0-only"
  51. SPDXLICENSEMAP[LGPLv2.0+] = "LGPL-2.0-or-later"
  52. SPDXLICENSEMAP[LGPL-2.0] = "LGPL-2.0-only"
  53. SPDXLICENSEMAP[LGPL-2.0+] = "LGPL-2.0-or-later"
  54. SPDXLICENSEMAP[LGPL2.1] = "LGPL-2.1-only"
  55. SPDXLICENSEMAP[LGPL2.1+] = "LGPL-2.1-or-later"
  56. SPDXLICENSEMAP[LGPLv2.1] = "LGPL-2.1-only"
  57. SPDXLICENSEMAP[LGPLv2.1+] = "LGPL-2.1-or-later"
  58. SPDXLICENSEMAP[LGPL-2.1] = "LGPL-2.1-only"
  59. SPDXLICENSEMAP[LGPL-2.1+] = "LGPL-2.1-or-later"
  60. SPDXLICENSEMAP[LGPLv3] = "LGPL-3.0-only"
  61. SPDXLICENSEMAP[LGPLv3+] = "LGPL-3.0-or-later"
  62. SPDXLICENSEMAP[LGPL-3.0] = "LGPL-3.0-only"
  63. SPDXLICENSEMAP[LGPL-3.0+] = "LGPL-3.0-or-later"
  64. # MPL variations
  65. SPDXLICENSEMAP[MPL-1] = "MPL-1.0"
  66. SPDXLICENSEMAP[MPLv1] = "MPL-1.0"
  67. SPDXLICENSEMAP[MPLv1.1] = "MPL-1.1"
  68. SPDXLICENSEMAP[MPLv2] = "MPL-2.0"
  69. # MIT variations
  70. SPDXLICENSEMAP[MIT-X] = "MIT"
  71. SPDXLICENSEMAP[MIT-style] = "MIT"
  72. # Openssl variations
  73. SPDXLICENSEMAP[openssl] = "OpenSSL"
  74. # PSF variations
  75. SPDXLICENSEMAP[PSF] = "PSF-2.0"
  76. SPDXLICENSEMAP[PSFv2] = "PSF-2.0"
  77. # Python variations
  78. SPDXLICENSEMAP[Python-2] = "Python-2.0"
  79. # Apache variations
  80. SPDXLICENSEMAP[Apachev2] = "Apache-2.0"
  81. SPDXLICENSEMAP[Apache-2] = "Apache-2.0"
  82. # Artistic variations
  83. SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0"
  84. SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0"
  85. # Academic variations
  86. SPDXLICENSEMAP[AFL-2] = "AFL-2.0"
  87. SPDXLICENSEMAP[AFL-1] = "AFL-1.2"
  88. SPDXLICENSEMAP[AFLv2] = "AFL-2.0"
  89. SPDXLICENSEMAP[AFLv1] = "AFL-1.2"
  90. # CDDL variations
  91. SPDXLICENSEMAP[CDDLv1] = "CDDL-1.0"
  92. SPDXLICENSEMAP[CDDL-1] = "CDDL-1.0"
  93. # Other variations
  94. SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0"
  95. SPDXLICENSEMAP[FreeType] = "FTL"
  96. SPDXLICENSEMAP[Nauman] = "Naumen"
  97. SPDXLICENSEMAP[tcl] = "TCL"
  98. SPDXLICENSEMAP[vim] = "Vim"
  99. # Silicon Graphics variations
  100. SPDXLICENSEMAP[SGIv1] = "SGI-OpenGL"
  101. # Additional license directories. Add your custom licenses directories this path.
  102. # LICENSE_PATH += "${COREBASE}/custom-licenses"
  103. # Set if you want the license.manifest copied to the image
  104. #COPY_LIC_MANIFEST = "1"
  105. # If you want the pkg licenses copied over as well you must set
  106. # both COPY_LIC_MANIFEST and COPY_LIC_DIRS
  107. #COPY_LIC_DIRS = "1"
  108. ## SPDX temporary directory
  109. SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp"
  110. SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans"
  111. ## SPDX Format info
  112. SPDX_VERSION = "SPDX-1.1"
  113. DATA_LICENSE = "CC0-1.0"
  114. ## Fossology scan information
  115. # You can set option to control if the copyright information will be skipped
  116. # during the identification process.
  117. #
  118. # FOSS_NO_COPYRIGHT = "true"
  119. # NO copyright will be processed. That means only license information will be
  120. # identified and output to SPDX file
  121. # FOSS_NO_COPYRIGHT = "false"
  122. # Copyright will be identified and output to SPDX file along with license
  123. # information. The process will take more time than not processing copyright
  124. # information.
  125. #
  126. FOSS_NO_COPYRIGHT = "true"
  127. # A option defined as[FOSS_RECURSIVE_UNPACK] in ./meta/conf/licenses.conf. is
  128. # used to control if FOSSology server need recursively unpack tar.gz file which
  129. # is sent from do_spdx task.
  130. #
  131. # FOSS_RECURSIVE_UNPACK = "false":
  132. # FOSSology server does NOT recursively unpack. In the current release, this
  133. # is the default choice because recursively unpack will not necessarily break
  134. # down original compressed files.
  135. # FOSS_RECURSIVE_UNPACK = "true":
  136. # FOSSology server recursively unpack components.
  137. #
  138. FOSS_RECURSIVE_UNPACK = "false"
  139. # An option defined as [FOSS_FULL_SPDX] in ./meta/conf/licenses.conf is used to
  140. # control what kind of SPDX output to get from the FOSSology server.
  141. #
  142. # FOSS_FULL_SPDX = "true":
  143. # Tell FOSSology server to return full SPDX output, like if the program was
  144. # run from the command line. This is needed in order to get license refs for
  145. # the full package rather than individual files only.
  146. #
  147. # FOSS_FULL_SPDX = "false":
  148. # Tell FOSSology to only process license information for files. All package
  149. # license tags in the report will be "NOASSERTION"
  150. #
  151. FOSS_FULL_SPDX = "true"
  152. # FOSSologySPDX instance server. http://localhost/repo is the default
  153. # installation location for FOSSology.
  154. #
  155. # For more information on FOSSologySPDX commandline:
  156. # https://github.com/spdx-tools/fossology-spdx/wiki/Fossology-SPDX-Web-API
  157. #
  158. FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once"
  159. FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}"
  160. FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0"