mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
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:
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# Enable other layers to have modules in the same named directory
|
||||
from pkgutil import extend_path
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2013-2016 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
# Provides a class for automating build tests for projects
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#
|
||||
# Copyright (c) 2013-2014 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
# DESCRIPTION
|
||||
# This module is mainly used by scripts/oe-selftest and modules under meta/oeqa/selftest
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2013 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
# Some custom decorators that can be used by unittests
|
||||
# Most useful is skipUnlessPassed which can be used for
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
import os
|
||||
import sys
|
||||
import errno
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
import os
|
||||
import re
|
||||
import errno
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Copyright (C) 2016 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
"""Git repository interactions"""
|
||||
import os
|
||||
|
||||
@@ -4,14 +4,7 @@
|
||||
# Copyright (c) 2017, Intel Corporation.
|
||||
# Copyright (c) 2019, Linux Foundation
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
||||
import os
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
import http.server
|
||||
import multiprocessing
|
||||
import os
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Copyright (C) 2016 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# Functions to get metadata from the testing host used
|
||||
# for analytics of test results.
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
import socket
|
||||
|
||||
def get_free_port():
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
import os
|
||||
import json
|
||||
import shutil
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2013 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
# This module provides a class for starting qemu images using runqemu.
|
||||
# It's used by testimage.bbclass.
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2015 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
# This module provides a class for starting qemu images of poky tiny.
|
||||
# It's used by testimage.bbclass.
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2013 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
# Provides a class for setting up ssh connections,
|
||||
# running commands and copying files to/from a target.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
import subprocess
|
||||
|
||||
class OETestCalledProcessError(subprocess.CalledProcessError):
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2013 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
# Provides a class for automating build tests for projects
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#
|
||||
# Copyright (C) 2015 Intel Corporation
|
||||
#
|
||||
# Released under the MIT license (see COPYING.MIT)
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
# Provides functions to help with exporting binaries obtained from built targets
|
||||
|
||||
|
||||
Reference in New Issue
Block a user