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 <[email protected]>
Cc: Abner Chang <[email protected]>
Cc: Igor Kulchytskyy <[email protected]>
Cc: Nick Ramirez <[email protected]>
  • Loading branch information
nicklela committed Jan 4, 2024
1 parent 42566e5 commit a2a2b2e
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 a2a2b2e

Please sign in to comment.