From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.18263.1683253550873107334 for ; Thu, 04 May 2023 19:25:51 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=QUNrKRbb; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: michael.d.kinney@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683253550; x=1714789550; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=WxRtluzxMqm594aIy+2p9UMxjncyhBgg+ahjoB1D75c=; b=QUNrKRbbRcDHiF0BKgECo41aBUssYilyKK8xGLmUq8AsVmxBNPo3xHl7 G0yKWU/aS5F+zwgnR5j4oc/+4WAWYlEPFrU9a0bI1eeRKkOox52hLsNan xAMjM8nhQkStKah0tSnT5R1+OFn670pqJk2hxgOWYk+RdOsUXxE1nAMx9 yA7F0USjvsrmaF4QE0Tnt4wR2VuZ+Tzk1e0n4hpQz/ccq50mryXTx/yq2 Ho0uWeAsR1SpnQixvtmuZYeDN/2llYc2HM9RrOkoTbBfWTUZAAuRexwhB f2gzGWs17RxCRj+SEOhEs9fG7D/9VmEZaKtq1pLhT02Jg5FUiVNFxylLm w==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="346581480" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="346581480" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 19:24:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="943622566" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="943622566" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 04 May 2023 19:24:22 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 4 May 2023 19:24:21 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Thu, 4 May 2023 19:24:21 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Thu, 4 May 2023 19:24:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nyqt2xIhQwQt1cKuEL2OSYjseLZwdyYwzkmXq1jfXkkNWiARYIVZewjs0HvlzZ19RbBAWcbcwt8ZYAKL+0F58HC+JxISAQyJdBm2MJRwzZCSR5WhgsoQt/g8ge0lLYHwV95v9UjWLFTNgSSRq9zByYA42EhUEaH0fG0HPJOL1uJnAILM3hSdm+VlZwQ4fkmGsZPwL295RVy7biPSfX5eb0CQTIUoXSMLLvMJVhilvMHUlP448Ota27Zvo8Lfy0g/QcNKaYZ9g6I3ZTh7M5jt5K69OalbKckwN7ifEGA9c5+7MFrUAMG6Xu4Ozg4MH4kCqo99PQTup5WDvyjiJWrqjg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Jwx8impO8T6TZOqoH9wASW/EsTy3JgxmrU24bt5WgIA=; b=kfQM5nCJPDbgZWNKc9OtdVmA+T0GV+5ty4eB5BXawv2+kDs8VmC0RJcVS1A6plfBi+eIrhOiNqHNOIA5cGNX34YV2CKHr3+kxwFd1IQI5d8zNrWwCGfIPYw25znSqMGT8KC7jKCD8XtojbgKLA6tljbkd2u6zZf54PbLPMWVWsszuAIaj4u8av6G1qnOZgROXGjU0l9Y/xhpinTqgDvnOaTfvQP9M6vb/qRCu+WTBPugR/iKEysJrBFNippXXIHS8zc+XoccSFKCveVetYG1zsfK588wOQ1G3e+0E/ZDNUI1xPnxvfz5SXfKQslIpdj50f/3xlDXvfk23UkahAbSEA== 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 Received: from CO1PR11MB4929.namprd11.prod.outlook.com (2603:10b6:303:6d::19) by CY5PR11MB6509.namprd11.prod.outlook.com (2603:10b6:930:43::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26; Fri, 5 May 2023 02:24:18 +0000 Received: from CO1PR11MB4929.namprd11.prod.outlook.com ([fe80::9b1e:23e9:53e:291]) by CO1PR11MB4929.namprd11.prod.outlook.com ([fe80::9b1e:23e9:53e:291%7]) with mapi id 15.20.6363.022; Fri, 5 May 2023 02:24:18 +0000 From: "Michael D Kinney" To: "Chiu, Chasel" , "devel@edk2.groups.io" CC: "Gao, Liming" , "Liu, Zhiguang" , Sean Brogan , "Michael Kubacki" , Pedro Falcato , "Lin, Benny" , "Kinney, Michael D" Subject: Re: [PATCH v7 0/3] Support FDT library. Thread-Topic: [PATCH v7 0/3] Support FDT library. Thread-Index: AQHZfuLypDxNrOEl7UuFac2rEtSrMa9K84lw Date: Fri, 5 May 2023 02:24:18 +0000 Message-ID: References: <20230504234812.2037-1-chasel.chiu@intel.com> In-Reply-To: <20230504234812.2037-1-chasel.chiu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO1PR11MB4929:EE_|CY5PR11MB6509:EE_ x-ms-office365-filtering-correlation-id: 99e351b3-91e6-482b-7a96-08db4d0fd45a x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /RvcM0VoMJsMI4Vbd4c/8zRONjlY6U/Y1l7+M5jlL5d41pdGkdbUHl9xS9vngNmIUECNf/oYzKHWUxGXMr1lRJmCIhKjsJQY6zLt3byy98HMecyBV5Tf03PcQ5RniIWru1S+suRQUAMHWD8HDsg7287qVoKbUZQGaDAqhsWI4y26ELY05h3MNUhvtai1lEy8TJ4s8Az72TzLV6JOwvZRKoQ6XUs14YvJSro8bXj6RSZu8fNNzl1xxHvRB2vfv2+jYbIf39SZuUfaDtSJz/PzNAvedSTEoTU/u7/ID6SvgBTvTnSK945J5RTdORqQ7y/V2C5aLQFo5i2RAsmuWN9IQegfOYDDmtctM3vN1HfHyFMOP1QEaxvkw2mIBI/PR2wcD+H/H4wAHYapOCJzTJLcCfrHjLSeJF6vAeOgCLMNzc9kxybqnXBS8OSrziDVcg/547zJvQ3J0o1VDBYCtGA+UTurHFr5365ONEpLsaQx6IDxuhCMcvXKBVt2MSWCUkCdSGEXBB/rJLduVvnosta8432pWoZFp3XEgUMUzlVEw7Ic9PmAKSQxaTQyaJj7tmVbP3od4MORo2EmlcIhsZtsVu2wrz3enSw4MvY+uAgzS9YF/YdOOF0KjNqWRoGpWFqHkTmdAUFz4vBQQhxIhCxW4Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4929.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(346002)(136003)(376002)(366004)(39860400002)(396003)(451199021)(52536014)(8676002)(8936002)(55016003)(966005)(86362001)(7696005)(4326008)(316002)(71200400001)(41300700001)(33656002)(38070700005)(64756008)(66476007)(76116006)(66446008)(66946007)(66556008)(478600001)(82960400001)(5660300002)(38100700002)(122000001)(2906002)(53546011)(54906003)(110136005)(6506007)(26005)(9686003)(107886003)(83380400001)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?dIyaX9Ut9YC1Kp5k0ShhNmsWy27+iq1MNCGV/BzuYtJAItoZOHSn23TI/YL3?= =?us-ascii?Q?2L0cnAT5nK7c91F5aDSCrsGp/G7HpSFsOpSvdowHX42ATBZpPHuyh0WM7nmF?= =?us-ascii?Q?bFtaY1MPkNo6AD9/gryZWPugA9G3Lc7YqOcLaT6YaC1VOqom7KaV03Vt/lFM?= =?us-ascii?Q?4O8SEeAa3OtttthgFsCSIDi10WpO/FA6SxEvjhAeXKEFB4xjE1F7kAZ9+07w?= =?us-ascii?Q?0Y3t73j6Vt8+zqqfjj0iiUbktHw6oZ0UsXEdnz34vxXTdMNGfXyKF171egdk?= =?us-ascii?Q?7lFgv7MTbDcCasCtYQ8JkqFQgYNc4i01C1ydqujRxPezk0l96B53+M5ZrKJp?= =?us-ascii?Q?B/mfbmRN7czyrB79QSdUe5tW6WEXCfHF+LXu8dUaPX4RlhYUi2hjkZnE9AVf?= =?us-ascii?Q?R2YRh6qMB7pqKD8m19Lm34SRN25FYzSptevnYfnrJd0sIkHMJzM4TCUjbX1l?= =?us-ascii?Q?FapuSb4wWxQZV+KMI2n/B8qur3qy5Up6Ab+UfXjzXczRUl+QsaV6MCZLpBNZ?= =?us-ascii?Q?b4iBVT5/b1BfTg3ooJfOA97Ekrb8c0bbvWy/0X+9iz/7fAk7M0M2oLHctxPp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r9p2+g0/A115xs84vODiWEZR9en9U?= =?us-ascii?Q?ap7w/BUfk6G5u6vrDB1n8Tte8wcM0dbVzRBbqWGrBd41uEy9JimGegnHVzq3?= =?us-ascii?Q?PCffnKoftQdHzjMHZ2tBGRnulqiLSA2uldVuVCvIv37qyIZwWklra/YtKKYL?= =?us-ascii?Q?Jw=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4929.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99e351b3-91e6-482b-7a96-08db4d0fd45a X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2023 02:24:18.5245 (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: Z8KxbPwihGMd0hew/mBlhKdUX2LSGMKCcsPmow+gkVeZjBQrH1BTHB0cFCDQ+7xKRxsio0Q3d6RzsIPkYiSCbkNGjJVixETcDd0pWKIlZuI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6509 Return-Path: michael.d.kinney@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Series Reviewed-by: Michael D Kinney > -----Original Message----- > From: Chiu, Chasel > Sent: Thursday, May 4, 2023 4:48 PM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Kinney, Michael D > ; Gao, Liming ; Liu= , > Zhiguang ; Sean Brogan > ; Michael Kubacki > ; Pedro Falcato ; > Lin, Benny > Subject: [PATCH v7 0/3] Support FDT library. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4392 > Add FDT support in EDK2 by submodule 3rd party libfdt > (https://github.com/devicetree-org/pylibfdt/tree/main/libfdt) > and refer to LibcLib implementation by Pedro. >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Sean Brogan > Cc: Michael Kubacki > Acked-by: Pedro Falcato > Signed-off-by: Benny Lin >=20 >=20 > V7: > Update FdtLib.h comments to replace SwapBytes*() with CpuToFdt*() > and Fdt*ToCpu() provided by current library. > Benny Lin (3): > Tianocore: Support FDT library. > MdePkg: Support FDT library. > .pytool: Support FDT library. >=20 > MdePkg/Library/BaseFdtLib/FdtLib.c | 404 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++++++++++++ > MdePkg/Library/BaseFdtLib/LibFdtWrapper.c | 173 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++ > .gitmodules | 3 +++ > .pytool/CISettings.py | 2 ++ > MdePkg/Include/Library/FdtLib.h | 401 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++ > MdePkg/Library/BaseFdtLib/BaseFdtLib.inf | 62 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > MdePkg/Library/BaseFdtLib/BaseFdtLib.uni | 14 ++++++++++++++ > MdePkg/Library/BaseFdtLib/LibFdtSupport.h | 99 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++++++++++++++++++++++++++++++++ > MdePkg/Library/BaseFdtLib/libfdt | 1 + > MdePkg/Library/BaseFdtLib/limits.h | 10 ++++++++++ > MdePkg/Library/BaseFdtLib/stdbool.h | 10 ++++++++++ > MdePkg/Library/BaseFdtLib/stddef.h | 10 ++++++++++ > MdePkg/Library/BaseFdtLib/stdint.h | 10 ++++++++++ > MdePkg/Library/BaseFdtLib/stdlib.h | 10 ++++++++++ > MdePkg/Library/BaseFdtLib/string.h | 10 ++++++++++ > MdePkg/MdePkg.ci.yaml | 15 ++++++++++++++- > MdePkg/MdePkg.dec | 4 ++++ > MdePkg/MdePkg.dsc | 1 + > ReadMe.rst | 1 + > 19 files changed, 1239 insertions(+), 1 deletion(-) > create mode 100644 MdePkg/Library/BaseFdtLib/FdtLib.c > create mode 100644 MdePkg/Library/BaseFdtLib/LibFdtWrapper.c > create mode 100644 MdePkg/Include/Library/FdtLib.h > create mode 100644 MdePkg/Library/BaseFdtLib/BaseFdtLib.inf > create mode 100644 MdePkg/Library/BaseFdtLib/BaseFdtLib.uni > create mode 100644 MdePkg/Library/BaseFdtLib/LibFdtSupport.h > create mode 160000 MdePkg/Library/BaseFdtLib/libfdt > create mode 100644 MdePkg/Library/BaseFdtLib/limits.h > create mode 100644 MdePkg/Library/BaseFdtLib/stdbool.h > create mode 100644 MdePkg/Library/BaseFdtLib/stddef.h > create mode 100644 MdePkg/Library/BaseFdtLib/stdint.h > create mode 100644 MdePkg/Library/BaseFdtLib/stdlib.h > create mode 100644 MdePkg/Library/BaseFdtLib/string.h >=20 > -- > 2.35.0.windows.1