Use SPDX identifiers
SPDX identifiers are simpler, and reduce the amount of cruft we have in
code files. They are recommended by linux foundation, and therefore we
should do as they allow.
This patchset does not intend to modify any intent on any existing
copyrights or licenses, only to standardize their inclusion.
[1] https://www.linuxfoundation.org/blog/blog/copyright-notices-in-open-source-software-projects
Change-Id: I935c7c0156caa78fc368c929cebd0f068031e830
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py
index bfe2fd9..e172923 100755
--- a/scripts/parse_registries.py
+++ b/scripts/parse_registries.py
@@ -20,10 +20,11 @@
* github organization.
***************************************************************/"""
-REGISTRY_HEADER = (
- PRAGMA_ONCE
- + WARNING
- + """
+COPYRIGHT = """// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright OpenBMC Authors
+"""
+
+INCLUDES = """
#include "registries.hpp"
#include <array>
@@ -33,7 +34,8 @@
namespace redfish::registries::{}
{{
"""
-)
+
+REGISTRY_HEADER = f"{COPYRIGHT}{PRAGMA_ONCE}{WARNING}{INCLUDES}"
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
@@ -178,7 +180,8 @@
PRIVILEGE_HEADER = (
- PRAGMA_ONCE
+ COPYRIGHT
+ + PRAGMA_ONCE
+ WARNING
+ """
#include "privileges.hpp"