From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web09.9016.1604589873523209635 for ; Thu, 05 Nov 2020 07:24:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=ZBAlmtrC; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0578d2b66c=abner.chang@hpe.com) Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0A5FFJAh008499; Thu, 5 Nov 2020 15:24:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pps0720; bh=yfq03JptZOxxBt2WHxRKgvkoN1ABuvFifWPlCnY/v+I=; b=ZBAlmtrCOSXzhi2BbD8RzTbUHd6TL6uix5wtULoUH+2KYXWSqXlFrFGsVqMkClHryf6R Em6DnEiMIVQ4pPdvV4OeLDbIlqEWqJfqPFPsiPvhf0Qd2NQdaA8PRSjMDbZqG7BkXQhw zUM5lONb7s54YaU4EUgbCRfDPIXmNpIlfK4MwCYIx7Hin3tdCj1YN5XNVPbH1xxMmpSX kbQIO450WwTQd5VlSr6D34Zt8Bx0qfA1lhqZrFNIPKUxFeCWHJzDwAAwhp4f8W3S13a0 XwC03XNS8nZS95RbUKxJm70c8nUD2qq2DYzMwkBY+UWmXcThsV0+t301msk4xOtoFBwC Mw== Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 34kb70aax6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Nov 2020 15:24:33 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 8DA6C5A; Thu, 5 Nov 2020 15:24:32 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 145AB48; Thu, 5 Nov 2020 15:24:30 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Jiaxin Wu , Siyuan Fu , Fan Wang , Nickle Wang , Peter O'Hanley 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 Message-Id: <20201105143853.2180-3-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201105143853.2180-1-abner.chang@hpe.com> References: <20201105143853.2180-1-abner.chang@hpe.com> X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-05_09:2020-11-05,2020-11-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=1 priorityscore=1501 adultscore=0 clxscore=1015 phishscore=0 bulkscore=0 spamscore=0 mlxlogscore=895 lowpriorityscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011050105 Signed-off-by: Abner Chang Cc: Jiaxin Wu Cc: Siyuan Fu Cc: Fan Wang Cc: Nickle Wang Cc: Peter O'Hanley --- 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
+# +# 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
+# +# 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
+# +# 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
+# +# 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
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## +!if $(REDFISH_ENABLE) == TRUE +!endif + -- 2.17.1