From ac556588fac55e91b7ce4839a975eb9ebb5aa192 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 30 Apr 2019 11:05:26 +0100 Subject: 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 Signed-off-by: Armin Kuster --- COPYING | 339 --------------------- HEADER | 2 + LICENSE | 12 +- LICENSE.GPL-2.0-only | 288 +++++++++++++++++ LICENSE.MIT | 25 ++ MANIFEST.in | 4 +- bin/bitbake | 2 + bin/bitbake-diffsigs | 2 + bin/bitbake-hashserv | 2 + bin/bitbake-layers | 2 + bin/bitbake-prserv | 4 + bin/bitbake-selftest | 2 + bin/bitbake-worker | 3 + bin/bitdoc | 2 + bin/git-make-shallow | 4 + bin/toaster | 4 +- bin/toaster-eventreplay | 3 +- lib/bb/__init__.py | 2 + lib/bb/build.py | 2 + lib/bb/cache.py | 2 + lib/bb/cache_extra.py | 2 + lib/bb/checksum.py | 2 + lib/bb/codeparser.py | 4 + lib/bb/command.py | 2 + lib/bb/compat.py | 4 + lib/bb/cooker.py | 2 + lib/bb/cookerdata.py | 2 + lib/bb/daemonize.py | 4 + lib/bb/data.py | 2 + lib/bb/data_smart.py | 2 + lib/bb/event.py | 2 + lib/bb/exceptions.py | 3 + lib/bb/fetch2/__init__.py | 2 + lib/bb/fetch2/bzr.py | 2 + lib/bb/fetch2/clearcase.py | 2 + lib/bb/fetch2/cvs.py | 2 + lib/bb/fetch2/git.py | 4 +- lib/bb/fetch2/gitannex.py | 2 + lib/bb/fetch2/gitsm.py | 2 + lib/bb/fetch2/hg.py | 2 + lib/bb/fetch2/local.py | 2 + lib/bb/fetch2/npm.py | 3 + lib/bb/fetch2/osc.py | 3 + lib/bb/fetch2/perforce.py | 2 + lib/bb/fetch2/repo.py | 2 + lib/bb/fetch2/s3.py | 2 + lib/bb/fetch2/sftp.py | 2 + lib/bb/fetch2/ssh.py | 2 + lib/bb/fetch2/svn.py | 2 + lib/bb/fetch2/wget.py | 2 + lib/bb/main.py | 2 + lib/bb/methodpool.py | 2 + lib/bb/monitordisk.py | 2 + lib/bb/msg.py | 2 + lib/bb/namedtuple_with_abc.py | 3 + lib/bb/parse/__init__.py | 2 + lib/bb/parse/ast.py | 2 + lib/bb/parse/parse_py/BBHandler.py | 2 + lib/bb/parse/parse_py/ConfHandler.py | 2 + lib/bb/parse/parse_py/__init__.py | 2 + lib/bb/persist_data.py | 2 + lib/bb/process.py | 4 + lib/bb/progress.py | 2 + lib/bb/providers.py | 2 + lib/bb/remotedata.py | 2 + lib/bb/runqueue.py | 2 + lib/bb/server/__init__.py | 2 + lib/bb/server/process.py | 2 + lib/bb/server/xmlrpcclient.py | 2 + lib/bb/server/xmlrpcserver.py | 2 + lib/bb/siggen.py | 4 + lib/bb/taskdata.py | 2 + lib/bb/tests/codeparser.py | 2 + lib/bb/tests/cooker.py | 2 + lib/bb/tests/cow.py | 2 + lib/bb/tests/data.py | 2 + lib/bb/tests/event.py | 2 + lib/bb/tests/fetch.py | 2 + lib/bb/tests/parse.py | 2 + lib/bb/tests/persist_data.py | 2 + lib/bb/tests/utils.py | 2 + lib/bb/tinfoil.py | 2 + lib/bb/ui/__init__.py | 2 + lib/bb/ui/buildinfohelper.py | 2 + lib/bb/ui/knotty.py | 2 + lib/bb/ui/ncurses.py | 2 + lib/bb/ui/taskexp.py | 2 + lib/bb/ui/toasterui.py | 2 + lib/bb/ui/uievent.py | 2 + lib/bb/ui/uihelper.py | 2 + lib/bb/utils.py | 2 + lib/bblayers/__init__.py | 4 + lib/bblayers/action.py | 4 + lib/bblayers/common.py | 4 + lib/bblayers/layerindex.py | 4 + lib/bblayers/query.py | 4 + lib/hashserv/__init__.py | 2 + lib/hashserv/tests.py | 2 + lib/layerindexlib/__init__.py | 2 + lib/layerindexlib/cooker.py | 2 + lib/layerindexlib/plugin.py | 2 + lib/layerindexlib/restapi.py | 2 + lib/layerindexlib/tests/common.py | 2 + lib/layerindexlib/tests/cooker.py | 2 + lib/layerindexlib/tests/layerindexobj.py | 2 + lib/layerindexlib/tests/restapi.py | 2 + lib/progressbar/__init__.py | 2 + lib/progressbar/compat.py | 2 + lib/progressbar/progressbar.py | 2 + lib/progressbar/widgets.py | 2 + lib/prserv/__init__.py | 4 + lib/prserv/db.py | 4 + lib/prserv/serv.py | 4 + lib/pyinotify.py | 2 + lib/toaster/bldcollector/admin.py | 4 + lib/toaster/bldcollector/urls.py | 2 + lib/toaster/bldcollector/views.py | 2 + lib/toaster/bldcontrol/admin.py | 4 + lib/toaster/bldcontrol/bbcontroller.py | 2 + lib/toaster/bldcontrol/localhostbecontroller.py | 2 + .../management/commands/checksettings.py | 4 + .../bldcontrol/management/commands/runbuilds.py | 4 + lib/toaster/bldcontrol/models.py | 4 + lib/toaster/bldcontrol/views.py | 4 + lib/toaster/manage.py | 4 + lib/toaster/orm/management/commands/lsupdates.py | 2 + lib/toaster/orm/models.py | 2 + lib/toaster/tests/browser/selenium_helpers.py | 2 + lib/toaster/tests/browser/selenium_helpers_base.py | 2 + lib/toaster/tests/browser/test_all_builds_page.py | 2 + .../tests/browser/test_all_projects_page.py | 2 + .../tests/browser/test_builddashboard_page.py | 2 + .../browser/test_builddashboard_page_artifacts.py | 2 + .../browser/test_builddashboard_page_recipes.py | 2 + .../browser/test_builddashboard_page_tasks.py | 2 + lib/toaster/tests/browser/test_js_unit_tests.py | 2 + lib/toaster/tests/browser/test_landing_page.py | 2 + .../tests/browser/test_layerdetails_page.py | 2 + .../browser/test_most_recent_builds_states.py | 2 + .../tests/browser/test_new_custom_image_page.py | 2 + lib/toaster/tests/browser/test_new_project_page.py | 2 + .../tests/browser/test_project_builds_page.py | 2 + .../tests/browser/test_project_config_page.py | 2 + lib/toaster/tests/browser/test_project_page.py | 2 + lib/toaster/tests/browser/test_sample.py | 2 + lib/toaster/tests/browser/test_task_page.py | 2 + lib/toaster/tests/browser/test_toastertable_ui.py | 2 + lib/toaster/tests/builds/buildtest.py | 2 + lib/toaster/tests/builds/test_core_image_min.py | 2 + lib/toaster/tests/commands/test_loaddata.py | 2 + lib/toaster/tests/commands/test_lsupdates.py | 2 + lib/toaster/tests/commands/test_runbuilds.py | 2 + lib/toaster/tests/db/test_db.py | 2 + lib/toaster/tests/eventreplay/__init__.py | 2 + lib/toaster/tests/functional/functional_helpers.py | 2 + .../tests/functional/test_functional_basic.py | 2 + lib/toaster/tests/views/test_views.py | 2 + lib/toaster/toastergui/api.py | 2 + lib/toaster/toastergui/buildtables.py | 2 + lib/toaster/toastergui/tablefilter.py | 2 + lib/toaster/toastergui/tables.py | 2 + .../toastergui/templatetags/field_values_filter.py | 4 + .../templatetags/objects_to_dictionaries_filter.py | 4 + .../toastergui/templatetags/project_url_tag.py | 4 + lib/toaster/toastergui/templatetags/projecttags.py | 2 + lib/toaster/toastergui/typeaheads.py | 2 + lib/toaster/toastergui/urls.py | 2 + lib/toaster/toastergui/views.py | 2 + lib/toaster/toastergui/widgets.py | 2 + .../toastermain/management/commands/builddelete.py | 4 + .../toastermain/management/commands/buildimport.py | 2 + .../toastermain/management/commands/buildslist.py | 4 + .../toastermain/management/commands/checksocket.py | 2 + .../toastermain/management/commands/perf.py | 4 + lib/toaster/toastermain/settings.py | 2 + .../toastermain/settings_production_example.py | 2 + lib/toaster/toastermain/settings_test.py | 2 + lib/toaster/toastermain/urls.py | 2 + lib/toaster/toastermain/wsgi.py | 4 + 179 files changed, 740 insertions(+), 344 deletions(-) delete mode 100644 COPYING create mode 100644 LICENSE.GPL-2.0-only create mode 100644 LICENSE.MIT diff --git a/COPYING b/COPYING deleted file mode 100644 index d511905c1..000000000 --- a/COPYING +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - 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. - - 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. - - - Copyright (C) - - 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. - - , 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. diff --git a/HEADER b/HEADER index 9859255df..113872d46 100644 --- a/HEADER +++ b/HEADER @@ -4,6 +4,8 @@ # # Copyright (C) # +# 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. diff --git a/LICENSE b/LICENSE index 7d4e5f44b..845804230 100644 --- a/LICENSE +++ b/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. + diff --git a/LICENSE.GPL-2.0-only b/LICENSE.GPL-2.0-only new file mode 100644 index 000000000..5db3c0a21 --- /dev/null +++ b/LICENSE.GPL-2.0-only @@ -0,0 +1,288 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + +Note: +Individual files contain the following tag 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/ diff --git a/LICENSE.MIT b/LICENSE.MIT new file mode 100644 index 000000000..a6919eb7e --- /dev/null +++ b/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/ diff --git a/MANIFEST.in b/MANIFEST.in index b19737812..82552390b 100644 --- a/MANIFEST.in +++ b/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/* diff --git a/bin/bitbake b/bin/bitbake index 55eb53089..cd1adc370 100755 --- a/bin/bitbake +++ b/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. diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs index fa430bb3b..673565a84 100755 --- a/bin/bitbake-diffsigs +++ b/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. diff --git a/bin/bitbake-hashserv b/bin/bitbake-hashserv index c49397b73..924e60259 100755 --- a/bin/bitbake-hashserv +++ b/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. diff --git a/bin/bitbake-layers b/bin/bitbake-layers index d184011ea..da5299051 100755 --- a/bin/bitbake-layers +++ b/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. diff --git a/bin/bitbake-prserv b/bin/bitbake-prserv index f38d2dd88..1e9b6cbc1 100755 --- a/bin/bitbake-prserv +++ b/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 diff --git a/bin/bitbake-selftest b/bin/bitbake-selftest index 99f1af910..5b2a5e1d1 100755 --- a/bin/bitbake-selftest +++ b/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. diff --git a/bin/bitbake-worker b/bin/bitbake-worker index a9e997e1f..f63f060c5 100755 --- a/bin/bitbake-worker +++ b/bin/bitbake-worker @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +# +# SPDX-License-Identifier: GPL-2.0-only +# import os import sys diff --git a/bin/bitdoc b/bin/bitdoc index 274467882..cfe54a923 100755 --- a/bin/bitdoc +++ b/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. diff --git a/bin/git-make-shallow b/bin/git-make-shallow index 296d3a3db..57069f7ed 100755 --- a/bin/git-make-shallow +++ b/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 diff --git a/bin/toaster b/bin/toaster index ecf66fa51..9da2a2649 100755 --- a/bin/toaster +++ b/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 diff --git a/bin/toaster-eventreplay b/bin/toaster-eventreplay index 80967a093..abd91fe8b 100755 --- a/bin/toaster-eventreplay +++ b/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. diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py index df54b6b30..977e1095a 100644 --- a/lib/bb/__init__.py +++ b/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. diff --git a/lib/bb/build.py b/lib/bb/build.py index 7571421d7..8b063194b 100644 --- a/lib/bb/build.py +++ b/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. diff --git a/lib/bb/cache.py b/lib/bb/cache.py index 65c514b90..42193dc9d 100644 --- a/lib/bb/cache.py +++ b/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. diff --git a/lib/bb/cache_extra.py b/lib/bb/cache_extra.py index 83f4959d6..108d55d16 100644 --- a/lib/bb/cache_extra.py +++ b/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. diff --git a/lib/bb/checksum.py b/lib/bb/checksum.py index 4e1598fe8..9ac07a6a8 100644 --- a/lib/bb/checksum.py +++ b/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. diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py index ac995a6a1..fd2c4734f 100644 --- a/lib/bb/codeparser.py +++ b/lib/bb/codeparser.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + """ BitBake code parser diff --git a/lib/bb/command.py b/lib/bb/command.py index 6c966e3db..9ebaac643 100644 --- a/lib/bb/command.py +++ b/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. diff --git a/lib/bb/compat.py b/lib/bb/compat.py index de1923d28..49356681a 100644 --- a/lib/bb/compat.py +++ b/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 diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 8dac7934f..a63ef86d9 100644 --- a/lib/bb/cooker.py +++ b/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. diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index 09412e28c..3b074b2f3 100644 --- a/lib/bb/cookerdata.py +++ b/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. diff --git a/lib/bb/daemonize.py b/lib/bb/daemonize.py index c937675eb..f01e6ec7c 100644 --- a/lib/bb/daemonize.py +++ b/lib/bb/daemonize.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + """ Python Daemonizing helper diff --git a/lib/bb/data.py b/lib/bb/data.py index 29c238803..ba50b9ff1 100644 --- a/lib/bb/data.py +++ b/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. diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 07db7be97..441bb3001 100644 --- a/lib/bb/data_smart.py +++ b/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. diff --git a/lib/bb/event.py b/lib/bb/event.py index 5b1b094a8..48f8e7384 100644 --- a/lib/bb/event.py +++ b/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. diff --git a/lib/bb/exceptions.py b/lib/bb/exceptions.py index cd713439e..ecbad5997 100644 --- a/lib/bb/exceptions.py +++ b/lib/bb/exceptions.py @@ -1,3 +1,6 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# import inspect import traceback diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 7f5d08508..f99d79f0a 100644 --- a/lib/bb/fetch2/__init__.py +++ b/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. diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py index 658502f9a..891fef9b9 100644 --- a/lib/bb/fetch2/bzr.py +++ b/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. diff --git a/lib/bb/fetch2/clearcase.py b/lib/bb/fetch2/clearcase.py index 3a6573d0b..ff181bb78 100644 --- a/lib/bb/fetch2/clearcase.py +++ b/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. diff --git a/lib/bb/fetch2/cvs.py b/lib/bb/fetch2/cvs.py index 0e0a3196f..666f4be2b 100644 --- a/lib/bb/fetch2/cvs.py +++ b/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. diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index c69d25c91..78ad18cc7 100644 --- a/lib/bb/fetch2/git.py +++ b/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 diff --git a/lib/bb/fetch2/gitannex.py b/lib/bb/fetch2/gitannex.py index a9b69caab..3a32c85a8 100644 --- a/lib/bb/fetch2/gitannex.py +++ b/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. diff --git a/lib/bb/fetch2/gitsm.py b/lib/bb/fetch2/gitsm.py index a07eb7e7e..719d6cd4b 100644 --- a/lib/bb/fetch2/gitsm.py +++ b/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. diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py index 5a2985e16..c9eeaaefc 100644 --- a/lib/bb/fetch2/hg.py +++ b/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 diff --git a/lib/bb/fetch2/local.py b/lib/bb/fetch2/local.py index a114ac12e..13e6d80b5 100644 --- a/lib/bb/fetch2/local.py +++ b/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. diff --git a/lib/bb/fetch2/npm.py b/lib/bb/fetch2/npm.py index 65bf5a364..7235f899f 100644 --- a/lib/bb/fetch2/npm.py +++ b/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 -*- """ diff --git a/lib/bb/fetch2/osc.py b/lib/bb/fetch2/osc.py index 6c60456b5..19c0d9dca 100644 --- a/lib/bb/fetch2/osc.py +++ b/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 -*- """ diff --git a/lib/bb/fetch2/perforce.py b/lib/bb/fetch2/perforce.py index 903a8e61a..366da99ea 100644 --- a/lib/bb/fetch2/perforce.py +++ b/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. diff --git a/lib/bb/fetch2/repo.py b/lib/bb/fetch2/repo.py index 8c7e81853..066ab08fc 100644 --- a/lib/bb/fetch2/repo.py +++ b/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. diff --git a/lib/bb/fetch2/s3.py b/lib/bb/fetch2/s3.py index 162928862..fae7c8b0f 100644 --- a/lib/bb/fetch2/s3.py +++ b/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. diff --git a/lib/bb/fetch2/sftp.py b/lib/bb/fetch2/sftp.py index 81884a6aa..6dea6ad6b 100644 --- a/lib/bb/fetch2/sftp.py +++ b/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. diff --git a/lib/bb/fetch2/ssh.py b/lib/bb/fetch2/ssh.py index 6047ee417..d416a9db8 100644 --- a/lib/bb/fetch2/ssh.py +++ b/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. diff --git a/lib/bb/fetch2/svn.py b/lib/bb/fetch2/svn.py index 9dcf3eb09..4249e34c4 100644 --- a/lib/bb/fetch2/svn.py +++ b/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. diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py index 3bb3e3bb0..89dfd4a7b 100644 --- a/lib/bb/fetch2/wget.py +++ b/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. diff --git a/lib/bb/main.py b/lib/bb/main.py index 41dd3b9e0..215c63ef9 100755 --- a/lib/bb/main.py +++ b/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. diff --git a/lib/bb/methodpool.py b/lib/bb/methodpool.py index 49aed3338..2f899098e 100644 --- a/lib/bb/methodpool.py +++ b/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. diff --git a/lib/bb/monitordisk.py b/lib/bb/monitordisk.py index 2ad1e6156..c243add54 100644 --- a/lib/bb/monitordisk.py +++ b/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. diff --git a/lib/bb/msg.py b/lib/bb/msg.py index 96f077ec4..64662079a 100644 --- a/lib/bb/msg.py +++ b/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. diff --git a/lib/bb/namedtuple_with_abc.py b/lib/bb/namedtuple_with_abc.py index 32f2fc642..c8e1d55c1 100644 --- a/lib/bb/namedtuple_with_abc.py +++ b/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: diff --git a/lib/bb/parse/__init__.py b/lib/bb/parse/__init__.py index 5397d57a5..8ff1b8a24 100644 --- a/lib/bb/parse/__init__.py +++ b/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. diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py index 6d7c80b34..cf76dadba 100644 --- a/lib/bb/parse/ast.py +++ b/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. diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py index 9dba5f233..492057b44 100644 --- a/lib/bb/parse/parse_py/BBHandler.py +++ b/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. diff --git a/lib/bb/parse/parse_py/ConfHandler.py b/lib/bb/parse/parse_py/ConfHandler.py index ea49f8ca9..d1784b6c5 100644 --- a/lib/bb/parse/parse_py/ConfHandler.py +++ b/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. diff --git a/lib/bb/parse/parse_py/__init__.py b/lib/bb/parse/parse_py/__init__.py index 3e658d0de..a8f78dba7 100644 --- a/lib/bb/parse/parse_py/__init__.py +++ b/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. diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index 0d44100f1..cac56728a 100644 --- a/lib/bb/persist_data.py +++ b/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 # +# 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. diff --git a/lib/bb/process.py b/lib/bb/process.py index e69697cb6..2dc472a86 100644 --- a/lib/bb/process.py +++ b/lib/bb/process.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + import logging import signal import subprocess diff --git a/lib/bb/progress.py b/lib/bb/progress.py index f54d1c76f..00dddabbb 100644 --- a/lib/bb/progress.py +++ b/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. diff --git a/lib/bb/providers.py b/lib/bb/providers.py index f496d84d1..856f0de76 100644 --- a/lib/bb/providers.py +++ b/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. diff --git a/lib/bb/remotedata.py b/lib/bb/remotedata.py index 68ecffc19..05c6fabdf 100644 --- a/lib/bb/remotedata.py +++ b/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. diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 329cda33a..0ca9747e9 100644 --- a/lib/bb/runqueue.py +++ b/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. diff --git a/lib/bb/server/__init__.py b/lib/bb/server/__init__.py index 5a3fba968..5ec7a7560 100644 --- a/lib/bb/server/__init__.py +++ b/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. diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py index 80a7875ad..bac94fcc2 100644 --- a/lib/bb/server/process.py +++ b/lib/bb/server/process.py @@ -3,6 +3,8 @@ # # Copyright (C) 2010 Bob Foerster # +# 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. diff --git a/lib/bb/server/xmlrpcclient.py b/lib/bb/server/xmlrpcclient.py index 4661a9e5a..fc2fddd54 100644 --- a/lib/bb/server/xmlrpcclient.py +++ b/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. diff --git a/lib/bb/server/xmlrpcserver.py b/lib/bb/server/xmlrpcserver.py index 875b1282e..b885f9a79 100644 --- a/lib/bb/server/xmlrpcserver.py +++ b/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. diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py index 09c9c8a25..3e2a85fc8 100644 --- a/lib/bb/siggen.py +++ b/lib/bb/siggen.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + import hashlib import logging import os diff --git a/lib/bb/taskdata.py b/lib/bb/taskdata.py index 94e822c48..5316d1b42 100644 --- a/lib/bb/taskdata.py +++ b/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. diff --git a/lib/bb/tests/codeparser.py b/lib/bb/tests/codeparser.py index 3fd76a8f9..00ee6de53 100644 --- a/lib/bb/tests/codeparser.py +++ b/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. diff --git a/lib/bb/tests/cooker.py b/lib/bb/tests/cooker.py index 2b4423650..850dde4f6 100644 --- a/lib/bb/tests/cooker.py +++ b/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. diff --git a/lib/bb/tests/cow.py b/lib/bb/tests/cow.py index d149d84d0..5051e4ed7 100644 --- a/lib/bb/tests/cow.py +++ b/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 # # This program is free software; you can redistribute it and/or modify diff --git a/lib/bb/tests/data.py b/lib/bb/tests/data.py index 3c511f214..b584edee5 100644 --- a/lib/bb/tests/data.py +++ b/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. diff --git a/lib/bb/tests/event.py b/lib/bb/tests/event.py index d3a5f6269..4822dc7bc 100644 --- a/lib/bb/tests/event.py +++ b/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. diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py index 64cdf3d90..d1530e4dc 100644 --- a/lib/bb/tests/fetch.py +++ b/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. diff --git a/lib/bb/tests/parse.py b/lib/bb/tests/parse.py index 1bc47405d..d256aa7cf 100644 --- a/lib/bb/tests/parse.py +++ b/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. diff --git a/lib/bb/tests/persist_data.py b/lib/bb/tests/persist_data.py index 812bcbd7b..6aee9f1ca 100644 --- a/lib/bb/tests/persist_data.py +++ b/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. diff --git a/lib/bb/tests/utils.py b/lib/bb/tests/utils.py index f1cd83a41..13351068d 100644 --- a/lib/bb/tests/utils.py +++ b/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. diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py index 368264f39..da049b6e5 100644 --- a/lib/bb/tinfoil.py +++ b/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. diff --git a/lib/bb/ui/__init__.py b/lib/bb/ui/__init__.py index a4805ed02..669dc86fc 100644 --- a/lib/bb/ui/__init__.py +++ b/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. diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py index 31323d281..37b94cd07 100644 --- a/lib/bb/ui/buildinfohelper.py +++ b/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. diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index fa88e6ccd..44fd82f50 100644 --- a/lib/bb/ui/knotty.py +++ b/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. diff --git a/lib/bb/ui/ncurses.py b/lib/bb/ui/ncurses.py index 8690c529c..713a4a416 100644 --- a/lib/bb/ui/ncurses.py +++ b/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. diff --git a/lib/bb/ui/taskexp.py b/lib/bb/ui/taskexp.py index 8305d70f4..3ea0a242b 100644 --- a/lib/bb/ui/taskexp.py +++ b/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. diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py index 88cec3759..d2517edbb 100644 --- a/lib/bb/ui/toasterui.py +++ b/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. diff --git a/lib/bb/ui/uievent.py b/lib/bb/ui/uievent.py index 9542b911c..e96454404 100644 --- a/lib/bb/ui/uievent.py +++ b/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. diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py index 963c1ea2d..000a7cf41 100644 --- a/lib/bb/ui/uihelper.py +++ b/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. diff --git a/lib/bb/utils.py b/lib/bb/utils.py index a3f75fbe9..69e01519b 100644 --- a/lib/bb/utils.py +++ b/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. diff --git a/lib/bblayers/__init__.py b/lib/bblayers/__init__.py index 3ad9513f4..4e7c09da0 100644 --- a/lib/bblayers/__init__.py +++ b/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__) diff --git a/lib/bblayers/action.py b/lib/bblayers/action.py index a3f658f93..d6459d661 100644 --- a/lib/bblayers/action.py +++ b/lib/bblayers/action.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + import fnmatch import logging import os diff --git a/lib/bblayers/common.py b/lib/bblayers/common.py index 98515ced4..c5657d381 100644 --- a/lib/bblayers/common.py +++ b/lib/bblayers/common.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + import argparse import logging import os diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py index b2ff2268e..57cd9027f 100644 --- a/lib/bblayers/layerindex.py +++ b/lib/bblayers/layerindex.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + import layerindexlib import argparse diff --git a/lib/bblayers/query.py b/lib/bblayers/query.py index 9294dfa88..993589de9 100644 --- a/lib/bblayers/query.py +++ b/lib/bblayers/query.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + import collections import fnmatch import logging diff --git a/lib/hashserv/__init__.py b/lib/hashserv/__init__.py index 46bca7cab..6f4a04696 100644 --- a/lib/hashserv/__init__.py +++ b/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. diff --git a/lib/hashserv/tests.py b/lib/hashserv/tests.py index 806b54c5e..b02219518 100644 --- a/lib/hashserv/tests.py +++ b/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. diff --git a/lib/layerindexlib/__init__.py b/lib/layerindexlib/__init__.py index cb79cb37d..2854f6d0d 100644 --- a/lib/layerindexlib/__init__.py +++ b/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. diff --git a/lib/layerindexlib/cooker.py b/lib/layerindexlib/cooker.py index 848f0e2ee..87c7c8cc9 100644 --- a/lib/layerindexlib/cooker.py +++ b/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. diff --git a/lib/layerindexlib/plugin.py b/lib/layerindexlib/plugin.py index 92a2e978b..e7adae7ac 100644 --- a/lib/layerindexlib/plugin.py +++ b/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. diff --git a/lib/layerindexlib/restapi.py b/lib/layerindexlib/restapi.py index d08eb2055..89092fe34 100644 --- a/lib/layerindexlib/restapi.py +++ b/lib/layerindexlib/restapi.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. diff --git a/lib/layerindexlib/tests/common.py b/lib/layerindexlib/tests/common.py index 22a54585c..f4e04aacc 100644 --- a/lib/layerindexlib/tests/common.py +++ b/lib/layerindexlib/tests/common.py @@ -1,5 +1,7 @@ # Copyright (C) 2017-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. diff --git a/lib/layerindexlib/tests/cooker.py b/lib/layerindexlib/tests/cooker.py index fdbf09110..648c7ba9f 100644 --- a/lib/layerindexlib/tests/cooker.py +++ b/lib/layerindexlib/tests/cooker.py @@ -1,5 +1,7 @@ # Copyright (C) 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. diff --git a/lib/layerindexlib/tests/layerindexobj.py b/lib/layerindexlib/tests/layerindexobj.py index e2fbb950b..7de1338d7 100644 --- a/lib/layerindexlib/tests/layerindexobj.py +++ b/lib/layerindexlib/tests/layerindexobj.py @@ -1,5 +1,7 @@ # Copyright (C) 2017-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. diff --git a/lib/layerindexlib/tests/restapi.py b/lib/layerindexlib/tests/restapi.py index 58766950c..fc4ff939b 100644 --- a/lib/layerindexlib/tests/restapi.py +++ b/lib/layerindexlib/tests/restapi.py @@ -1,5 +1,7 @@ # Copyright (C) 2017-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. diff --git a/lib/progressbar/__init__.py b/lib/progressbar/__init__.py index fbab744ee..c545a6275 100644 --- a/lib/progressbar/__init__.py +++ b/lib/progressbar/__init__.py @@ -4,6 +4,8 @@ # progressbar - Text progress bar library for Python. # Copyright (c) 2005 Nilton Volpato # +# SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear +# # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either diff --git a/lib/progressbar/compat.py b/lib/progressbar/compat.py index a39f4a1f4..9804e0b51 100644 --- a/lib/progressbar/compat.py +++ b/lib/progressbar/compat.py @@ -3,6 +3,8 @@ # progressbar - Text progress bar library for Python. # Copyright (c) 2005 Nilton Volpato # +# SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear +# # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either diff --git a/lib/progressbar/progressbar.py b/lib/progressbar/progressbar.py index 2873ad6ca..e2b6ba108 100644 --- a/lib/progressbar/progressbar.py +++ b/lib/progressbar/progressbar.py @@ -5,6 +5,8 @@ # # (With some small changes after importing into BitBake) # +# SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear +# # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either diff --git a/lib/progressbar/widgets.py b/lib/progressbar/widgets.py index 77285ca7a..0772aa536 100644 --- a/lib/progressbar/widgets.py +++ b/lib/progressbar/widgets.py @@ -3,6 +3,8 @@ # progressbar - Text progress bar library for Python. # Copyright (c) 2005 Nilton Volpato # +# SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear +# # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either diff --git a/lib/prserv/__init__.py b/lib/prserv/__init__.py index c3cb73ad9..9961040b5 100644 --- a/lib/prserv/__init__.py +++ b/lib/prserv/__init__.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + __version__ = "1.0.0" import os, time diff --git a/lib/prserv/db.py b/lib/prserv/db.py index 495d09f39..d6188a679 100644 --- a/lib/prserv/db.py +++ b/lib/prserv/db.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + import logging import os.path import errno diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py index 6a99728c4..be3acec36 100644 --- a/lib/prserv/serv.py +++ b/lib/prserv/serv.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + import os,sys,logging import signal, time from xmlrpc.server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler diff --git a/lib/pyinotify.py b/lib/pyinotify.py index 4eb03b092..8fe4041fa 100644 --- a/lib/pyinotify.py +++ b/lib/pyinotify.py @@ -3,6 +3,8 @@ # pyinotify.py - python interface to inotify # Copyright (c) 2005-2015 Sebastien Martini # +# SPDX-License-Identifier: MIT +# # 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 diff --git a/lib/toaster/bldcollector/admin.py b/lib/toaster/bldcollector/admin.py index 1f2e07f50..feaa888c7 100644 --- a/lib/toaster/bldcollector/admin.py +++ b/lib/toaster/bldcollector/admin.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django.contrib import admin from orm.models import BitbakeVersion, Release, ToasterSetting, Layer_Version from django import forms diff --git a/lib/toaster/bldcollector/urls.py b/lib/toaster/bldcollector/urls.py index 888175d0a..182a7a615 100644 --- a/lib/toaster/bldcollector/urls.py +++ b/lib/toaster/bldcollector/urls.py @@ -3,6 +3,8 @@ # # Copyright (C) 2014-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. diff --git a/lib/toaster/bldcollector/views.py b/lib/toaster/bldcollector/views.py index f32fa4d22..132e44c68 100644 --- a/lib/toaster/bldcollector/views.py +++ b/lib/toaster/bldcollector/views.py @@ -3,6 +3,8 @@ # # Copyright (C) 2014 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. diff --git a/lib/toaster/bldcontrol/admin.py b/lib/toaster/bldcontrol/admin.py index fcbe5f593..e85c30ed1 100644 --- a/lib/toaster/bldcontrol/admin.py +++ b/lib/toaster/bldcontrol/admin.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django.contrib import admin from django.contrib.admin.filters import RelatedFieldListFilter from .models import BuildEnvironment diff --git a/lib/toaster/bldcontrol/bbcontroller.py b/lib/toaster/bldcontrol/bbcontroller.py index 5195600d9..d182a36e9 100644 --- a/lib/toaster/bldcontrol/bbcontroller.py +++ b/lib/toaster/bldcontrol/bbcontroller.py @@ -6,6 +6,8 @@ # # Copyright (C) 2014 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. diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py index 949063593..4d4afafd4 100644 --- a/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/lib/toaster/bldcontrol/localhostbecontroller.py @@ -6,6 +6,8 @@ # # Copyright (C) 2014 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. diff --git a/lib/toaster/bldcontrol/management/commands/checksettings.py b/lib/toaster/bldcontrol/management/commands/checksettings.py index 14298d9da..fe2c4dc2b 100644 --- a/lib/toaster/bldcontrol/management/commands/checksettings.py +++ b/lib/toaster/bldcontrol/management/commands/checksettings.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django.core.management.base import BaseCommand, CommandError from django.db import transaction diff --git a/lib/toaster/bldcontrol/management/commands/runbuilds.py b/lib/toaster/bldcontrol/management/commands/runbuilds.py index 6a55dd46c..50ec40986 100644 --- a/lib/toaster/bldcontrol/management/commands/runbuilds.py +++ b/lib/toaster/bldcontrol/management/commands/runbuilds.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django.core.management.base import BaseCommand from django.db import transaction from django.db.models import Q diff --git a/lib/toaster/bldcontrol/models.py b/lib/toaster/bldcontrol/models.py index 409614b9e..bcffcf5e2 100644 --- a/lib/toaster/bldcontrol/models.py +++ b/lib/toaster/bldcontrol/models.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from __future__ import unicode_literals from django.db import models from django.core.validators import MaxValueValidator, MinValueValidator diff --git a/lib/toaster/bldcontrol/views.py b/lib/toaster/bldcontrol/views.py index 60f00ef0e..286d88b45 100644 --- a/lib/toaster/bldcontrol/views.py +++ b/lib/toaster/bldcontrol/views.py @@ -1 +1,5 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + # Create your views here. diff --git a/lib/toaster/manage.py b/lib/toaster/manage.py index 0c7ea5088..ae32619d1 100755 --- a/lib/toaster/manage.py +++ b/lib/toaster/manage.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +# +# SPDX-License-Identifier: GPL-2.0-only +# + import os import sys diff --git a/lib/toaster/orm/management/commands/lsupdates.py b/lib/toaster/orm/management/commands/lsupdates.py index 66114ff89..b15b9ce4a 100644 --- a/lib/toaster/orm/management/commands/lsupdates.py +++ b/lib/toaster/orm/management/commands/lsupdates.py @@ -6,6 +6,8 @@ # # Copyright (C) 2016-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. diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py index 772029021..68ca0bcfe 100644 --- a/lib/toaster/orm/models.py +++ b/lib/toaster/orm/models.py @@ -6,6 +6,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. diff --git a/lib/toaster/tests/browser/selenium_helpers.py b/lib/toaster/tests/browser/selenium_helpers.py index 08711e455..66e700c84 100644 --- a/lib/toaster/tests/browser/selenium_helpers.py +++ b/lib/toaster/tests/browser/selenium_helpers.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/selenium_helpers_base.py b/lib/toaster/tests/browser/selenium_helpers_base.py index 156d639b1..48a0488e1 100644 --- a/lib/toaster/tests/browser/selenium_helpers_base.py +++ b/lib/toaster/tests/browser/selenium_helpers_base.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_all_builds_page.py b/lib/toaster/tests/browser/test_all_builds_page.py index b86f29bdd..bab44e9cc 100644 --- a/lib/toaster/tests/browser/test_all_builds_page.py +++ b/lib/toaster/tests/browser/test_all_builds_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_all_projects_page.py b/lib/toaster/tests/browser/test_all_projects_page.py index 44da64075..b0b3aec1f 100644 --- a/lib/toaster/tests/browser/test_all_projects_page.py +++ b/lib/toaster/tests/browser/test_all_projects_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_builddashboard_page.py b/lib/toaster/tests/browser/test_builddashboard_page.py index f8ccb5452..5d2dcd066 100644 --- a/lib/toaster/tests/browser/test_builddashboard_page.py +++ b/lib/toaster/tests/browser/test_builddashboard_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py b/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py index 1c627ad49..f92b642e9 100644 --- a/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py +++ b/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_builddashboard_page_recipes.py b/lib/toaster/tests/browser/test_builddashboard_page_recipes.py index ed18324e5..7f9628815 100644 --- a/lib/toaster/tests/browser/test_builddashboard_page_recipes.py +++ b/lib/toaster/tests/browser/test_builddashboard_page_recipes.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_builddashboard_page_tasks.py b/lib/toaster/tests/browser/test_builddashboard_page_tasks.py index da50f1601..d0c4ec33e 100644 --- a/lib/toaster/tests/browser/test_builddashboard_page_tasks.py +++ b/lib/toaster/tests/browser/test_builddashboard_page_tasks.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_js_unit_tests.py b/lib/toaster/tests/browser/test_js_unit_tests.py index 3c0b96252..ceea71342 100644 --- a/lib/toaster/tests/browser/test_js_unit_tests.py +++ b/lib/toaster/tests/browser/test_js_unit_tests.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_landing_page.py b/lib/toaster/tests/browser/test_landing_page.py index 4d4cd660f..06aa5693e 100644 --- a/lib/toaster/tests/browser/test_landing_page.py +++ b/lib/toaster/tests/browser/test_landing_page.py @@ -4,6 +4,8 @@ # # BitBake Toaster Implementation # +# SPDX-License-Identifier: GPL-2.0-only +# # Copyright (C) 2013-2016 Intel Corporation # # This program is free software; you can redistribute it and/or modify diff --git a/lib/toaster/tests/browser/test_layerdetails_page.py b/lib/toaster/tests/browser/test_layerdetails_page.py index f24fb093a..a39bb9ac1 100644 --- a/lib/toaster/tests/browser/test_layerdetails_page.py +++ b/lib/toaster/tests/browser/test_layerdetails_page.py @@ -4,6 +4,8 @@ # # BitBake Toaster Implementation # +# SPDX-License-Identifier: GPL-2.0-only +# # Copyright (C) 2013-2016 Intel Corporation # # This program is free software; you can redistribute it and/or modify diff --git a/lib/toaster/tests/browser/test_most_recent_builds_states.py b/lib/toaster/tests/browser/test_most_recent_builds_states.py index abc0b0bc8..7d44638bc 100644 --- a/lib/toaster/tests/browser/test_most_recent_builds_states.py +++ b/lib/toaster/tests/browser/test_most_recent_builds_states.py @@ -4,6 +4,8 @@ # # BitBake Toaster Implementation # +# SPDX-License-Identifier: GPL-2.0-only +# # Copyright (C) 2013-2016 Intel Corporation # # This program is free software; you can redistribute it and/or modify diff --git a/lib/toaster/tests/browser/test_new_custom_image_page.py b/lib/toaster/tests/browser/test_new_custom_image_page.py index ab5a8e66b..f865e3272 100644 --- a/lib/toaster/tests/browser/test_new_custom_image_page.py +++ b/lib/toaster/tests/browser/test_new_custom_image_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_new_project_page.py b/lib/toaster/tests/browser/test_new_project_page.py index 77e5f1526..92d414d8d 100644 --- a/lib/toaster/tests/browser/test_new_project_page.py +++ b/lib/toaster/tests/browser/test_new_project_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_project_builds_page.py b/lib/toaster/tests/browser/test_project_builds_page.py index 9fe91ab06..2202d937d 100644 --- a/lib/toaster/tests/browser/test_project_builds_page.py +++ b/lib/toaster/tests/browser/test_project_builds_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_project_config_page.py b/lib/toaster/tests/browser/test_project_config_page.py index 071008499..a0d5bcd34 100644 --- a/lib/toaster/tests/browser/test_project_config_page.py +++ b/lib/toaster/tests/browser/test_project_config_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_project_page.py b/lib/toaster/tests/browser/test_project_page.py index 018646332..7b544ed96 100644 --- a/lib/toaster/tests/browser/test_project_page.py +++ b/lib/toaster/tests/browser/test_project_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_sample.py b/lib/toaster/tests/browser/test_sample.py index 20ec53c28..4cdd19f3d 100644 --- a/lib/toaster/tests/browser/test_sample.py +++ b/lib/toaster/tests/browser/test_sample.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_task_page.py b/lib/toaster/tests/browser/test_task_page.py index 690d116cb..97708a765 100644 --- a/lib/toaster/tests/browser/test_task_page.py +++ b/lib/toaster/tests/browser/test_task_page.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/browser/test_toastertable_ui.py b/lib/toaster/tests/browser/test_toastertable_ui.py index 53ddf30c3..0780ef9fe 100644 --- a/lib/toaster/tests/browser/test_toastertable_ui.py +++ b/lib/toaster/tests/browser/test_toastertable_ui.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/tests/builds/buildtest.py b/lib/toaster/tests/builds/buildtest.py index 5a56a110a..129c9fe40 100644 --- a/lib/toaster/tests/builds/buildtest.py +++ b/lib/toaster/tests/builds/buildtest.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/tests/builds/test_core_image_min.py b/lib/toaster/tests/builds/test_core_image_min.py index 586f4a8f7..896407199 100644 --- a/lib/toaster/tests/builds/test_core_image_min.py +++ b/lib/toaster/tests/builds/test_core_image_min.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/tests/commands/test_loaddata.py b/lib/toaster/tests/commands/test_loaddata.py index 951f6ff5a..b4b53d091 100644 --- a/lib/toaster/tests/commands/test_loaddata.py +++ b/lib/toaster/tests/commands/test_loaddata.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/tests/commands/test_lsupdates.py b/lib/toaster/tests/commands/test_lsupdates.py index 49897a476..2d34f211b 100644 --- a/lib/toaster/tests/commands/test_lsupdates.py +++ b/lib/toaster/tests/commands/test_lsupdates.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/tests/commands/test_runbuilds.py b/lib/toaster/tests/commands/test_runbuilds.py index 3e634835e..2c9fcf0f2 100644 --- a/lib/toaster/tests/commands/test_runbuilds.py +++ b/lib/toaster/tests/commands/test_runbuilds.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/tests/db/test_db.py b/lib/toaster/tests/db/test_db.py index a0f5f6ec0..041042227 100644 --- a/lib/toaster/tests/db/test_db.py +++ b/lib/toaster/tests/db/test_db.py @@ -2,6 +2,8 @@ # # Copyright (c) 2016 Damien Lespiau # +# SPDX-License-Identifier: MIT +# # 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 diff --git a/lib/toaster/tests/eventreplay/__init__.py b/lib/toaster/tests/eventreplay/__init__.py index 695661947..f10ea89ae 100644 --- a/lib/toaster/tests/eventreplay/__init__.py +++ b/lib/toaster/tests/eventreplay/__init__.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/tests/functional/functional_helpers.py b/lib/toaster/tests/functional/functional_helpers.py index 486078a61..8eb2e963f 100644 --- a/lib/toaster/tests/functional/functional_helpers.py +++ b/lib/toaster/tests/functional/functional_helpers.py @@ -6,6 +6,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. diff --git a/lib/toaster/tests/functional/test_functional_basic.py b/lib/toaster/tests/functional/test_functional_basic.py index cfa2b0fdf..817bcde33 100644 --- a/lib/toaster/tests/functional/test_functional_basic.py +++ b/lib/toaster/tests/functional/test_functional_basic.py @@ -6,6 +6,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. diff --git a/lib/toaster/tests/views/test_views.py b/lib/toaster/tests/views/test_views.py index 1463077e9..d5b00288b 100644 --- a/lib/toaster/tests/views/test_views.py +++ b/lib/toaster/tests/views/test_views.py @@ -6,6 +6,8 @@ # # Copyright (C) 2013-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. diff --git a/lib/toaster/toastergui/api.py b/lib/toaster/toastergui/api.py index 564d595a1..99e9768ae 100644 --- a/lib/toaster/toastergui/api.py +++ b/lib/toaster/toastergui/api.py @@ -3,6 +3,8 @@ # # 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. diff --git a/lib/toaster/toastergui/buildtables.py b/lib/toaster/toastergui/buildtables.py index 755a7c2e4..6a20d6075 100644 --- a/lib/toaster/toastergui/buildtables.py +++ b/lib/toaster/toastergui/buildtables.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/toastergui/tablefilter.py b/lib/toaster/toastergui/tablefilter.py index 65454e140..1f9016bef 100644 --- a/lib/toaster/toastergui/tablefilter.py +++ b/lib/toaster/toastergui/tablefilter.py @@ -6,6 +6,8 @@ # # Copyright (C) 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. diff --git a/lib/toaster/toastergui/tables.py b/lib/toaster/toastergui/tables.py index 9ff756bc8..855861a86 100644 --- a/lib/toaster/toastergui/tables.py +++ b/lib/toaster/toastergui/tables.py @@ -6,6 +6,8 @@ # # Copyright (C) 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. diff --git a/lib/toaster/toastergui/templatetags/field_values_filter.py b/lib/toaster/toastergui/templatetags/field_values_filter.py index 5a73af797..eb483396c 100644 --- a/lib/toaster/toastergui/templatetags/field_values_filter.py +++ b/lib/toaster/toastergui/templatetags/field_values_filter.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django import template register = template.Library() diff --git a/lib/toaster/toastergui/templatetags/objects_to_dictionaries_filter.py b/lib/toaster/toastergui/templatetags/objects_to_dictionaries_filter.py index 0dcc7d271..048d53387 100644 --- a/lib/toaster/toastergui/templatetags/objects_to_dictionaries_filter.py +++ b/lib/toaster/toastergui/templatetags/objects_to_dictionaries_filter.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django import template import json diff --git a/lib/toaster/toastergui/templatetags/project_url_tag.py b/lib/toaster/toastergui/templatetags/project_url_tag.py index 04770ac6a..71e092578 100644 --- a/lib/toaster/toastergui/templatetags/project_url_tag.py +++ b/lib/toaster/toastergui/templatetags/project_url_tag.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django import template from django.core.urlresolvers import reverse diff --git a/lib/toaster/toastergui/templatetags/projecttags.py b/lib/toaster/toastergui/templatetags/projecttags.py index b170a1616..80652edd4 100644 --- a/lib/toaster/toastergui/templatetags/projecttags.py +++ b/lib/toaster/toastergui/templatetags/projecttags.py @@ -6,6 +6,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. diff --git a/lib/toaster/toastergui/typeaheads.py b/lib/toaster/toastergui/typeaheads.py index 5aa0f8d88..392143558 100644 --- a/lib/toaster/toastergui/typeaheads.py +++ b/lib/toaster/toastergui/typeaheads.py @@ -3,6 +3,8 @@ # # Copyright (C) 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. diff --git a/lib/toaster/toastergui/urls.py b/lib/toaster/toastergui/urls.py index dc03e3035..3d0be61fa 100644 --- a/lib/toaster/toastergui/urls.py +++ b/lib/toaster/toastergui/urls.py @@ -3,6 +3,8 @@ # # Copyright (C) 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. diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py index c712b06a6..6aad55b7c 100644 --- a/lib/toaster/toastergui/views.py +++ b/lib/toaster/toastergui/views.py @@ -6,6 +6,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. diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py index db5c3aa00..e8aabdd9f 100644 --- a/lib/toaster/toastergui/widgets.py +++ b/lib/toaster/toastergui/widgets.py @@ -6,6 +6,8 @@ # # Copyright (C) 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. diff --git a/lib/toaster/toastermain/management/commands/builddelete.py b/lib/toaster/toastermain/management/commands/builddelete.py index bf69a8fb8..c2d773a57 100644 --- a/lib/toaster/toastermain/management/commands/builddelete.py +++ b/lib/toaster/toastermain/management/commands/builddelete.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django.core.management.base import BaseCommand, CommandError from django.core.exceptions import ObjectDoesNotExist from orm.models import Build diff --git a/lib/toaster/toastermain/management/commands/buildimport.py b/lib/toaster/toastermain/management/commands/buildimport.py index 2d57ab557..2f99c6d55 100644 --- a/lib/toaster/toastermain/management/commands/buildimport.py +++ b/lib/toaster/toastermain/management/commands/buildimport.py @@ -6,6 +6,8 @@ # # Copyright (C) 2018 Wind River Systems # +# 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. diff --git a/lib/toaster/toastermain/management/commands/buildslist.py b/lib/toaster/toastermain/management/commands/buildslist.py index 70b5812d9..1ed20224d 100644 --- a/lib/toaster/toastermain/management/commands/buildslist.py +++ b/lib/toaster/toastermain/management/commands/buildslist.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django.core.management.base import BaseCommand, CommandError from orm.models import Build import os diff --git a/lib/toaster/toastermain/management/commands/checksocket.py b/lib/toaster/toastermain/management/commands/checksocket.py index 0399b8659..d9cdb555d 100644 --- a/lib/toaster/toastermain/management/commands/checksocket.py +++ b/lib/toaster/toastermain/management/commands/checksocket.py @@ -6,6 +6,8 @@ # # Copyright (C) 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. diff --git a/lib/toaster/toastermain/management/commands/perf.py b/lib/toaster/toastermain/management/commands/perf.py index 6b450bbdf..7d629fb37 100644 --- a/lib/toaster/toastermain/management/commands/perf.py +++ b/lib/toaster/toastermain/management/commands/perf.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: GPL-2.0-only +# + from django.core.management.base import BaseCommand from django.test.client import Client import os, sys, re diff --git a/lib/toaster/toastermain/settings.py b/lib/toaster/toastermain/settings.py index 13541d380..637355919 100644 --- a/lib/toaster/toastermain/settings.py +++ b/lib/toaster/toastermain/settings.py @@ -6,6 +6,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. diff --git a/lib/toaster/toastermain/settings_production_example.py b/lib/toaster/toastermain/settings_production_example.py index 61a288864..206762435 100644 --- a/lib/toaster/toastermain/settings_production_example.py +++ b/lib/toaster/toastermain/settings_production_example.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/toastermain/settings_test.py b/lib/toaster/toastermain/settings_test.py index a32271157..963d77f28 100644 --- a/lib/toaster/toastermain/settings_test.py +++ b/lib/toaster/toastermain/settings_test.py @@ -6,6 +6,8 @@ # # 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. diff --git a/lib/toaster/toastermain/urls.py b/lib/toaster/toastermain/urls.py index e2fb0aebf..1a98754ed 100644 --- a/lib/toaster/toastermain/urls.py +++ b/lib/toaster/toastermain/urls.py @@ -6,6 +6,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. diff --git a/lib/toaster/toastermain/wsgi.py b/lib/toaster/toastermain/wsgi.py index 031b314b1..5ad22aea1 100644 --- a/lib/toaster/toastermain/wsgi.py +++ b/lib/toaster/toastermain/wsgi.py @@ -1,3 +1,7 @@ +# +# 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 -*- -- cgit 1.2.3-korg