From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web11.15504.1683244106448476308 for ; Thu, 04 May 2023 16:48:26 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=VBx1a1x9; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: chasel.chiu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683244106; x=1714780106; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=n3uSefbipRoCDgySmKxw01hWYzQtURET7UdgwsoYffc=; b=VBx1a1x9TbC9Xi+PBkeukRKVXVPuAhOA5uHlkCa4QiOigL5MCXWCPfxV O2ArW5/fmaMbUfwZokhupbOsazFjSt16XgHpj6i8xZKbCuF+m+1u6VAQy tjFE73K2zRuVcdy4N2Lf47d2TGTdPBld/GbIfxMIgWOwf0pAcAzOVm6+0 9spUbhj1QFBi0RuD2ab7MpKlPzQk61wNhzXgDqDUuxdJ3l7pEHe6IOTXp 7IgCwvqCmJNC4ldcSL7GHRUtO/U6/tF+XvDwq7g0QoxPP+td7bmb7etbl 0vDzJO2JoA3z3DOokDQWs5w9DF1tcEcbbdmr3W2KssyKidlytRnZ5YB07 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="328706430" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="328706430" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 16:48:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="786796218" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="786796218" Received: from cchiu4-mobl.gar.corp.intel.com ([10.212.172.113]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 16:48:25 -0700 From: "Chiu, Chasel" To: devel@edk2.groups.io Cc: Chasel Chiu , Michael D Kinney , Liming Gao , Zhiguang Liu , Sean Brogan , Michael Kubacki , Pedro Falcato , Benny Lin Subject: [PATCH v7 0/3] Support FDT library. Date: Thu, 4 May 2023 16:48:09 -0700 Message-Id: <20230504234812.2037-1-chasel.chiu@intel.com> X-Mailer: git-send-email 2.35.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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. 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 -- 2.35.0.windows.1