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>
This commit is contained in:
Richard Purdie
2019-05-08 18:22:19 +01:00
parent c7592b0147
commit ffae400179
347 changed files with 974 additions and 1464 deletions

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import unittest

View File

@@ -1,5 +1,7 @@
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from oeqa.core.case import OETestCase
from oeqa.core.decorator.depends import OETestDepends

View File

@@ -1,5 +1,7 @@
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
## Copyright (C) 2016 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
import os
import sys

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from functools import wraps
from abc import abstractmethod, ABCMeta

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from oeqa.core.exception import OEQAMissingVariable

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from unittest import SkipTest

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from . import OETestFilter, registerDecorator
from oeqa.core.utils.misc import strToList

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import signal
from . import OETestDecorator, registerDecorator

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
class OEQAException(Exception):
pass

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import os
import re

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import os
import time

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from abc import abstractmethod

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import os
import sys

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import os
import time

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from oeqa.core.case import OETestCase
from oeqa.core.decorator.oetag import OETestTag

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from oeqa.core.case import OETestCase
from oeqa.core.decorator.depends import OETestDepends

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from oeqa.core.case import OETestCase

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from oeqa.core.case import OETestCase
from oeqa.core.decorator.oetag import OETestTag

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
from time import sleep

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import sys
import os

View File

@@ -1,7 +1,9 @@
#!/usr/bin/env python3
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import unittest
import logging

View File

@@ -1,7 +1,9 @@
#!/usr/bin/env python3
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import signal
import unittest

View File

@@ -1,7 +1,9 @@
#!/usr/bin/env python3
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import os
import unittest

View File

@@ -1,7 +1,9 @@
#!/usr/bin/env python3
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import unittest
import logging

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env python3
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Modified for use in OE by Richard Purdie, 2018
#
# Modified by: Corey Goldberg, 2013

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
def toList(obj, obj_type, obj_name="Object"):
if isinstance(obj, obj_type):

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import os
import sys

View File

@@ -1,5 +1,8 @@
#
# Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
#
# SPDX-License-Identifier: MIT
#
import os
import inspect