Skip to content

Commit

Permalink
RedfishClientPkg/Features: introduce boot option
Browse files Browse the repository at this point in the history
- Introduce Redfish boot option driver and library.
This is to support Redfish resource at:
/redfish/v1/Systems/SYSTEM_ID/BootOptions
- Make ETag parameter as optional parameter in
CreatePayloadToPatchResource function.

Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
Reviewed-by: Abner Chang <abner.chang@amd.com>
  • Loading branch information
nicklela committed Jan 4, 2024
1 parent 0d82638 commit 7c50efb
Show file tree
Hide file tree
Showing 8 changed files with 1,596 additions and 2 deletions.
799 changes: 799 additions & 0 deletions RedfishClientPkg/Features/BootOption/v1_0_4/Common/BootOptionCommon.c

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/** @file
Redfish feature driver implementation - internal header file
(C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/

#ifndef EFI_REDFISH_BOOT_OPTION_COMMON_H_
#define EFI_REDFISH_BOOT_OPTION_COMMON_H_

#include <Library/UefiBootManagerLib.h>
#include <Library/DevicePathLib.h>
#include <Library/BaseLib.h>
#include <RedfishJsonStructure/BootOption/v1_0_4/EfiBootOptionV1_0_4.h>
#include <RedfishResourceCommon.h>

//
// Schema information.
//
#define RESOURCE_SCHEMA "BootOption"
#define RESOURCE_SCHEMA_MAJOR "1"
#define RESOURCE_SCHEMA_MINOR "0"
#define RESOURCE_SCHEMA_ERRATA "4"
#define RESOURCE_SCHEMA_VERSION "v1_0_4"
#define REDPATH_ARRAY_PATTERN L"/BootOptions/\\{.*\\}/"
#define REDPATH_ARRAY_PREFIX L"/BootOptions/"
#define RESOURCE_SCHEMA_FULL "x-uefi-redfish-BootOption.v1_0_4"
#define REDFISH_BOOT_OPTION_PARAMETER L"?name="
#define REDFISH_BOOT_OPTION_DEBUG_TRACE DEBUG_INFO
#endif
Loading

0 comments on commit 7c50efb

Please sign in to comment.