From e41ef499955504a9acc29c607f6ea002085d38c5 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Wed, 18 Dec 2024 07:43:47 +0100 Subject: [PATCH] builtin: 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 --- builtin/CMakeLists.txt | 2 ++ builtin/Make.defs | 2 ++ builtin/Makefile | 2 ++ builtin/builtin_list.c | 6 ++++-- builtin/exec_builtin.c | 2 ++ 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/builtin/CMakeLists.txt b/builtin/CMakeLists.txt index e8be798e733..5447ff06749 100644 --- a/builtin/CMakeLists.txt +++ b/builtin/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/builtin/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/builtin/Make.defs b/builtin/Make.defs index dad098de19e..47d1bf96004 100644 --- a/builtin/Make.defs +++ b/builtin/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/builtin/Make.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/builtin/Makefile b/builtin/Makefile index a26e107e189..a5de31f6c5e 100644 --- a/builtin/Makefile +++ b/builtin/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/builtin/Makefile # +# 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/builtin/builtin_list.c b/builtin/builtin_list.c index dcc10e10b6a..9605b097c7b 100644 --- a/builtin/builtin_list.c +++ b/builtin/builtin_list.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/builtin/builtin_list.c * + * 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 @@ -29,6 +31,8 @@ #include +#include "builtin_proto.h" + /**************************************************************************** * Private Types ****************************************************************************/ @@ -41,8 +45,6 @@ * Public Data ****************************************************************************/ -#include "builtin_proto.h" - const struct builtin_s g_builtins[] = { # include "builtin_list.h" diff --git a/builtin/exec_builtin.c b/builtin/exec_builtin.c index 2bf28b8f404..325d594cf5c 100644 --- a/builtin/exec_builtin.c +++ b/builtin/exec_builtin.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/builtin/exec_builtin.c * + * 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