Skip to content

Commit b97d92f

Browse files
committed
Add missing license header and SPDX identifier
This files are imported and part of: mcu-tools/mcuboot@a8e12da Issue has been raised mcu-tools/mcuboot#930 As these scripts are going to be part of release its important to have licensing information.
1 parent e98748d commit b97d92f

File tree

16 files changed

+152
-0
lines changed

16 files changed

+152
-0
lines changed

tools/psa/tfm/bin_utils/assemble.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright 2017 Linaro Limited
44
# Copyright (c) 2017-2019, Arm Limited.
55
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
#
68
# Licensed under the Apache License, Version 2.0 (the "License");
79
# you may not use this file except in compliance with the License.
810
# You may obtain a copy of the License at

tools/psa/tfm/bin_utils/imgtool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#
33
# Copyright 2017 Linaro Limited
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed under the Apache License, Version 2.0 (the "License");
68
# you may not use this file except in compliance with the License.
79
# You may obtain a copy of the License at

tools/psa/tfm/bin_utils/imgtool/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Copyright 2017-2020 Linaro Limited
22
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
46
# you may not use this file except in compliance with the License.
57
# You may obtain a copy of the License at

tools/psa/tfm/bin_utils/imgtool/boot_record.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright (c) 2019, Arm Limited.
22
# Copyright (c) 2020, Linaro Limited
33
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
46
# Licensed under the Apache License, Version 2.0 (the "License");
57
# you may not use this file except in compliance with the License.
68
# You may obtain a copy of the License at

tools/psa/tfm/bin_utils/imgtool/image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2017-2020 Linaro Limited
33
# Copyright 2019-2020 Arm Limited
44
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
57
# Licensed under the Apache License, Version 2.0 (the "License");
68
# you may not use this file except in compliance with the License.
79
# You may obtain a copy of the License at

tools/psa/tfm/bin_utils/imgtool/keys/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Copyright 2017 Linaro Limited
22
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
46
# you may not use this file except in compliance with the License.
57
# You may obtain a copy of the License at

tools/psa/tfm/bin_utils/imgtool/keys/ecdsa.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Original code taken from mcuboot project at:
2+
# https://github.com/mcu-tools/mcuboot
3+
# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
118
"""
219
ECDSA key management
320
"""

tools/psa/tfm/bin_utils/imgtool/keys/ecdsa_test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Original code taken from mcuboot project at:
2+
# https://github.com/mcu-tools/mcuboot
3+
# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
118
"""
219
Tests for ECDSA keys
320
"""

tools/psa/tfm/bin_utils/imgtool/keys/ed25519.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Original code taken from mcuboot project at:
2+
# https://github.com/mcu-tools/mcuboot
3+
# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
118
"""
219
ED25519 key management
320
"""

tools/psa/tfm/bin_utils/imgtool/keys/ed25519_test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Original code taken from mcuboot project at:
2+
# https://github.com/mcu-tools/mcuboot
3+
# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
118
"""
219
Tests for ECDSA keys
320
"""

tools/psa/tfm/bin_utils/imgtool/keys/general.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Original code taken from mcuboot project at:
2+
# https://github.com/mcu-tools/mcuboot
3+
# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
118
"""General key class."""
219

320
import sys

tools/psa/tfm/bin_utils/imgtool/keys/rsa.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Original code taken from mcuboot project at:
2+
# https://github.com/mcu-tools/mcuboot
3+
# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
118
"""
219
RSA Key management
320
"""

tools/psa/tfm/bin_utils/imgtool/keys/rsa_test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Original code taken from mcuboot project at:
2+
# https://github.com/mcu-tools/mcuboot
3+
# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
118
"""
219
Tests for RSA keys
320
"""

tools/psa/tfm/bin_utils/imgtool/keys/x25519.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Original code taken from mcuboot project at:
2+
# https://github.com/mcu-tools/mcuboot
3+
# Git SHA of the original version: a8e12dae381080e898cea0c6f7408009b0163f9f
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
118
"""
219
X25519 key management
320
"""

tools/psa/tfm/bin_utils/imgtool/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright 2017-2020 Linaro Limited
44
# Copyright 2019-2020 Arm Limited
55
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
#
68
# Licensed under the Apache License, Version 2.0 (the "License");
79
# you may not use this file except in compliance with the License.
810
# You may obtain a copy of the License at

tools/psa/tfm/bin_utils/imgtool/version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Copyright 2017 Linaro Limited
22
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
46
# you may not use this file except in compliance with the License.
57
# You may obtain a copy of the License at

0 commit comments

Comments
 (0)