Browse Source

bitbake: Add initial pass of SPDX license headers to source code

This adds the SPDX-License-Identifier license headers to the majority of
our source files to make it clearer exactly which license files are under.

The bulk of the files are under GPL v2.0 with one found to be under V2.0
or later, some under MIT and some have dual license. There are some files
which are potentially harder to classify where we've imported upstream code
and those can be handled specifically in later commits.

The COPYING file is replaced with LICENSE.X files which contain the full
license texts.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie 5 years ago
parent
commit
ff237c3333
100 changed files with 267 additions and 61 deletions
  1. 2 0
      HEADER
  2. 11 1
      LICENSE
  3. 5 56
      LICENSE.GPL-2.0-only
  4. 25 0
      LICENSE.MIT
  5. 3 1
      MANIFEST.in
  6. 2 0
      bin/bitbake
  7. 2 0
      bin/bitbake-diffsigs
  8. 2 0
      bin/bitbake-hashserv
  9. 2 0
      bin/bitbake-layers
  10. 4 0
      bin/bitbake-prserv
  11. 2 0
      bin/bitbake-selftest
  12. 3 0
      bin/bitbake-worker
  13. 2 0
      bin/bitdoc
  14. 4 0
      bin/git-make-shallow
  15. 3 1
      bin/toaster
  16. 2 1
      bin/toaster-eventreplay
  17. 2 0
      lib/bb/__init__.py
  18. 2 0
      lib/bb/build.py
  19. 2 0
      lib/bb/cache.py
  20. 2 0
      lib/bb/cache_extra.py
  21. 2 0
      lib/bb/checksum.py
  22. 4 0
      lib/bb/codeparser.py
  23. 2 0
      lib/bb/command.py
  24. 4 0
      lib/bb/compat.py
  25. 2 0
      lib/bb/cooker.py
  26. 2 0
      lib/bb/cookerdata.py
  27. 4 0
      lib/bb/daemonize.py
  28. 2 0
      lib/bb/data.py
  29. 2 0
      lib/bb/data_smart.py
  30. 2 0
      lib/bb/event.py
  31. 3 0
      lib/bb/exceptions.py
  32. 2 0
      lib/bb/fetch2/__init__.py
  33. 2 0
      lib/bb/fetch2/bzr.py
  34. 2 0
      lib/bb/fetch2/clearcase.py
  35. 2 0
      lib/bb/fetch2/cvs.py
  36. 3 1
      lib/bb/fetch2/git.py
  37. 2 0
      lib/bb/fetch2/gitannex.py
  38. 2 0
      lib/bb/fetch2/gitsm.py
  39. 2 0
      lib/bb/fetch2/hg.py
  40. 2 0
      lib/bb/fetch2/local.py
  41. 3 0
      lib/bb/fetch2/npm.py
  42. 3 0
      lib/bb/fetch2/osc.py
  43. 2 0
      lib/bb/fetch2/perforce.py
  44. 2 0
      lib/bb/fetch2/repo.py
  45. 2 0
      lib/bb/fetch2/s3.py
  46. 2 0
      lib/bb/fetch2/sftp.py
  47. 2 0
      lib/bb/fetch2/ssh.py
  48. 2 0
      lib/bb/fetch2/svn.py
  49. 2 0
      lib/bb/fetch2/wget.py
  50. 2 0
      lib/bb/main.py
  51. 2 0
      lib/bb/methodpool.py
  52. 2 0
      lib/bb/monitordisk.py
  53. 2 0
      lib/bb/msg.py
  54. 3 0
      lib/bb/namedtuple_with_abc.py
  55. 2 0
      lib/bb/parse/__init__.py
  56. 2 0
      lib/bb/parse/ast.py
  57. 2 0
      lib/bb/parse/parse_py/BBHandler.py
  58. 2 0
      lib/bb/parse/parse_py/ConfHandler.py
  59. 2 0
      lib/bb/parse/parse_py/__init__.py
  60. 2 0
      lib/bb/persist_data.py
  61. 4 0
      lib/bb/process.py
  62. 2 0
      lib/bb/progress.py
  63. 2 0
      lib/bb/providers.py
  64. 2 0
      lib/bb/remotedata.py
  65. 2 0
      lib/bb/runqueue.py
  66. 2 0
      lib/bb/server/__init__.py
  67. 2 0
      lib/bb/server/process.py
  68. 2 0
      lib/bb/server/xmlrpcclient.py
  69. 2 0
      lib/bb/server/xmlrpcserver.py
  70. 4 0
      lib/bb/siggen.py
  71. 2 0
      lib/bb/taskdata.py
  72. 2 0
      lib/bb/tests/codeparser.py
  73. 2 0
      lib/bb/tests/cooker.py
  74. 2 0
      lib/bb/tests/cow.py
  75. 2 0
      lib/bb/tests/data.py
  76. 2 0
      lib/bb/tests/event.py
  77. 2 0
      lib/bb/tests/fetch.py
  78. 2 0
      lib/bb/tests/parse.py
  79. 2 0
      lib/bb/tests/persist_data.py
  80. 2 0
      lib/bb/tests/utils.py
  81. 2 0
      lib/bb/tinfoil.py
  82. 2 0
      lib/bb/ui/__init__.py
  83. 2 0
      lib/bb/ui/buildinfohelper.py
  84. 2 0
      lib/bb/ui/knotty.py
  85. 2 0
      lib/bb/ui/ncurses.py
  86. 2 0
      lib/bb/ui/taskexp.py
  87. 2 0
      lib/bb/ui/toasterui.py
  88. 2 0
      lib/bb/ui/uievent.py
  89. 2 0
      lib/bb/ui/uihelper.py
  90. 2 0
      lib/bb/utils.py
  91. 4 0
      lib/bblayers/__init__.py
  92. 4 0
      lib/bblayers/action.py
  93. 4 0
      lib/bblayers/common.py
  94. 4 0
      lib/bblayers/layerindex.py
  95. 4 0
      lib/bblayers/query.py
  96. 2 0
      lib/hashserv/__init__.py
  97. 2 0
      lib/hashserv/tests.py
  98. 2 0
      lib/layerindexlib/__init__.py
  99. 2 0
      lib/layerindexlib/cooker.py
  100. 2 0
      lib/layerindexlib/plugin.py

+ 2 - 0
HEADER

@@ -4,6 +4,8 @@
 # <one line to give the program's name and a brief idea of what it does.>
 # Copyright (C) <year>  <name of author>
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 11 - 1
LICENSE

@@ -1,4 +1,13 @@
-BitBake is licensed under the GNU General Public License version 2.0. See COPYING for further details.
+BitBake is licensed under the GNU General Public License version 2.0. See 
+LICENSE.GPL-2.0-only for further details.
+
+Individual files contain the following style tags instead of the full license text:
+
+    SPDX-License-Identifier:	GPL-2.0-only
+
+This enables machine processing of license information based on the SPDX
+License Identifiers that are here available: http://spdx.org/licenses/
+
 
 The following external components are distributed with this software:
 
@@ -17,3 +26,4 @@ Foundation and individual contributors.
 * Font Awesome fonts redistributed under the SIL Open Font License 1.1
 
 * simplediff is distributed under the zlib license.
+

+ 5 - 56
COPYING → LICENSE.GPL-2.0-only

@@ -279,61 +279,10 @@ POSSIBILITY OF SUCH DAMAGES.
 
 		     END OF TERMS AND CONDITIONS
 
-	    How to Apply These Terms to Your New Programs
+Note:
+Individual files contain the following tag instead of the full license text.
 
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
+    SPDX-License-Identifier: GPL-2.0-only
 
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License along
-    with this program; if not, write to the Free Software Foundation, Inc.,
-    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
+This enables machine processing of license information based on the SPDX
+License Identifiers that are here available: http://spdx.org/licenses/

+ 25 - 0
LICENSE.MIT

@@ -0,0 +1,25 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+Note:
+Individual files contain the following tag instead of the full license text.
+
+    SPDX-License-Identifier: MIT
+
+This enables machine processing of license information based on the SPDX
+License Identifiers that are here available: http://spdx.org/licenses/

+ 3 - 1
MANIFEST.in

@@ -1,6 +1,8 @@
-include COPYING
 include ChangeLog
 include AUTHORS
+include LICENSE
+include LICENSE.GPL-2.0-only
+include LICENSE.MIT
 include contrib/*
 include contrib/vim/*/*
 include conf/*

+ 2 - 0
bin/bitbake

@@ -9,6 +9,8 @@
 # Copyright (C) 2005        ROAD GmbH
 # Copyright (C) 2006        Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
bin/bitbake-diffsigs

@@ -5,6 +5,8 @@
 #
 # Copyright (C) 2012-2013, 2017 Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
bin/bitbake-hashserv

@@ -2,6 +2,8 @@
 #
 # Copyright (C) 2018 Garmin Ltd.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
bin/bitbake-layers

@@ -7,6 +7,8 @@
 # Copyright (C) 2011 Mentor Graphics Corporation
 # Copyright (C) 2011-2015 Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 4 - 0
bin/bitbake-prserv

@@ -1,4 +1,8 @@
 #!/usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 import os
 import sys,logging
 import optparse

+ 2 - 0
bin/bitbake-selftest

@@ -2,6 +2,8 @@
 #
 # Copyright (C) 2012 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 3 - 0
bin/bitbake-worker

@@ -1,4 +1,7 @@
 #!/usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
 
 import os
 import sys

+ 2 - 0
bin/bitdoc

@@ -4,6 +4,8 @@
 #
 # Copyright (C) 2005 Holger Hans Peter Freyther
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 4 - 0
bin/git-make-shallow

@@ -1,4 +1,8 @@
 #!/usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 """git-make-shallow: make the current git repository shallow
 
 Remove the history of the specified revisions, then optionally filter the

+ 3 - 1
bin/toaster

@@ -3,7 +3,9 @@
 # toaster - shell script to start Toaster
 
 # Copyright (C) 2013-2015 Intel Corp.
-
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or

+ 2 - 1
bin/toaster-eventreplay

@@ -4,10 +4,11 @@
 #
 # Copyright (C) 2014        Alex Damian
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This file re-uses code spread throughout other Bitbake source files.
 # As such, all other copyrights belong to their own right holders.
 #
-#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/__init__.py

@@ -8,6 +8,8 @@
 #
 # Based on Gentoo's portage.py.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/build.py

@@ -10,6 +10,8 @@
 #
 # Based on Gentoo's portage.py.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/cache.py

@@ -15,6 +15,8 @@
 # Copyright (C) 2005        Holger Hans Peter Freyther
 # Copyright (C) 2005        ROAD GmbH
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/cache_extra.py

@@ -12,6 +12,8 @@
 
 # Copyright (C) 2011, Intel Corporation. All rights reserved.
 
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/checksum.py

@@ -2,6 +2,8 @@
 #
 # Copyright (C) 2012 Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 4 - 0
lib/bb/codeparser.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 """
 BitBake code parser
 

+ 2 - 0
lib/bb/command.py

@@ -6,6 +6,8 @@ Provide an interface to interact with the bitbake server through 'commands'
 
 # Copyright (C) 2006-2007  Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 4 - 0
lib/bb/compat.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 """Code pulled from future python versions, here for compatibility"""
 
 from collections import MutableMapping, KeysView, ValuesView, ItemsView, OrderedDict

+ 2 - 0
lib/bb/cooker.py

@@ -9,6 +9,8 @@
 # Copyright (C) 2005        ROAD GmbH
 # Copyright (C) 2006 - 2007 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/cookerdata.py

@@ -9,6 +9,8 @@
 # Copyright (C) 2005        ROAD GmbH
 # Copyright (C) 2006        Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 4 - 0
lib/bb/daemonize.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 """
 Python Daemonizing helper
 

+ 2 - 0
lib/bb/data.py

@@ -22,6 +22,8 @@ the speed is more critical here.
 # Copyright (C) 2003, 2004  Chris Larson
 # Copyright (C) 2005        Holger Hans Peter Freyther
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/data_smart.py

@@ -14,6 +14,8 @@ BitBake build tools.
 # Copyright (C) 2005        Uli Luckas
 # Copyright (C) 2005        ROAD GmbH
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/event.py

@@ -9,6 +9,8 @@ BitBake build tools.
 
 # Copyright (C) 2003, 2004  Chris Larson
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 3 - 0
lib/bb/exceptions.py

@@ -1,3 +1,6 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
 
 import inspect
 import traceback

+ 2 - 0
lib/bb/fetch2/__init__.py

@@ -10,6 +10,8 @@ BitBake build tools.
 # Copyright (C) 2003, 2004  Chris Larson
 # Copyright (C) 2012  Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/bzr.py

@@ -10,6 +10,8 @@ BitBake 'Fetch' implementation for bzr.
 #   BitBake build tools.
 #   Copyright (C) 2003, 2004  Chris Larson
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/clearcase.py

@@ -47,6 +47,8 @@ User credentials:
 """
 # Copyright (C) 2014 Siemens AG
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/cvs.py

@@ -10,6 +10,8 @@ BitBake build tools.
 
 # Copyright (C) 2003, 2004  Chris Larson
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 3 - 1
lib/bb/fetch2/git.py

@@ -55,7 +55,9 @@ Supported SRC_URI options are:
 
 """
 
-#Copyright (C) 2005 Richard Purdie
+# Copyright (C) 2005 Richard Purdie
+#
+# SPDX-License-Identifier: GPL-2.0-only
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as

+ 2 - 0
lib/bb/fetch2/gitannex.py

@@ -7,6 +7,8 @@ BitBake 'Fetch' git annex implementation
 # Copyright (C) 2014 Otavio Salvador
 # Copyright (C) 2014 O.S. Systems Software LTDA.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/gitsm.py

@@ -16,6 +16,8 @@ NOTE: Switching a SRC_URI from "git://" to "gitsm://" requires a clean of your r
 
 # Copyright (C) 2013 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/hg.py

@@ -13,6 +13,8 @@ BitBake 'Fetch' implementation for mercurial DRCS (hg).
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

+ 2 - 0
lib/bb/fetch2/local.py

@@ -10,6 +10,8 @@ BitBake build tools.
 
 # Copyright (C) 2003, 2004  Chris Larson
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 3 - 0
lib/bb/fetch2/npm.py

@@ -1,3 +1,6 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """

+ 3 - 0
lib/bb/fetch2/osc.py

@@ -1,3 +1,6 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # ex:ts=4:sw=4:sts=4:et
 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
 """

+ 2 - 0
lib/bb/fetch2/perforce.py

@@ -8,6 +8,8 @@ BitBake 'Fetch' implementation for perforce
 # Copyright (C) 2003, 2004  Chris Larson
 # Copyright (C) 2016 Kodak Alaris, Inc.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/repo.py

@@ -10,6 +10,8 @@ BitBake "Fetch" repo (git) implementation
 # Based on git.py which is:
 #Copyright (C) 2005 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/s3.py

@@ -13,6 +13,8 @@ The aws tool must be correctly installed and configured prior to use.
 # Based in part on bb.fetch2.wget:
 #    Copyright (C) 2003, 2004  Chris Larson
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/sftp.py

@@ -44,6 +44,8 @@ SRC_URI = "sftp://user@host.example.com/dir/path.file.txt"
 # Based in part on bb.fetch2.wget:
 #    Copyright (C) 2003, 2004  Chris Larson
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/ssh.py

@@ -29,6 +29,8 @@ IETF secsh internet draft:
 #            Copyright 2003 Holger Schurig
 #
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/svn.py

@@ -8,6 +8,8 @@ BitBake 'Fetch' implementation for svn.
 # Copyright (C) 2003, 2004  Chris Larson
 # Copyright (C) 2004        Marcin Juszkiewicz
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/fetch2/wget.py

@@ -10,6 +10,8 @@ BitBake build tools.
 
 # Copyright (C) 2003, 2004  Chris Larson
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/main.py

@@ -9,6 +9,8 @@
 # Copyright (C) 2005        ROAD GmbH
 # Copyright (C) 2006        Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/methodpool.py

@@ -4,6 +4,8 @@
 #
 # Copyright (C)       2006 Holger Hans Peter Freyther
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/monitordisk.py

@@ -4,6 +4,8 @@
 #
 # Copyright (C) 2012 Robert Yang
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/msg.py

@@ -9,6 +9,8 @@ Message handling infrastructure for bitbake
 
 # Copyright (C) 2006        Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 3 - 0
lib/bb/namedtuple_with_abc.py

@@ -1,6 +1,9 @@
 # http://code.activestate.com/recipes/577629-namedtupleabc-abstract-base-class-mix-in-for-named/
 #!/usr/bin/env python
 # Copyright (c) 2011 Jan Kaliszewski (zuo). Available under the MIT License.
+#
+# SPDX-License-Identifier: MIT
+#
 
 """
 namedtuple_with_abc.py:

+ 2 - 0
lib/bb/parse/__init__.py

@@ -9,6 +9,8 @@ File parsers for the BitBake build tools.
 # Copyright (C) 2003, 2004  Chris Larson
 # Copyright (C) 2003, 2004  Phil Blundell
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/parse/ast.py

@@ -8,6 +8,8 @@
 # Copyright (C) 2003, 2004 Phil Blundell
 # Copyright (C) 2009 Holger Hans Peter Freyther
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/parse/parse_py/BBHandler.py

@@ -12,6 +12,8 @@
 #  Copyright (C) 2003, 2004  Chris Larson
 #  Copyright (C) 2003, 2004  Phil Blundell
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/parse/parse_py/ConfHandler.py

@@ -11,6 +11,8 @@
 # Copyright (C) 2003, 2004  Chris Larson
 # Copyright (C) 2003, 2004  Phil Blundell
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/parse/parse_py/__init__.py

@@ -11,6 +11,8 @@ File parsers for the BitBake build tools.
 # Copyright (C) 2003, 2004  Chris Larson
 # Copyright (C) 2003, 2004  Phil Blundell
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/persist_data.py

@@ -8,6 +8,8 @@ currently, providing a key/value store accessed by 'domain'.
 # Copyright (C) 2007        Richard Purdie
 # Copyright (C) 2010        Chris Larson <chris_larson@mentor.com>
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 4 - 0
lib/bb/process.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 import logging
 import signal
 import subprocess

+ 2 - 0
lib/bb/progress.py

@@ -4,6 +4,8 @@ BitBake progress handling code
 
 # Copyright (C) 2016 Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/providers.py

@@ -8,6 +8,8 @@
 # Copyright (C) 2005        ROAD GmbH
 # Copyright (C) 2006        Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/remotedata.py

@@ -6,6 +6,8 @@ Provides support for using a datastore from the bitbake client
 
 # Copyright (C) 2016  Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/runqueue.py

@@ -9,6 +9,8 @@ Handles preparation and execution of a queue of tasks
 
 # Copyright (C) 2006-2007  Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/server/__init__.py

@@ -5,6 +5,8 @@
 # Copyright (C) 2006 - 2008  Richard Purdie
 # Copyright (C) 2013         Alexandru Damian
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/server/process.py

@@ -3,6 +3,8 @@
 #
 # Copyright (C) 2010 Bob Foerster <robert@erafx.com>
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/server/xmlrpcclient.py

@@ -4,6 +4,8 @@
 # Copyright (C) 2006 - 2007  Michael 'Mickey' Lauer
 # Copyright (C) 2006 - 2008  Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/server/xmlrpcserver.py

@@ -4,6 +4,8 @@
 # Copyright (C) 2006 - 2007  Michael 'Mickey' Lauer
 # Copyright (C) 2006 - 2008  Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 4 - 0
lib/bb/siggen.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 import hashlib
 import logging
 import os

+ 2 - 0
lib/bb/taskdata.py

@@ -10,6 +10,8 @@ Task data collection and handling
 
 # Copyright (C) 2006  Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tests/codeparser.py

@@ -6,6 +6,8 @@
 # Copyright (C) 2010 Chris Larson
 # Copyright (C) 2012 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tests/cooker.py

@@ -3,6 +3,8 @@
 #
 # BitBake Tests for cooker.py
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tests/cow.py

@@ -3,6 +3,8 @@
 #
 # BitBake Tests for Copy-on-Write (cow.py)
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # Copyright 2006 Holger Freyther <freyther@handhelds.org>
 #
 # This program is free software; you can redistribute it and/or modify

+ 2 - 0
lib/bb/tests/data.py

@@ -6,6 +6,8 @@
 # Copyright (C) 2010 Chris Larson
 # Copyright (C) 2012 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tests/event.py

@@ -5,6 +5,8 @@
 #
 # Copyright (C) 2017 Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tests/fetch.py

@@ -5,6 +5,8 @@
 #
 # Copyright (C) 2012 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tests/parse.py

@@ -5,6 +5,8 @@
 #
 # Copyright (C) 2015 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tests/persist_data.py

@@ -5,6 +5,8 @@
 #
 # Copyright (C) 2018 Garmin Ltd.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tests/utils.py

@@ -5,6 +5,8 @@
 #
 # Copyright (C) 2012 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/tinfoil.py

@@ -4,6 +4,8 @@
 # Copyright (C) 2011 Mentor Graphics Corporation
 # Copyright (C) 2006-2012 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/ui/__init__.py

@@ -3,6 +3,8 @@
 #
 # Copyright (C) 2006-2007 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/ui/buildinfohelper.py

@@ -3,6 +3,8 @@
 #
 # Copyright (C) 2013        Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/ui/knotty.py

@@ -5,6 +5,8 @@
 #
 # Copyright (C) 2006-2012 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/ui/ncurses.py

@@ -6,6 +6,8 @@
 # Copyright (C) 2006 Michael 'Mickey' Lauer
 # Copyright (C) 2006-2007 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/ui/taskexp.py

@@ -4,6 +4,8 @@
 # Copyright (C) 2007        Ross Burton
 # Copyright (C) 2007 - 2008 Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/ui/toasterui.py

@@ -7,6 +7,8 @@
 # Copyright (C) 2006-2012 Richard Purdie
 # Copyright (C) 2013      Intel Corporation
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/ui/uievent.py

@@ -4,6 +4,8 @@
 # Copyright (C) 2006 - 2007  Michael 'Mickey' Lauer
 # Copyright (C) 2006 - 2007  Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/ui/uihelper.py

@@ -4,6 +4,8 @@
 # Copyright (C) 2006 - 2007  Michael 'Mickey' Lauer
 # Copyright (C) 2006 - 2007  Richard Purdie
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/bb/utils.py

@@ -6,6 +6,8 @@ BitBake Utility Functions
 
 # Copyright (C) 2004 Michael Lauer
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 4 - 0
lib/bblayers/__init__.py

@@ -1,2 +1,6 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 from pkgutil import extend_path
 __path__ = extend_path(__path__, __name__)

+ 4 - 0
lib/bblayers/action.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 import fnmatch
 import logging
 import os

+ 4 - 0
lib/bblayers/common.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 import argparse
 import logging
 import os

+ 4 - 0
lib/bblayers/layerindex.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 import layerindexlib
 
 import argparse

+ 4 - 0
lib/bblayers/query.py

@@ -1,3 +1,7 @@
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+
 import collections
 import fnmatch
 import logging

+ 2 - 0
lib/hashserv/__init__.py

@@ -1,5 +1,7 @@
 # Copyright (C) 2018 Garmin Ltd.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/hashserv/tests.py

@@ -2,6 +2,8 @@
 #
 # Copyright (C) 2018 Garmin Ltd.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/layerindexlib/__init__.py

@@ -1,5 +1,7 @@
 # Copyright (C) 2016-2018 Wind River Systems, Inc.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/layerindexlib/cooker.py

@@ -1,5 +1,7 @@
 # Copyright (C) 2016-2018 Wind River Systems, Inc.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

+ 2 - 0
lib/layerindexlib/plugin.py

@@ -1,5 +1,7 @@
 # Copyright (C) 2016-2018 Wind River Systems, Inc.
 #
+# SPDX-License-Identifier: GPL-2.0-only
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 as
 # published by the Free Software Foundation.

Some files were not shown because too many files changed in this diff