From d921170a028378448b553bc7f30c361f831f70dc Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:41:39 +0100 Subject: [PATCH] tools: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- tools/CMakeLists.txt | 2 ++ tools/WASI-SDK.defs | 2 ++ tools/Wasm.mk | 3 ++- tools/Wasm/CMakeLists.txt | 2 ++ tools/Wasm/WASI-SDK.cmake | 2 ++ tools/check-hash.sh | 2 ++ tools/host_sysinfo.py | 21 +++++++++++++++++++++ tools/mkimport.sh | 5 ++++- tools/mkkconfig.sh | 5 ++++- tools/mkromfsimg.sh | 2 ++ tools/mksymtab.sh | 2 ++ tools/parse_sysinfo.py | 21 +++++++++++++++++++++ tools/pre-commit | 22 +++++++++++++++++++++- 13 files changed, 87 insertions(+), 4 deletions(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index c473bdbe0..48204653a 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/tools/CMakeLists.txt # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more contributor # license agreements. See the NOTICE file distributed with this work for # additional information regarding copyright ownership. The ASF licenses this diff --git a/tools/WASI-SDK.defs b/tools/WASI-SDK.defs index 1bbb3a6b6..99e0062e2 100644 --- a/tools/WASI-SDK.defs +++ b/tools/WASI-SDK.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/tools/WASI-SDK.defs # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. The diff --git a/tools/Wasm.mk b/tools/Wasm.mk index 28627c115..a936a768c 100644 --- a/tools/Wasm.mk +++ b/tools/Wasm.mk @@ -1,7 +1,8 @@ - ############################################################################ # apps/tools/Wasm.mk # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. The diff --git a/tools/Wasm/CMakeLists.txt b/tools/Wasm/CMakeLists.txt index 667583457..ca7fe114c 100644 --- a/tools/Wasm/CMakeLists.txt +++ b/tools/Wasm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/tools/Wasm/CMakeLists.txt # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more contributor # license agreements. See the NOTICE file distributed with this work for # additional information regarding copyright ownership. The ASF licenses this diff --git a/tools/Wasm/WASI-SDK.cmake b/tools/Wasm/WASI-SDK.cmake index 9d06fd99b..5f5309e3f 100644 --- a/tools/Wasm/WASI-SDK.cmake +++ b/tools/Wasm/WASI-SDK.cmake @@ -1,6 +1,8 @@ # ############################################################################## # apps/tools/Wasm/WASI-SDK.cmake # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more contributor # license agreements. See the NOTICE file distributed with this work for # additional information regarding copyright ownership. The ASF licenses this diff --git a/tools/check-hash.sh b/tools/check-hash.sh index cdf56bb05..f20e07d6b 100755 --- a/tools/check-hash.sh +++ b/tools/check-hash.sh @@ -2,6 +2,8 @@ ############################################################################ # apps/tools/check-hash.sh # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. The diff --git a/tools/host_sysinfo.py b/tools/host_sysinfo.py index 3e86cfb35..4d1948ca3 100755 --- a/tools/host_sysinfo.py +++ b/tools/host_sysinfo.py @@ -1,4 +1,25 @@ #!/usr/bin/env python3 +############################################################################ +# apps/tools/host_sysinfo.py +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. The +# ASF licenses this file to you 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. +# +############################################################################ import argparse import os diff --git a/tools/mkimport.sh b/tools/mkimport.sh index e9e2e7664..c91b6321b 100755 --- a/tools/mkimport.sh +++ b/tools/mkimport.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash +############################################################################ # apps/tools/mkimport.sh # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. The @@ -16,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. # - +############################################################################ # Get the input parameter list USAGE=" diff --git a/tools/mkkconfig.sh b/tools/mkkconfig.sh index 1577de531..15db829d4 100755 --- a/tools/mkkconfig.sh +++ b/tools/mkkconfig.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash +############################################################################ # apps/tools/mkkconfig.sh # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. The @@ -16,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. # - +############################################################################ # Get the input parameter list USAGE="USAGE: mkkconfig.sh [-d] [-h] [-m ] [-o ]" diff --git a/tools/mkromfsimg.sh b/tools/mkromfsimg.sh index 45228a85f..8e3ceac6f 100755 --- a/tools/mkromfsimg.sh +++ b/tools/mkromfsimg.sh @@ -2,6 +2,8 @@ ############################################################################ # apps/tools/mkromfsimg.sh # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. The diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh index 400a196ba..744aa05fe 100755 --- a/tools/mksymtab.sh +++ b/tools/mksymtab.sh @@ -2,6 +2,8 @@ ############################################################################ # apps/tools/mksymtab.sh # +# SPDX-License-Identifier: Apache-2.0 +# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. The diff --git a/tools/parse_sysinfo.py b/tools/parse_sysinfo.py index 428c1ac09..59a67c597 100644 --- a/tools/parse_sysinfo.py +++ b/tools/parse_sysinfo.py @@ -1,4 +1,25 @@ #!/usr/bin/env python3 +############################################################################ +# apps/tools/parse_sysinfo.py +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. The +# ASF licenses this file to you 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. +# +############################################################################ import argparse import os diff --git a/tools/pre-commit b/tools/pre-commit index f9210fc7c..4f5de51c2 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -1,5 +1,25 @@ #!/usr/bin/env bash -# tools/pre-commit +############################################################################ +# apps/tools/pre-commit +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. The +# ASF licenses this file to you 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. +# +############################################################################ # git hook to run check-patch on the output and stop any commits # that do not pass. Note, only for git-commit, and not for any of the # other scenarios