]> git.proxmox.com Git - mirror_edk2.git/commitdiff
RedfishPkg: DSC and FDF include files for enabling EFI Redfish support
authorAbner Chang <abner.chang@hpe.com>
Wed, 4 Nov 2020 13:26:10 +0000 (21:26 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 11 Nov 2020 07:48:51 +0000 (07:48 +0000)
Provide the DSC/FDF include files of edk2 Redfish related
modules and definitions which can be included in platform's
DSC/FDF.

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>
Reviewed-by: Nickle Wang <nickle.wang@hpe.com>
RedfishPkg/Redfish.dsc.inc [new file with mode: 0644]
RedfishPkg/Redfish.fdf.inc [new file with mode: 0644]
RedfishPkg/RedfishComponents.dsc.inc [new file with mode: 0644]
RedfishPkg/RedfishDefines.dsc.inc [new file with mode: 0644]
RedfishPkg/RedfishLibs.dsc.inc [new file with mode: 0644]

diff --git a/RedfishPkg/Redfish.dsc.inc b/RedfishPkg/Redfish.dsc.inc
new file mode 100644 (file)
index 0000000..ac72909
--- /dev/null
@@ -0,0 +1,21 @@
+## @file\r
+# Redfish DSC include file for Platform DSC\r
+#\r
+# This file includes all required information to enable Redfish features.\r
+# It can be included to a platform DSC file by using "!include RedfishPkg/Redfish.dsc.inc".\r
+#\r
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
+#\r
+#    SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+[Defines]\r
+  !include RedfishPkg/RedfishDefines.dsc.inc\r
+\r
+[LibraryClasses]\r
+  !include RedfishPkg/RedfishLibs.dsc.inc\r
+\r
+[Components]\r
+  !include RedfishPkg/RedfishComponents.dsc.inc\r
+\r
diff --git a/RedfishPkg/Redfish.fdf.inc b/RedfishPkg/Redfish.fdf.inc
new file mode 100644 (file)
index 0000000..19de479
--- /dev/null
@@ -0,0 +1,16 @@
+## @file\r
+# Redfish FDF include file for [FV*] section of all Architectures.\r
+#\r
+# This file can be included to the [FV*] section(s) of a platform FDF file\r
+# by using "!include RedfishPkg/RedfisLibs.fdf.inc" to specify the module instances\r
+# to be built in the firmware volume.\r
+#\r
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
+#\r
+#    SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+!if $(REDFISH_ENABLE) == TRUE\r
+  INF RedfishPkg/RestJsonStructureDxe/RestJsonStructureDxe.inf\r
+  INF RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf\r
+!endif\r
diff --git a/RedfishPkg/RedfishComponents.dsc.inc b/RedfishPkg/RedfishComponents.dsc.inc
new file mode 100644 (file)
index 0000000..ac1b57e
--- /dev/null
@@ -0,0 +1,18 @@
+## @file\r
+# Redfish DSC include file for [Components*] section of all Architectures.\r
+#\r
+# This file can be included to the [Components*] section(s) of a platform DSC file\r
+# by using "!include RedfishPkg/RedfishComponents.dsc.inc" to specify the INF files\r
+# of EDKII Redfish drivers according to the value of flags described in\r
+# "RedfishDefines.dsc.inc".\r
+#\r
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
+#\r
+#    SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+!if $(REDFISH_ENABLE) == TRUE\r
+  RedfishPkg/RestJsonStructureDxe/RestJsonStructureDxe.inf\r
+  RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf\r
+!endif\r
diff --git a/RedfishPkg/RedfishDefines.dsc.inc b/RedfishPkg/RedfishDefines.dsc.inc
new file mode 100644 (file)
index 0000000..0049f92
--- /dev/null
@@ -0,0 +1,27 @@
+## @file\r
+# RedfishPkg DSC include file for [Defines] section of all Architectures.\r
+#\r
+# This file can be included to the [Defines] section of a platform DSC file by\r
+# using "!include RedfishPkg/RedfishDefines.dsc.inc" to set value of\r
+# flags.\r
+#\r
+# These flags can be defined before the !include line, or changed on the command\r
+# line to enable or disable related feature support.\r
+#   -D FLAG=VALUE\r
+#\r
+# The default value of these flags are:\r
+#   DEFINE REDFISH_ENABLE = TRUE\r
+#\r
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
+#\r
+#    SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+!ifndef REDFISH_ENABLE\r
+  #\r
+  # This flag is to enable or disable the whole Redfish support.\r
+  #\r
+  DEFINE REDFISH_ENABLE = TRUE\r
+!endif\r
+\r
diff --git a/RedfishPkg/RedfishLibs.dsc.inc b/RedfishPkg/RedfishLibs.dsc.inc
new file mode 100644 (file)
index 0000000..e780b5c
--- /dev/null
@@ -0,0 +1,15 @@
+## @file\r
+# Redfish DSC include file for [LibraryClasses*] section of all Architectures.\r
+#\r
+# This file can be included to the [LibraryClasses*] section(s) of a platform DSC file\r
+# by using "!include RedfishPkg/RedfisLibs.dsc.inc" to specify the library instances\r
+# of EDKII network library classes.\r
+#\r
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
+#\r
+#    SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+!if $(REDFISH_ENABLE) == TRUE\r
+!endif\r
+\r