From 79834a71447f89c52c6c9ad62c9bcbf9b8e0e05b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 30 Apr 2019 11:05:26 +0100 Subject: bitbake: 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. (Bitbake rev: ff237c33337f4da2ca06c3a2c49699bc26608a6b) Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastermain/management/commands/builddelete.py | 4 ++++ bitbake/lib/toaster/toastermain/management/commands/buildimport.py | 2 ++ bitbake/lib/toaster/toastermain/management/commands/buildslist.py | 4 ++++ bitbake/lib/toaster/toastermain/management/commands/checksocket.py | 2 ++ bitbake/lib/toaster/toastermain/management/commands/perf.py | 4 ++++ bitbake/lib/toaster/toastermain/settings.py | 2 ++ bitbake/lib/toaster/toastermain/settings_production_example.py | 2 ++ bitbake/lib/toaster/toastermain/settings_test.py | 2 ++ bitbake/lib/toaster/toastermain/urls.py | 2 ++ bitbake/lib/toaster/toastermain/wsgi.py | 4 ++++ 10 files changed, 28 insertions(+) (limited to 'bitbake/lib/toaster/toastermain') diff --git a/bitbake/lib/toaster/toastermain/management/commands/builddelete.py b/bitbake/lib/toaster/toastermain/management/commands/builddelete.py index bf69a8fb80..c2d773a577 100644 --- a/bitbake/lib/toaster/toastermain/management/commands/builddelete.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/management/commands/buildimport.py b/bitbake/lib/toaster/toastermain/management/commands/buildimport.py index 2d57ab557a..2f99c6d556 100644 --- a/bitbake/lib/toaster/toastermain/management/commands/buildimport.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/management/commands/buildslist.py b/bitbake/lib/toaster/toastermain/management/commands/buildslist.py index 70b5812d98..1ed20224d3 100644 --- a/bitbake/lib/toaster/toastermain/management/commands/buildslist.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/management/commands/checksocket.py b/bitbake/lib/toaster/toastermain/management/commands/checksocket.py index 0399b8659b..d9cdb555df 100644 --- a/bitbake/lib/toaster/toastermain/management/commands/checksocket.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/management/commands/perf.py b/bitbake/lib/toaster/toastermain/management/commands/perf.py index 6b450bbdfc..7d629fb37f 100644 --- a/bitbake/lib/toaster/toastermain/management/commands/perf.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index 13541d380f..6373559190 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/settings_production_example.py b/bitbake/lib/toaster/toastermain/settings_production_example.py index 61a288864a..2067624358 100644 --- a/bitbake/lib/toaster/toastermain/settings_production_example.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/settings_test.py b/bitbake/lib/toaster/toastermain/settings_test.py index a322711579..963d77f280 100644 --- a/bitbake/lib/toaster/toastermain/settings_test.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py index e2fb0aebfd..1a98754ed4 100644 --- a/bitbake/lib/toaster/toastermain/urls.py +++ b/bitbake/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/bitbake/lib/toaster/toastermain/wsgi.py b/bitbake/lib/toaster/toastermain/wsgi.py index 031b314b1a..5ad22aea18 100644 --- a/bitbake/lib/toaster/toastermain/wsgi.py +++ b/bitbake/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 v1.2.3-54-g00ecf