scripts: Add SPDX headers

Add SPDX headers indicating the Apache-2.0 license to the scripts in the
scripts directory.  This can be assumed due to the presence of the
Apache-2.0 LICENSE file at the top of the project.

Fixes #930

Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
David Brown 2021-01-26 15:04:05 -07:00 committed by Andrzej Puzdrowski
parent a513b8e668
commit 79c4fcf403
22 changed files with 43 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#
# Copyright 2017 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -1,4 +1,6 @@
#! /bin/bash
#
# SPDX-License-Identifier: Apache-2.0
source $(dirname $0)/../target.sh

View File

@ -1,4 +1,6 @@
#! /bin/bash
#
# SPDX-License-Identifier: Apache-2.0
source $(dirname $0)/../target.sh

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
#
# Nix environment for imgtool
#

View File

@ -2,6 +2,8 @@
#
# Copyright 2017 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -1,5 +1,7 @@
# Copyright 2017-2020 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -1,6 +1,8 @@
# Copyright (c) 2019, Arm Limited.
# Copyright (c) 2020, Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -2,6 +2,8 @@
# Copyright 2017-2020 Linaro Limited
# Copyright 2019-2020 Arm Limited
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -1,5 +1,7 @@
# Copyright 2017 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -2,6 +2,8 @@
ECDSA key management
"""
# SPDX-License-Identifier: Apache-2.0
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import ec

View File

@ -2,6 +2,8 @@
Tests for ECDSA keys
"""
# SPDX-License-Identifier: Apache-2.0
import io
import os.path
import sys

View File

@ -2,6 +2,8 @@
ED25519 key management
"""
# SPDX-License-Identifier: Apache-2.0
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import ed25519

View File

@ -2,6 +2,8 @@
Tests for ECDSA keys
"""
# SPDX-License-Identifier: Apache-2.0
import hashlib
import io
import os.path

View File

@ -1,5 +1,7 @@
"""General key class."""
# SPDX-License-Identifier: Apache-2.0
import sys
AUTOGEN_MESSAGE = "/* Autogenerated by imgtool.py, do not edit. */"

View File

@ -2,6 +2,8 @@
RSA Key management
"""
# SPDX-License-Identifier: Apache-2.0
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import rsa

View File

@ -2,6 +2,8 @@
Tests for RSA keys
"""
# SPDX-License-Identifier: Apache-2.0
import io
import os
import sys

View File

@ -2,6 +2,8 @@
X25519 key management
"""
# SPDX-License-Identifier: Apache-2.0
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import x25519

View File

@ -3,6 +3,8 @@
# Copyright 2017-2020 Linaro Limited
# Copyright 2019-2020 Arm Limited
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -1,5 +1,7 @@
# Copyright 2017 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -1,4 +1,6 @@
#! /bin/bash
#
# SPDX-License-Identifier: Apache-2.0
source $(dirname $0)/../target.sh

View File

@ -1,4 +1,6 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
source $(dirname $0)/../target.sh

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
import setuptools
from imgtool import imgtool_version