From: "Abner Chang" <abner.chang@hpe.com>
To: devel@edk2.groups.io
Cc: Jiaxin Wu <jiaxin.wu@intel.com>, Siyuan Fu <siyuan.fu@intel.com>,
Fan Wang <fan.wang@intel.com>, Nickle Wang <nickle.wang@hpe.com>,
Peter O'Hanley <peter.ohanley@hpe.com>
Subject: [Platform Redfish Host Interface PATCH 2/6] RedfishPkg: DSC and FDF include files for enabling EFI Redfish support
Date: Thu, 5 Nov 2020 22:38:49 +0800 [thread overview]
Message-ID: <20201105143853.2180-3-abner.chang@hpe.com> (raw)
In-Reply-To: <20201105143853.2180-1-abner.chang@hpe.com>
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Fan Wang <fan.wang@intel.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Cc: Peter O'Hanley <peter.ohanley@hpe.com>
---
RedfishPkg/Redfish.dsc.inc | 21 +++++++++++++++++++++
RedfishPkg/Redfish.fdf.inc | 16 ++++++++++++++++
RedfishPkg/RedfishComponents.dsc.inc | 18 ++++++++++++++++++
RedfishPkg/RedfishDefines.dsc.inc | 27 +++++++++++++++++++++++++++
RedfishPkg/RedfishLibs.dsc.inc | 15 +++++++++++++++
5 files changed, 97 insertions(+)
create mode 100644 RedfishPkg/Redfish.dsc.inc
create mode 100644 RedfishPkg/Redfish.fdf.inc
create mode 100644 RedfishPkg/RedfishComponents.dsc.inc
create mode 100644 RedfishPkg/RedfishDefines.dsc.inc
create mode 100644 RedfishPkg/RedfishLibs.dsc.inc
diff --git a/RedfishPkg/Redfish.dsc.inc b/RedfishPkg/Redfish.dsc.inc
new file mode 100644
index 0000000000..ac72909ca2
--- /dev/null
+++ b/RedfishPkg/Redfish.dsc.inc
@@ -0,0 +1,21 @@
+## @file
+# Redfish DSC include file for Platform DSC
+#
+# This file includes all required information to enable Redfish features.
+# It can be included to a platform DSC file by using "!include RedfishPkg/Redfish.dsc.inc".
+#
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+[Defines]
+ !include RedfishPkg/RedfishDefines.dsc.inc
+
+[LibraryClasses]
+ !include RedfishPkg/RedfishLibs.dsc.inc
+
+[Components]
+ !include RedfishPkg/RedfishComponents.dsc.inc
+
diff --git a/RedfishPkg/Redfish.fdf.inc b/RedfishPkg/Redfish.fdf.inc
new file mode 100644
index 0000000000..19de479a80
--- /dev/null
+++ b/RedfishPkg/Redfish.fdf.inc
@@ -0,0 +1,16 @@
+## @file
+# Redfish FDF include file for [FV*] section of all Architectures.
+#
+# This file can be included to the [FV*] section(s) of a platform FDF file
+# by using "!include RedfishPkg/RedfisLibs.fdf.inc" to specify the module instances
+# to be built in the firmware volume.
+#
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+!if $(REDFISH_ENABLE) == TRUE
+ INF RedfishPkg/RestJsonStructureDxe/RestJsonStructureDxe.inf
+ INF RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf
+!endif
diff --git a/RedfishPkg/RedfishComponents.dsc.inc b/RedfishPkg/RedfishComponents.dsc.inc
new file mode 100644
index 0000000000..ac1b57ed8f
--- /dev/null
+++ b/RedfishPkg/RedfishComponents.dsc.inc
@@ -0,0 +1,18 @@
+## @file
+# Redfish DSC include file for [Components*] section of all Architectures.
+#
+# This file can be included to the [Components*] section(s) of a platform DSC file
+# by using "!include RedfishPkg/RedfishComponents.dsc.inc" to specify the INF files
+# of EDKII Redfish drivers according to the value of flags described in
+# "RedfishDefines.dsc.inc".
+#
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+!if $(REDFISH_ENABLE) == TRUE
+ RedfishPkg/RestJsonStructureDxe/RestJsonStructureDxe.inf
+ RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf
+!endif
diff --git a/RedfishPkg/RedfishDefines.dsc.inc b/RedfishPkg/RedfishDefines.dsc.inc
new file mode 100644
index 0000000000..0049f92378
--- /dev/null
+++ b/RedfishPkg/RedfishDefines.dsc.inc
@@ -0,0 +1,27 @@
+## @file
+# RedfishPkg DSC include file for [Defines] section of all Architectures.
+#
+# This file can be included to the [Defines] section of a platform DSC file by
+# using "!include RedfishPkg/RedfishDefines.dsc.inc" to set value of
+# flags.
+#
+# These flags can be defined before the !include line, or changed on the command
+# line to enable or disable related feature support.
+# -D FLAG=VALUE
+#
+# The default value of these flags are:
+# DEFINE REDFISH_ENABLE = TRUE
+#
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+!ifndef REDFISH_ENABLE
+ #
+ # This flag is to enable or disable the whole Redfish support.
+ #
+ DEFINE REDFISH_ENABLE = TRUE
+!endif
+
diff --git a/RedfishPkg/RedfishLibs.dsc.inc b/RedfishPkg/RedfishLibs.dsc.inc
new file mode 100644
index 0000000000..e780b5c270
--- /dev/null
+++ b/RedfishPkg/RedfishLibs.dsc.inc
@@ -0,0 +1,15 @@
+## @file
+# Redfish DSC include file for [LibraryClasses*] section of all Architectures.
+#
+# This file can be included to the [LibraryClasses*] section(s) of a platform DSC file
+# by using "!include RedfishPkg/RedfisLibs.dsc.inc" to specify the library instances
+# of EDKII network library classes.
+#
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+!if $(REDFISH_ENABLE) == TRUE
+!endif
+
--
2.17.1
next prev parent reply other threads:[~2020-11-05 15:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 14:38 [Platform Redfish Host Interface PATCH 0/6] Enable Platform Redfish Abner Chang
2020-11-05 14:38 ` [Platform Redfish Host Interface PATCH 1/6] RedfishPkg: Add PCD definition to RedfishPkg Abner Chang
2020-11-09 4:24 ` [edk2-devel] " Nickle Wang
2020-11-05 14:38 ` Abner Chang [this message]
2020-11-09 4:26 ` [edk2-devel] [Platform Redfish Host Interface PATCH 2/6] RedfishPkg: DSC and FDF include files for enabling EFI Redfish support Nickle Wang
2020-11-05 14:38 ` [Platform Redfish Host Interface PATCH 3/6] EmulatorPkg/RedfishPlatformHostInterfaceLib library Abner Chang
2020-11-05 14:38 ` [Platform Redfish Host Interface PATCH 4/6] EmulatorPkg/Application: Publish Redfish Host Interface Record Abner Chang
2020-11-05 14:38 ` [Platform Redfish Host Interface PATCH 5/6] EmulatorPkg: Add allowable dependency Abner Chang
2020-11-05 14:38 ` [Platform Redfish Host Interface PATCH 6/6] EmulatorPkg: Redfish related changes on EmulatorPkg Abner Chang
[not found] ` <1644A5FDFD825A04.31306@groups.io>
2020-11-24 9:24 ` [edk2-devel] [Platform Redfish Host Interface PATCH 3/6] EmulatorPkg/RedfishPlatformHostInterfaceLib library Ni, Ray
[not found] ` <1644A5FE6C306DA9.32447@groups.io>
2020-11-24 9:24 ` [edk2-devel] [Platform Redfish Host Interface PATCH 5/6] EmulatorPkg: Add allowable dependency Ni, Ray
[not found] ` <1644A5FF1778E4F7.31306@groups.io>
2020-11-24 9:24 ` [edk2-devel] [Platform Redfish Host Interface PATCH 6/6] EmulatorPkg: Redfish related changes on EmulatorPkg Ni, Ray
[not found] ` <1644A5FE1ACD3DCB.8528@groups.io>
2020-12-03 5:25 ` [edk2-devel] [Platform Redfish Host Interface PATCH 4/6] EmulatorPkg/Application: Publish Redfish Host Interface Record Ni, Ray
2020-12-03 5:41 ` Abner Chang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201105143853.2180-3-abner.chang@hpe.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox