From 41537fe90fc435993fb843f2e5d40ffa9d1f3cf3 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Mon, 9 Sep 2024 12:00:35 +0200 Subject: [PATCH] cmake: 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 --- cmake/menuconfig.cmake | 2 ++ cmake/nuttx_add_application.cmake | 2 ++ cmake/nuttx_add_dependencies.cmake | 2 ++ cmake/nuttx_add_library.cmake | 2 ++ cmake/nuttx_add_module.cmake | 2 ++ cmake/nuttx_add_romfs.cmake | 2 ++ cmake/nuttx_add_subdirectory.cmake | 2 ++ cmake/nuttx_add_symtab.cmake | 2 ++ cmake/nuttx_allsyms.cmake | 2 ++ cmake/nuttx_create_symlink.cmake | 2 ++ cmake/nuttx_export_header.cmake | 2 ++ cmake/nuttx_generate_headers.cmake | 2 ++ cmake/nuttx_generate_outputs.cmake | 2 ++ cmake/nuttx_kconfig.cmake | 2 ++ cmake/nuttx_mkconfig.cmake | 2 ++ cmake/nuttx_mkversion.cmake | 2 ++ cmake/nuttx_parse_function_args.cmake | 2 ++ cmake/nuttx_redefine_symbols.cmake | 2 ++ cmake/nuttx_sethost.cmake | 2 ++ cmake/nuttx_source_file_properties.cmake | 2 ++ cmake/savedefconfig.cmake | 2 ++ cmake/symtab.c.in | 2 ++ 22 files changed, 44 insertions(+) diff --git a/cmake/menuconfig.cmake b/cmake/menuconfig.cmake index 97e130712b4..6a8b0efc4c7 100644 --- a/cmake/menuconfig.cmake +++ b/cmake/menuconfig.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/menuconfig.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/cmake/nuttx_add_application.cmake b/cmake/nuttx_add_application.cmake index a65b3961646..307f0d29d1e 100644 --- a/cmake/nuttx_add_application.cmake +++ b/cmake/nuttx_add_application.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_add_application.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/cmake/nuttx_add_dependencies.cmake b/cmake/nuttx_add_dependencies.cmake index eba7db12579..8355412d5b7 100644 --- a/cmake/nuttx_add_dependencies.cmake +++ b/cmake/nuttx_add_dependencies.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_add_dependencies.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/cmake/nuttx_add_library.cmake b/cmake/nuttx_add_library.cmake index be15857d10c..9290083d1a7 100644 --- a/cmake/nuttx_add_library.cmake +++ b/cmake/nuttx_add_library.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_add_library.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/cmake/nuttx_add_module.cmake b/cmake/nuttx_add_module.cmake index 94ff71e4c05..bd33b93afb1 100644 --- a/cmake/nuttx_add_module.cmake +++ b/cmake/nuttx_add_module.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_add_module.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/cmake/nuttx_add_romfs.cmake b/cmake/nuttx_add_romfs.cmake index e600341accf..864924f7ae3 100644 --- a/cmake/nuttx_add_romfs.cmake +++ b/cmake/nuttx_add_romfs.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_add_romfs.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/cmake/nuttx_add_subdirectory.cmake b/cmake/nuttx_add_subdirectory.cmake index 49c5da90bae..378edada38f 100644 --- a/cmake/nuttx_add_subdirectory.cmake +++ b/cmake/nuttx_add_subdirectory.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_add_subdirectory.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/cmake/nuttx_add_symtab.cmake b/cmake/nuttx_add_symtab.cmake index bd32a644b8c..b61139cc7bb 100644 --- a/cmake/nuttx_add_symtab.cmake +++ b/cmake/nuttx_add_symtab.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_add_symtab.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/cmake/nuttx_allsyms.cmake b/cmake/nuttx_allsyms.cmake index 7e8bfc09d26..beeec799e98 100644 --- a/cmake/nuttx_allsyms.cmake +++ b/cmake/nuttx_allsyms.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_allsyms.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/cmake/nuttx_create_symlink.cmake b/cmake/nuttx_create_symlink.cmake index e34b94fade9..08191f1f1cf 100644 --- a/cmake/nuttx_create_symlink.cmake +++ b/cmake/nuttx_create_symlink.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_create_symlink.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/cmake/nuttx_export_header.cmake b/cmake/nuttx_export_header.cmake index d883f20e8f1..ac1c5619d6e 100644 --- a/cmake/nuttx_export_header.cmake +++ b/cmake/nuttx_export_header.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_export_header.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/cmake/nuttx_generate_headers.cmake b/cmake/nuttx_generate_headers.cmake index f6803e9e68e..8c7523f8c72 100644 --- a/cmake/nuttx_generate_headers.cmake +++ b/cmake/nuttx_generate_headers.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_generate_headers.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/cmake/nuttx_generate_outputs.cmake b/cmake/nuttx_generate_outputs.cmake index 7ffe2846258..721c5a0986d 100644 --- a/cmake/nuttx_generate_outputs.cmake +++ b/cmake/nuttx_generate_outputs.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_generate_outputs.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/cmake/nuttx_kconfig.cmake b/cmake/nuttx_kconfig.cmake index 33d7962f2cc..371bf2b08ae 100644 --- a/cmake/nuttx_kconfig.cmake +++ b/cmake/nuttx_kconfig.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_kconfig.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/cmake/nuttx_mkconfig.cmake b/cmake/nuttx_mkconfig.cmake index 71500c355aa..9f532f8895e 100644 --- a/cmake/nuttx_mkconfig.cmake +++ b/cmake/nuttx_mkconfig.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_mkconfig.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/cmake/nuttx_mkversion.cmake b/cmake/nuttx_mkversion.cmake index 4c5110b9522..c7176fb3c1a 100644 --- a/cmake/nuttx_mkversion.cmake +++ b/cmake/nuttx_mkversion.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_mkversion.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/cmake/nuttx_parse_function_args.cmake b/cmake/nuttx_parse_function_args.cmake index 48018b3d7c5..f8b2fb0eb7d 100644 --- a/cmake/nuttx_parse_function_args.cmake +++ b/cmake/nuttx_parse_function_args.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_parse_function_args.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/cmake/nuttx_redefine_symbols.cmake b/cmake/nuttx_redefine_symbols.cmake index e33acff0d8d..7ff4012a49e 100644 --- a/cmake/nuttx_redefine_symbols.cmake +++ b/cmake/nuttx_redefine_symbols.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_redefine_symbols.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/cmake/nuttx_sethost.cmake b/cmake/nuttx_sethost.cmake index 1ac35cbd447..308b11f41a8 100644 --- a/cmake/nuttx_sethost.cmake +++ b/cmake/nuttx_sethost.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_sethost.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/cmake/nuttx_source_file_properties.cmake b/cmake/nuttx_source_file_properties.cmake index 25a7f6493db..64dc84d1bed 100644 --- a/cmake/nuttx_source_file_properties.cmake +++ b/cmake/nuttx_source_file_properties.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/nuttx_source_file_properties.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/cmake/savedefconfig.cmake b/cmake/savedefconfig.cmake index 2aa6fd6a15b..eec44ea2d49 100644 --- a/cmake/savedefconfig.cmake +++ b/cmake/savedefconfig.cmake @@ -1,6 +1,8 @@ # ############################################################################## # cmake/savedefconfig.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/cmake/symtab.c.in b/cmake/symtab.c.in index 51576f11082..56405d80cfb 100644 --- a/cmake/symtab.c.in +++ b/cmake/symtab.c.in @@ -1,6 +1,8 @@ /**************************************************************************** * cmake/symtab.c.in * + * 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