Skip to content

Commit

Permalink
meta/lib+scripts: Convert to SPDX license headers
Browse files Browse the repository at this point in the history
This adds SPDX license headers in place of the wide assortment of things
currently in our script headers. We default to GPL-2.0-only except for the
oeqa code where it was clearly submitted and marked as MIT on the most part
or some scripts which had the "or later" GPL versioning.

The patch also drops other obsolete bits of file headers where they were
encoountered such as editor modelines, obsolete maintainer information or
the phrase "All rights reserved" which is now obsolete and not required in
copyright headers (in this case its actually confusing for licensing as all
rights were not reserved).

More work is needed for OE-Core but this takes care of the bulk of the scripts
and meta/lib directories.

The top level LICENSE files are tweaked to match the new structure and the
SPDX naming.

(From OE-Core rev: f8c9c511b5f1b7dbd45b77f345cb6c048ae6763e)

Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
rpurdie committed May 9, 2019
1 parent c7592b0 commit ffae400
Show file tree
Hide file tree
Showing 347 changed files with 974 additions and 1,464 deletions.
24 changes: 15 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
Different components of OpenEmbedded are under different licenses (a mix
of MIT and GPLv2). Please see:

meta/COPYING.GPLv2 (GPLv2)
meta/COPYING.MIT (MIT)
meta-selftest/COPYING.MIT (MIT)
meta-skeleton/COPYING.MIT (MIT)
of MIT and GPLv2). See LICENSE.GPL-2.0-only and LICENSE.MIT for further
details of the individual licenses.

All metadata is MIT licensed unless otherwise stated. Source code
included in tree for individual recipes is under the LICENSE stated in
the associated recipe (.bb file) unless otherwise stated.
included in tree for individual recipes (e.g. patches) are under
the LICENSE stated in the associated recipe (.bb file) unless
otherwise stated.

License information for any other files is either explicitly stated
or defaults to GPL version 2.
or defaults to GPL version 2 only.

Individual files contain the following style tags instead of the full license
text to identify their license:

SPDX-License-Identifier: GPL-2.0-only
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/
61 changes: 5 additions & 56 deletions meta/COPYING.GPLv2 → LICENSE.GPL-2.0-only
Original file line number Diff line number Diff line change
Expand Up @@ -279,61 +279,10 @@ POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Programs
Note:
Individual files contain the following tag instead of the full license text.

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
SPDX-License-Identifier: GPL-2.0-only

To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.

You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:

Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.

<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice

This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
This enables machine processing of license information based on the SPDX
License Identifiers that are here available: http://spdx.org/licenses/
12 changes: 10 additions & 2 deletions meta-selftest/COPYING.MIT → LICENSE.MIT
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@ 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.
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/
17 changes: 0 additions & 17 deletions meta-skeleton/COPYING.MIT

This file was deleted.

4 changes: 4 additions & 0 deletions meta/lib/bblayers/create.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import logging
import os
import sys
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/buildstats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
# Implements system state sampling. Called by buildstats.bbclass.
# Because it is a real Python module, it can hold persistent state,
# like open log files and the time of the last sampling.
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
2 changes: 2 additions & 0 deletions meta/lib/oe/buildhistory_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Copyright (C) 2012-2013, 2016-2017 Intel Corporation
# Author: Paul Eggleton <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-only
#
# Note: requires GitPython 0.3.1+
#
# You can use this from the command line by running scripts/buildhistory-diff
Expand Down
2 changes: 2 additions & 0 deletions meta/lib/oe/cachedpath.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
# Based on standard python library functions but avoid
# repeated stat calls. Its assumed the files will not change from under us
# so we can cache stat calls.
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/classextend.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import collections

class ClassExtender(object):
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oe/classutils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

class ClassRegistryMeta(type):
"""Give each ClassRegistry their own registry"""
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oe/copy_buildsystem.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
# This class should provide easy access to the different aspects of the
# buildsystem such as layers, bitbake location, etc.
#
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import json
import oe.maketype

Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/distro_check.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

def create_socket(url, d):
import urllib
from bb.utils import export_proxies
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/elf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

def machine_dict(d):
# TARGET_OS TARGET_ARCH MACHINE, OSABI, ABIVERSION, Little Endian, 32bit?
machdata = {
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/gpg_sign.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

"""Helper module for GPG signing"""
import os

Expand Down
4 changes: 3 additions & 1 deletion meta/lib/oe/license.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# vi:sts=4:sw=4:et
#
# SPDX-License-Identifier: GPL-2.0-only
#
"""Code for parsing OpenEmbedded license strings"""

import ast
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/lsb.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

def get_os_release():
"""Get all key-value pairs from /etc/os-release as a dict"""
from collections import OrderedDict
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oe/maketype.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
"""OpenEmbedded variable typing support
Types are defined in the metadata by name, using the 'type' flag on a
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/manifest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

from abc import ABCMeta, abstractmethod
import os
import re
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import stat
import mmap
import subprocess
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/package_manager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

from abc import ABCMeta, abstractmethod
import os
import glob
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/packagedata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import codecs
import os

Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/packagegroup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import itertools

def is_optional(feature, d):
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/patch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import oe.path
import oe.types

Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/path.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import errno
import glob
import shutil
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oe/prservice.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

def prserv_make_conn(d, check = False):
import prserv.serv
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/qa.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import os, struct, mmap

class NotELFFileError(Exception):
Expand Down
2 changes: 2 additions & 0 deletions meta/lib/oe/recipeutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
# Copyright (C) 2013-2017 Intel Corporation
#
# SPDX-License-Identifier: GPL-2.0-only
#

import sys
import os
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oe/rootfs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
from abc import ABCMeta, abstractmethod
from oe.utils import execute_pre_post_process
from oe.package_manager import *
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/sdk.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

from abc import ABCMeta, abstractmethod
from oe.utils import execute_pre_post_process
from oe.manifest import *
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oe/sstatesig.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
import bb.siggen
import oe

Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oe/terminal.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
import logging
import oe.classutils
import shlex
Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/types.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import errno
import re
import os
Expand Down
3 changes: 3 additions & 0 deletions meta/lib/oe/useradd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#
import argparse
import re

Expand Down
4 changes: 4 additions & 0 deletions meta/lib/oe/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
#

import subprocess
import multiprocessing
import traceback
Expand Down
8 changes: 1 addition & 7 deletions meta/lib/oeqa/buildperf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Copyright (c) 2016, Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope 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.
# SPDX-License-Identifier: GPL-2.0-only
#
"""Build performance tests"""
from .base import (BuildPerfTestCase,
Expand Down
Loading

0 comments on commit ffae400

Please sign in to comment.