licenses.conf 4.8 KB

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