From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.50014.1606209898115499645 for ; Tue, 24 Nov 2020 01:24:58 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=GVEORt2t; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: ray.ni@intel.com) IronPort-SDR: qB9QgCZXIRw7rmKWLMQ7i49PQWKKjq8Mxj6/eY30ttiTwCe8xO5FBQcSknmKFRnpF4SGgnt9hu Lx8NxXAvd3ag== X-IronPort-AV: E=McAfee;i="6000,8403,9814"; a="190040341" X-IronPort-AV: E=Sophos;i="5.78,365,1599548400"; d="scan'208";a="190040341" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 01:24:57 -0800 IronPort-SDR: C/2AUhuVGWBDqgTmHsJO5GkvxGVeiR+xWEdXON3ym4imgcPOT0/RZWIYgVKOBt7EWnGhqc03OH AOd1TI2XRB5g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,365,1599548400"; d="scan'208";a="343101509" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga002.jf.intel.com with ESMTP; 24 Nov 2020 01:24:57 -0800 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 24 Nov 2020 01:24:55 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 24 Nov 2020 01:24:55 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 24 Nov 2020 01:24:54 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YD7/874ExjRpZr6YFS0UmEKeduTKFhqNIKSGbVljc1N9Tu4slvrj7f4yBTbiCp5wUUhPSz3GldSMvYGe2TRoOTtei/mRcRCBBiXlcRne2eFr/bUgZDzFCNk/CagPSVeu9QChHFfvGy+VB4fp3ZbyGEGUH1tzLR0+P4pZVMErC1SdZprSv/9ZJymyPTIasGiH1Yw4DXhS8OtJrEJd8m+N4SZGg1ciUThrzIJj+5TILL6/KI/3cchphvnagorVlzRatjDqOLsAPZzL2y2eSuJ7zgRVQ7brBV2IgBGpcJbs6jhL5y0IG9BelhP0oZaggyl8vfZFp1oqEqkmW4nbjYaZtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fuppxAJVMpX8XTrQe2kqwsteFPjwJXzdsC+3Gozbrv0=; b=lO1qa4zn7jnKhmGgNKRxjh0GYoVDaSitU7o5QiO07da6puhmFbtj3yQHb8K8QGj1JNul/UxLM+RYLFrx7N8RHvBw6X2Qk7F6QF3BKmvqnb8JdQrtAcpCHjJn2AQblS/Q3DTbO9ZQ0fvWEkJzYi+KEx7Cd5BR++ItEpJrbZ/nC/8JVnHEJXmDEL4WitxnR54GbBNXvffpF1w4k95sLvGoPTcZMdp0llLiHNzhBeecOC9o8FIj0q5lZHf0SdcxKNJKLodt9vZO2fNwWkbMEQ5CYpjKzLJCi+LkDhG0XqCSFIrji9b6vOtDZsP095gFp8P2tiscx4LyxAec8fcy6F2ePw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fuppxAJVMpX8XTrQe2kqwsteFPjwJXzdsC+3Gozbrv0=; b=GVEORt2thA3quApfhHz6McqaHIweS2j0THPfXVxvC2+cMUdHfj11d5LKB7mZviIND/ZeBi2F4GdWE28q3jS/imk6ey8RMRfAU58jblkjQiWBIejXjNy1KCRo2tz8Lnwc5JdNxLwzY9mwa3641yOMtzsA/xvs+JBV0e6ep3QOKUA= Received: from CO1PR11MB4930.namprd11.prod.outlook.com (2603:10b6:303:9b::11) by MWHPR11MB1823.namprd11.prod.outlook.com (2603:10b6:300:10e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.25; Tue, 24 Nov 2020 09:24:51 +0000 Received: from CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::d18:1234:c1d6:5936]) by CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::d18:1234:c1d6:5936%7]) with mapi id 15.20.3611.020; Tue, 24 Nov 2020 09:24:51 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Chang, Abner (HPS SW/FW Technologist)" CC: "Justen, Jordan L" , Andrew Fish , "Wang, Nickle (HPS SW)" , "O'Hanley, Peter (EXL)" Subject: Re: [edk2-devel] [Platform Redfish Host Interface PATCH 6/6] EmulatorPkg: Redfish related changes on EmulatorPkg Thread-Topic: [edk2-devel] [Platform Redfish Host Interface PATCH 6/6] EmulatorPkg: Redfish related changes on EmulatorPkg Thread-Index: AQHWwkOpUj86+1rIzUioWVMvRYWofQ== Date: Tue, 24 Nov 2020 09:24:51 +0000 Message-ID: References: <20201105143853.2180-1-abner.chang@hpe.com> <1644A5FF1778E4F7.31306@groups.io> In-Reply-To: <1644A5FF1778E4F7.31306@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.220] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 38b74275-33a6-4d30-2cf8-08d8905acc24 x-ms-traffictypediagnostic: MWHPR11MB1823: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:26; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OE2XtVesvcgmZAVkrYRla85SF7nfSTHe7mOesO7czKV2gBQ9Sddaq6cBwKlc4vONjqdi5L6ySuHf60hNuIXPn4YS1h+g3C7vR46mgMMfCHscy0tDGjDomEdvdMI73iuDJ2ucNlPZA4q+vMwSDGFrQPUDkwaWpaxTqXiNFipdgVJZbcj1h1jIHyrWn6pf2PIBJBlUvoiUEWPlJavFzhvlnMVGd59+rjxQt3nitJnBtJbJsgDMb+OsxgW0BhwORvp1kNu7XHBoxjKnTtR1Xg4BR0CdYTjJQ5FuvBLw1Vua+Uyzs2weCY1ZXONfEa+sQrAyEsAm1uxgl1bECXFq9hC8fn0vucGSM61jhgQ4pdC7lDeTdsdMjzjlUjaVOA7rOSWxIx09ue1dXRsVgTe7aa9QNA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4930.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(346002)(376002)(136003)(366004)(39860400002)(6506007)(26005)(186003)(55016002)(53546011)(966005)(7696005)(19627235002)(8936002)(5660300002)(8676002)(33656002)(86362001)(71200400001)(83380400001)(316002)(9686003)(110136005)(2906002)(54906003)(66446008)(4326008)(52536014)(66556008)(66946007)(478600001)(76116006)(64756008)(66476007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 3qVT+J45OSkzPZMc/BGMFNRqSxFCD//qFO51Fz1vBL318Zcz1cI7g+3UJVrSrArVT9IDS01sfBKxkauAH92xgpIjpdt26tpEceWg6dh6nEit5vzpvpp6WE/R1mUE8rqg3sECZ4BfysbnopX7j7fJ9RCpZrtv7EGUT4AWSP7+kLf2XM3gGE65GiEsX+VUHYflQOYgk0wQJTolq0/MKa8peTkoluZQEjUDczQx8+FlEAeh0jlG/8Wyq6+Cdy4b02slc3knMQ7PGBmtZrPjO7CBggK6b/H++jJNEXCNRg27Cnz/eF/gfzMDIAqCf1OSY1oKx0XYNdG3gD4GmXUGLQMHqsGoF1ulaQP4SgZ2wGpJjEHll0v9NteKxIfyVzmMuOavg6dZMjaSL2uzwMJEq8Jno6FCT6tSBYaVibEGILRBr6cIkc4cLbqQE2+qlnLonzR+Vzvww+PRjKzStmctADVTSXgHEZ1XpiKjYDttSC0hhIyVJDV41JRHYrT0NplCIBw4YXjynC23x1JAs6CcqkeT/RPB8xgvrENogkfhZ53EQirJfgRlv7euJqywFRdYPIa7khZ5jKprSB/74IynfDom5p4WGsgvbhR3oaIrEEFtlD1r7Vt05PBPbBnuVsq+QGAazRJaZ7beF+YSEnLKWYO/PDd7qxizt1/R4S8f8fa+KQ2fvuJclmFaSqqlehqh2RwDYu3Gp3Ark6rxm3KeXgYrOplM6ajNaXax8nTi8R7ETlutMkkVWbztC48hyDCGusIFMRSyAJVYpctpDjl9qrtSWsdk0AaGRWqjX879r8Y8ZaKnUixTj79vvAv2o4YWDx/td0D59DESMq8NSJoHbLOj4Tn5+K+DaSQcsdxwRAHKCtRXI9FAhC0PmBgYXFe2hFqjPbxMtXHSbQ4pAvWhsJkOow== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4930.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38b74275-33a6-4d30-2cf8-08d8905acc24 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2020 09:24:51.7980 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IvjJJR+NzuFyr3ikzukUg6Su0Y0JnwZHVWAHH3091xy8Tlku+A5ocrvvw9DwxVli7r7uuLv6KjaFP5hXESp0ZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1823 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Acked-by: Ray Ni > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Chang, Ab= ner (HPS SW/FW Technologist) > Sent: Thursday, November 5, 2020 10:39 PM > To: devel@edk2.groups.io > Cc: Justen, Jordan L ; Andrew Fish ; Ni, Ray ; Wang, Nickle > (HPS SW) ; O'Hanley, Peter (EXL) > Subject: [edk2-devel] [Platform Redfish Host Interface PATCH 6/6] Emulat= orPkg: Redfish related changes on EmulatorPkg >=20 > - REDFISH_ENABLE definition to control EFI Redfish support > - Add Redfish platform host interface library to > EmulatorPkg build. > - Set RestExServiceDevicePath PCD value. > - Add Redfish host interface config EFI application > to EmulatorPkg build. > - Use Redfish DSC/FDF include file. >=20 > Signed-off-by: Abner Chang >=20 > Cc: Jordan Justen > Cc: Andrew Fish > Cc: Ray Ni > Cc: Nickle Wang > Cc: Peter O'Hanley > --- > EmulatorPkg/EmulatorPkg.dsc | 26 +++++++++++++++++++++++++- > EmulatorPkg/EmulatorPkg.fdf | 5 +++++ > 2 files changed, 30 insertions(+), 1 deletion(-) >=20 > diff --git a/EmulatorPkg/EmulatorPkg.dsc b/EmulatorPkg/EmulatorPkg.dsc > index a27cb1beb0..aa5504c137 100644 > --- a/EmulatorPkg/EmulatorPkg.dsc > +++ b/EmulatorPkg/EmulatorPkg.dsc > @@ -34,6 +34,11 @@ > DEFINE NETWORK_ISCSI_ENABLE =3D FALSE > DEFINE SECURE_BOOT_ENABLE =3D FALSE >=20 > + # > + # Redfish definition > + # > + DEFINE REDFISH_ENABLE =3D FALSE > + > [SkuIds] > 0|DEFAULT >=20 > @@ -95,7 +100,9 @@ > # > PlatformBootManagerLib|EmulatorPkg/Library/PlatformBmLib/PlatformBmLi= b.inf > KeyMapLib|EmulatorPkg/Library/KeyMapLibNull/KeyMapLibNull.inf > - > + !if $(REDFISH_ENABLE) =3D=3D TRUE > + > RedfishPlatformHostInterfaceLib|EmulatorPkg/Library/RedfishPlatformHostI= nterfaceLib/RedfishPlatformHostInterfaceLib.inf > + !endif > # > # Misc > # > @@ -249,6 +256,18 @@ > # 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM > gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1 >=20 > +!if $(REDFISH_ENABLE) =3D=3D TRUE > + > gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceDevicePath.DevicePat= hMatchMode|DEVICE_PATH_MATCH_MAC_NO > DE > + gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceDevicePath.Device= PathNum|1 > + # > + # Below is the MAC address of network adapter on EDK2 Emulator platfo= rm. > + # You can use ifconfig under EFI shell to get the MAC address of netw= ork adapter on EDK2 Emulator platform. > + # > + gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceDevicePath.Device= Path|{DEVICE_PATH("MAC(000000000000,0x1)")} > + gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceAccessModeInBand|= False > + gEfiRedfishPkgTokenSpaceGuid.PcdRedfishDiscoverAccessModeInBand|False > +!endif > + > [PcdsDynamicDefault.common.DEFAULT] > gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0 > gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0 > @@ -447,6 +466,11 @@ >=20 > !include NetworkPkg/Network.dsc.inc >=20 > +!if $(REDFISH_ENABLE) =3D=3D TRUE > + EmulatorPkg/Application/RedfishPlatformConfig/RedfishPlatformConfig.i= nf > +!endif > +!include RedfishPkg/Redfish.dsc.inc > + > [BuildOptions] > # > # Disable deprecated APIs. > diff --git a/EmulatorPkg/EmulatorPkg.fdf b/EmulatorPkg/EmulatorPkg.fdf > index b256aa9397..5420756eaa 100644 > --- a/EmulatorPkg/EmulatorPkg.fdf > +++ b/EmulatorPkg/EmulatorPkg.fdf > @@ -208,6 +208,11 @@ INF EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf > !endif > !include NetworkPkg/Network.fdf.inc >=20 > +# > +# EFI Redfish drivers > +# > +!include RedfishPkg/Redfish.fdf.inc > + > INF FatPkg/EnhancedFatDxe/Fat.inf >=20 > !if "XCODE5" not in $(TOOL_CHAIN_TAG) > -- > 2.17.1 >=20 >=20 >=20 >=20 >=20