summaryrefslogtreecommitdiff
path: root/scripts/generate_schema_enums.py
diff options
context:
space:
mode:
authorEd Tanous <etanous@nvidia.com>2024-09-10 23:50:16 +0300
committerEd Tanous <etanous@nvidia.com>2025-01-20 21:44:54 +0300
commit40e9b92ec19acffb46f83a6e55b18974da5d708e (patch)
treea563e213faf64eb822f29dc426bb03b730c03725 /scripts/generate_schema_enums.py
parent65622a5d6fd773cd127f3fcd1ea6dcacd68b4605 (diff)
downloadbmcweb-40e9b92ec19acffb46f83a6e55b18974da5d708e.tar.xz
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>
Diffstat (limited to 'scripts/generate_schema_enums.py')
-rwxr-xr-xscripts/generate_schema_enums.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/generate_schema_enums.py b/scripts/generate_schema_enums.py
index d8275010b5..44dcde6551 100755
--- a/scripts/generate_schema_enums.py
+++ b/scripts/generate_schema_enums.py
@@ -70,6 +70,8 @@ def camel_to_snake(name):
def write_enum_list(redfish_defs_file, enum_list, snake_case_namespace):
redfish_defs_file.write(
+ "// SPDX-License-Identifier: Apache-2.0\n"
+ "// SPDX-FileCopyrightText: Copyright OpenBMC Authors\n"
"#pragma once\n"
"#include <nlohmann/json.hpp>\n\n"
"namespace {}\n"