diff --git a/tools/psa/tfm/bin_utils/assemble.py b/tools/psa/tfm/bin_utils/assemble.py index 5a75424699..e6b5625189 100755 --- a/tools/psa/tfm/bin_utils/assemble.py +++ b/tools/psa/tfm/bin_utils/assemble.py @@ -3,6 +3,8 @@ # Copyright 2017 Linaro Limited # Copyright (c) 2017-2019, 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 diff --git a/tools/psa/tfm/bin_utils/imgtool.py b/tools/psa/tfm/bin_utils/imgtool.py index 78614745b1..e29e224d8c 100755 --- a/tools/psa/tfm/bin_utils/imgtool.py +++ b/tools/psa/tfm/bin_utils/imgtool.py @@ -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 diff --git a/tools/psa/tfm/bin_utils/imgtool/__init__.py b/tools/psa/tfm/bin_utils/imgtool/__init__.py index cd3b885e72..3f67eed488 100644 --- a/tools/psa/tfm/bin_utils/imgtool/__init__.py +++ b/tools/psa/tfm/bin_utils/imgtool/__init__.py @@ -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 diff --git a/tools/psa/tfm/bin_utils/imgtool/boot_record.py b/tools/psa/tfm/bin_utils/imgtool/boot_record.py index 4112b225a5..ac433aa099 100644 --- a/tools/psa/tfm/bin_utils/imgtool/boot_record.py +++ b/tools/psa/tfm/bin_utils/imgtool/boot_record.py @@ -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 diff --git a/tools/psa/tfm/bin_utils/imgtool/image.py b/tools/psa/tfm/bin_utils/imgtool/image.py index 20c2e32233..7d7f2bac01 100644 --- a/tools/psa/tfm/bin_utils/imgtool/image.py +++ b/tools/psa/tfm/bin_utils/imgtool/image.py @@ -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 diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/__init__.py b/tools/psa/tfm/bin_utils/imgtool/keys/__init__.py index af6caffaa4..dfd101dd66 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/__init__.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/__init__.py @@ -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 diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/ecdsa.py b/tools/psa/tfm/bin_utils/imgtool/keys/ecdsa.py index 81aa321454..56222d8f27 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/ecdsa.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/ecdsa.py @@ -1,3 +1,20 @@ +# Original code taken from mcuboot project at: +# https://github.com/mcu-tools/mcuboot +# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ ECDSA key management """ diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/ecdsa_test.py b/tools/psa/tfm/bin_utils/imgtool/keys/ecdsa_test.py index 31fe085900..021f04073f 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/ecdsa_test.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/ecdsa_test.py @@ -1,3 +1,20 @@ +# Original code taken from mcuboot project at: +# https://github.com/mcu-tools/mcuboot +# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ Tests for ECDSA keys """ diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/ed25519.py b/tools/psa/tfm/bin_utils/imgtool/keys/ed25519.py index f20c5dc44e..661b8857a5 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/ed25519.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/ed25519.py @@ -1,3 +1,20 @@ +# Original code taken from mcuboot project at: +# https://github.com/mcu-tools/mcuboot +# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ ED25519 key management """ diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/ed25519_test.py b/tools/psa/tfm/bin_utils/imgtool/keys/ed25519_test.py index 31f43fe9bc..d49f34aa3d 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/ed25519_test.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/ed25519_test.py @@ -1,3 +1,20 @@ +# Original code taken from mcuboot project at: +# https://github.com/mcu-tools/mcuboot +# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ Tests for ECDSA keys """ diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/general.py b/tools/psa/tfm/bin_utils/imgtool/keys/general.py index f6b8a09537..442b1eab8b 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/general.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/general.py @@ -1,3 +1,20 @@ +# Original code taken from mcuboot project at: +# https://github.com/mcu-tools/mcuboot +# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """General key class.""" import sys diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/rsa.py b/tools/psa/tfm/bin_utils/imgtool/keys/rsa.py index 85c034215c..a7230e30eb 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/rsa.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/rsa.py @@ -1,3 +1,20 @@ +# Original code taken from mcuboot project at: +# https://github.com/mcu-tools/mcuboot +# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ RSA Key management """ diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/rsa_test.py b/tools/psa/tfm/bin_utils/imgtool/keys/rsa_test.py index b0afa83522..722a444603 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/rsa_test.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/rsa_test.py @@ -1,3 +1,20 @@ +# Original code taken from mcuboot project at: +# https://github.com/mcu-tools/mcuboot +# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ Tests for RSA keys """ diff --git a/tools/psa/tfm/bin_utils/imgtool/keys/x25519.py b/tools/psa/tfm/bin_utils/imgtool/keys/x25519.py index adb68a1a26..32751163d3 100644 --- a/tools/psa/tfm/bin_utils/imgtool/keys/x25519.py +++ b/tools/psa/tfm/bin_utils/imgtool/keys/x25519.py @@ -1,3 +1,20 @@ +# Original code taken from mcuboot project at: +# https://github.com/mcu-tools/mcuboot +# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ X25519 key management """ diff --git a/tools/psa/tfm/bin_utils/imgtool/main.py b/tools/psa/tfm/bin_utils/imgtool/main.py index e01a26c58a..46be8a8271 100755 --- a/tools/psa/tfm/bin_utils/imgtool/main.py +++ b/tools/psa/tfm/bin_utils/imgtool/main.py @@ -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 diff --git a/tools/psa/tfm/bin_utils/imgtool/version.py b/tools/psa/tfm/bin_utils/imgtool/version.py index 8910e0b1a4..6e38f445bb 100644 --- a/tools/psa/tfm/bin_utils/imgtool/version.py +++ b/tools/psa/tfm/bin_utils/imgtool/version.py @@ -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