diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-08 18:22:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-09 16:31:55 +0100 |
commit | ffae400179fd0b64f8882cf79d78e1c0f2d74bee (patch) | |
tree | cc5e242e02c3621ea124552ecb9779371500335b /meta/lib/oe | |
parent | c7592b01478def091b6787412390c61e7ce0a0cd (diff) | |
download | poky-ffae400179fd0b64f8882cf79d78e1c0f2d74bee.tar.gz |
meta/lib+scripts: Convert to SPDX license headers
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
30 files changed, 105 insertions, 1 deletions
diff --git a/meta/lib/oe/__init__.py b/meta/lib/oe/__init__.py index 3ad9513f40..4e7c09da04 100644 --- a/meta/lib/oe/__init__.py +++ b/meta/lib/oe/__init__.py | |||
@@ -1,2 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | from pkgutil import extend_path | 5 | from pkgutil import extend_path |
2 | __path__ = extend_path(__path__, __name__) | 6 | __path__ = extend_path(__path__, __name__) |
diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index d3cde4f650..62c7a2e58e 100644 --- a/meta/lib/oe/buildhistory_analysis.py +++ b/meta/lib/oe/buildhistory_analysis.py | |||
@@ -3,6 +3,8 @@ | |||
3 | # Copyright (C) 2012-2013, 2016-2017 Intel Corporation | 3 | # Copyright (C) 2012-2013, 2016-2017 Intel Corporation |
4 | # Author: Paul Eggleton <paul.eggleton@linux.intel.com> | 4 | # Author: Paul Eggleton <paul.eggleton@linux.intel.com> |
5 | # | 5 | # |
6 | # SPDX-License-Identifier: GPL-2.0-only | ||
7 | # | ||
6 | # Note: requires GitPython 0.3.1+ | 8 | # Note: requires GitPython 0.3.1+ |
7 | # | 9 | # |
8 | # You can use this from the command line by running scripts/buildhistory-diff | 10 | # You can use this from the command line by running scripts/buildhistory-diff |
diff --git a/meta/lib/oe/cachedpath.py b/meta/lib/oe/cachedpath.py index 0840cc4c3f..254257a83f 100644 --- a/meta/lib/oe/cachedpath.py +++ b/meta/lib/oe/cachedpath.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # | 1 | # |
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
2 | # Based on standard python library functions but avoid | 4 | # Based on standard python library functions but avoid |
3 | # repeated stat calls. Its assumed the files will not change from under us | 5 | # repeated stat calls. Its assumed the files will not change from under us |
4 | # so we can cache stat calls. | 6 | # so we can cache stat calls. |
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py index 662707b859..e25122e815 100644 --- a/meta/lib/oe/classextend.py +++ b/meta/lib/oe/classextend.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import collections | 5 | import collections |
2 | 6 | ||
3 | class ClassExtender(object): | 7 | class ClassExtender(object): |
diff --git a/meta/lib/oe/classutils.py b/meta/lib/oe/classutils.py index 45cd5249be..08bb66b365 100644 --- a/meta/lib/oe/classutils.py +++ b/meta/lib/oe/classutils.py | |||
@@ -1,3 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
1 | 4 | ||
2 | class ClassRegistryMeta(type): | 5 | class ClassRegistryMeta(type): |
3 | """Give each ClassRegistry their own registry""" | 6 | """Give each ClassRegistry their own registry""" |
diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py index 7cb784cf8c..5b96121ddb 100644 --- a/meta/lib/oe/copy_buildsystem.py +++ b/meta/lib/oe/copy_buildsystem.py | |||
@@ -1,3 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
1 | # This class should provide easy access to the different aspects of the | 4 | # This class should provide easy access to the different aspects of the |
2 | # buildsystem such as layers, bitbake location, etc. | 5 | # buildsystem such as layers, bitbake location, etc. |
3 | # | 6 | # |
diff --git a/meta/lib/oe/data.py b/meta/lib/oe/data.py index b8901e63f5..602130a904 100644 --- a/meta/lib/oe/data.py +++ b/meta/lib/oe/data.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import json | 5 | import json |
2 | import oe.maketype | 6 | import oe.maketype |
3 | 7 | ||
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py index e775c3a6ec..88e46c354d 100644 --- a/meta/lib/oe/distro_check.py +++ b/meta/lib/oe/distro_check.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | def create_socket(url, d): | 5 | def create_socket(url, d): |
2 | import urllib | 6 | import urllib |
3 | from bb.utils import export_proxies | 7 | from bb.utils import export_proxies |
diff --git a/meta/lib/oe/elf.py b/meta/lib/oe/elf.py index 4cc9a9a097..2562cea1dd 100644 --- a/meta/lib/oe/elf.py +++ b/meta/lib/oe/elf.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | def machine_dict(d): | 5 | def machine_dict(d): |
2 | # TARGET_OS TARGET_ARCH MACHINE, OSABI, ABIVERSION, Little Endian, 32bit? | 6 | # TARGET_OS TARGET_ARCH MACHINE, OSABI, ABIVERSION, Little Endian, 32bit? |
3 | machdata = { | 7 | machdata = { |
diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py index ccd5aee420..a95d2ba34c 100644 --- a/meta/lib/oe/gpg_sign.py +++ b/meta/lib/oe/gpg_sign.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | """Helper module for GPG signing""" | 5 | """Helper module for GPG signing""" |
2 | import os | 6 | import os |
3 | 7 | ||
diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py index 04f5b316a9..c1274a61de 100644 --- a/meta/lib/oe/license.py +++ b/meta/lib/oe/license.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # vi:sts=4:sw=4:et | 1 | # |
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
2 | """Code for parsing OpenEmbedded license strings""" | 4 | """Code for parsing OpenEmbedded license strings""" |
3 | 5 | ||
4 | import ast | 6 | import ast |
diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py index 71c0992c5d..4f2b419edc 100644 --- a/meta/lib/oe/lsb.py +++ b/meta/lib/oe/lsb.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | def get_os_release(): | 5 | def get_os_release(): |
2 | """Get all key-value pairs from /etc/os-release as a dict""" | 6 | """Get all key-value pairs from /etc/os-release as a dict""" |
3 | from collections import OrderedDict | 7 | from collections import OrderedDict |
diff --git a/meta/lib/oe/maketype.py b/meta/lib/oe/maketype.py index c36e7b5604..d929c8b3e5 100644 --- a/meta/lib/oe/maketype.py +++ b/meta/lib/oe/maketype.py | |||
@@ -1,3 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
1 | """OpenEmbedded variable typing support | 4 | """OpenEmbedded variable typing support |
2 | 5 | ||
3 | Types are defined in the metadata by name, using the 'type' flag on a | 6 | Types are defined in the metadata by name, using the 'type' flag on a |
diff --git a/meta/lib/oe/manifest.py b/meta/lib/oe/manifest.py index 674303c866..f7c88f9a09 100644 --- a/meta/lib/oe/manifest.py +++ b/meta/lib/oe/manifest.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | from abc import ABCMeta, abstractmethod | 5 | from abc import ABCMeta, abstractmethod |
2 | import os | 6 | import os |
3 | import re | 7 | import re |
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index 6e83f01f14..b59513227b 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import stat | 5 | import stat |
2 | import mmap | 6 | import mmap |
3 | import subprocess | 7 | import subprocess |
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 2835c1ddf8..06feb4def7 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | from abc import ABCMeta, abstractmethod | 5 | from abc import ABCMeta, abstractmethod |
2 | import os | 6 | import os |
3 | import glob | 7 | import glob |
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py index 32e5c82a94..cbde380b03 100644 --- a/meta/lib/oe/packagedata.py +++ b/meta/lib/oe/packagedata.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import codecs | 5 | import codecs |
2 | import os | 6 | import os |
3 | 7 | ||
diff --git a/meta/lib/oe/packagegroup.py b/meta/lib/oe/packagegroup.py index 4bc5d3e4bb..2419cbb6d3 100644 --- a/meta/lib/oe/packagegroup.py +++ b/meta/lib/oe/packagegroup.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import itertools | 5 | import itertools |
2 | 6 | ||
3 | def is_optional(feature, d): | 7 | def is_optional(feature, d): |
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index f43cf047c0..d8e4ef5398 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import oe.path | 5 | import oe.path |
2 | import oe.types | 6 | import oe.types |
3 | 7 | ||
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index c09eda5c42..fa209b9795 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import errno | 5 | import errno |
2 | import glob | 6 | import glob |
3 | import shutil | 7 | import shutil |
diff --git a/meta/lib/oe/prservice.py b/meta/lib/oe/prservice.py index 32dfc15e88..b1132ccb11 100644 --- a/meta/lib/oe/prservice.py +++ b/meta/lib/oe/prservice.py | |||
@@ -1,3 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
1 | 4 | ||
2 | def prserv_make_conn(d, check = False): | 5 | def prserv_make_conn(d, check = False): |
3 | import prserv.serv | 6 | import prserv.serv |
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py index 59c72ce580..21066c4dc3 100644 --- a/meta/lib/oe/qa.py +++ b/meta/lib/oe/qa.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import os, struct, mmap | 5 | import os, struct, mmap |
2 | 6 | ||
3 | class NotELFFileError(Exception): | 7 | class NotELFFileError(Exception): |
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 4ca200d834..1e5b9a49f9 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
@@ -4,6 +4,8 @@ | |||
4 | # | 4 | # |
5 | # Copyright (C) 2013-2017 Intel Corporation | 5 | # Copyright (C) 2013-2017 Intel Corporation |
6 | # | 6 | # |
7 | # SPDX-License-Identifier: GPL-2.0-only | ||
8 | # | ||
7 | 9 | ||
8 | import sys | 10 | import sys |
9 | import os | 11 | import os |
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index b7c0b9c24b..9358f562c8 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -1,3 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
1 | from abc import ABCMeta, abstractmethod | 4 | from abc import ABCMeta, abstractmethod |
2 | from oe.utils import execute_pre_post_process | 5 | from oe.utils import execute_pre_post_process |
3 | from oe.package_manager import * | 6 | from oe.package_manager import * |
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index 878ee1647f..b4fbdb799e 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | from abc import ABCMeta, abstractmethod | 5 | from abc import ABCMeta, abstractmethod |
2 | from oe.utils import execute_pre_post_process | 6 | from oe.utils import execute_pre_post_process |
3 | from oe.manifest import * | 7 | from oe.manifest import * |
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index a83af519ec..417943db90 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py | |||
@@ -1,3 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
1 | import bb.siggen | 4 | import bb.siggen |
2 | import oe | 5 | import oe |
3 | 6 | ||
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index e4045559fc..9bda3efdc7 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py | |||
@@ -1,3 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
1 | import logging | 4 | import logging |
2 | import oe.classutils | 5 | import oe.classutils |
3 | import shlex | 6 | import shlex |
diff --git a/meta/lib/oe/types.py b/meta/lib/oe/types.py index 1eebba5a38..77ee7ee541 100644 --- a/meta/lib/oe/types.py +++ b/meta/lib/oe/types.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import errno | 5 | import errno |
2 | import re | 6 | import re |
3 | import os | 7 | import os |
diff --git a/meta/lib/oe/useradd.py b/meta/lib/oe/useradd.py index 179ac76b5e..bedfe0ecb5 100644 --- a/meta/lib/oe/useradd.py +++ b/meta/lib/oe/useradd.py | |||
@@ -1,3 +1,6 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
1 | import argparse | 4 | import argparse |
2 | import re | 5 | import re |
3 | 6 | ||
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 59251810d4..d686ce1bf6 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py | |||
@@ -1,3 +1,7 @@ | |||
1 | # | ||
2 | # SPDX-License-Identifier: GPL-2.0-only | ||
3 | # | ||
4 | |||
1 | import subprocess | 5 | import subprocess |
2 | import multiprocessing | 6 | import multiprocessing |
3 | import traceback | 7 | import traceback |