From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.43047.1683179850939918946 for ; Wed, 03 May 2023 22:57:31 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=izkHEBEF; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: benny.lin@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683179850; x=1714715850; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fvZDQlGirtJeWUpWosrgrl/sl8KlppusP1Why3SEqLQ=; b=izkHEBEF9xwR6RzbqXijygoY1v2N3hz7KcPDwvAijt1hUeMEhEobFPts 1gng2MMHU0e5I/VVf1G7pK+CT9TAeiKnoferZVLPk+nIg4mwkPVtgn5SK Y6DbBCdryxc/bOX8Rex8izDx9gb4GeTtULK/UnZ8qWkRqcEPHy2IyOkiY ZnPzf35lsh4Dsk4QixO23BxpUkpLAOupzcZNJONQcdU4lPAMD08a8YIFN tt3a4AFDlz3ah5YTvzc7PxJwtpLNgHa2TEdMEYVV9hvvkO/QhKLOBoxuM i2bYjsqC1XNXA4DgDreXlBCzLXbKvMr0ZnD0uA8hEgSjbgcNolNOqoEh5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10699"; a="348884507" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="348884507" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2023 22:57:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10699"; a="943193084" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="943193084" Received: from bennyli1-mobl2.gar.corp.intel.com ([10.252.184.20]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2023 22:57:28 -0700 From: "Benny Lin" To: devel@edk2.groups.io Cc: Benny Lin , Michael D Kinney , Liming Gao , Zhiguang Liu , Sean Brogan , Michael Kubacki , Pedro Falcato Subject: [PATCH v6 0/3] Support FDT library. Date: Thu, 4 May 2023 13:57:17 +0800 Message-Id: <20230504055720.397-1-benny.lin@intel.com> X-Mailer: git-send-email 2.39.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Benny Lin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4392 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. 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 Benny Lin (3): Tianocore: Support FDT library. MdePkg: Support FDT library. .pytool: Support FDT library. .gitmodules | 3 + .pytool/CISettings.py | 2 + MdePkg/Include/Library/FdtLib.h | 396 +++++++++++++++++++ MdePkg/Library/BaseFdtLib/BaseFdtLib.inf | 62 +++ MdePkg/Library/BaseFdtLib/BaseFdtLib.uni | 14 + MdePkg/Library/BaseFdtLib/FdtLib.c | 404 ++++++++++++++++++++ MdePkg/Library/BaseFdtLib/LibFdtSupport.h | 99 +++++ MdePkg/Library/BaseFdtLib/LibFdtWrapper.c | 173 +++++++++ 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, 1234 insertions(+), 1 deletion(-) 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/FdtLib.c create mode 100644 MdePkg/Library/BaseFdtLib/LibFdtSupport.h create mode 100644 MdePkg/Library/BaseFdtLib/LibFdtWrapper.c 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 -- 2.39.1.windows.1