From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.228.1681324581152957426 for ; Wed, 12 Apr 2023 11:36:21 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=CYy0dEGb; spf=pass (domain: intel.com, ip: 192.55.52.151, 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=1681324581; x=1712860581; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=AT5YES/Z5sHSV9oeMh5iwArbLV7B5Dn3L9VELwXomMA=; b=CYy0dEGbnJPJY+YAQJACPnNggTUIAfGZ7qpI6BEoCqaBMQl23oZ7YCwh Vbo8z/2hqFSTDyWzK7ekEYwF7r8swQ/Ptzf7SviOWmVf1/aTAiSJVHpcc ZriBohSjUHO9/6gQ3Z6/FnQxTG80WlhCZWqma6L71GS8ZIVDwdcdl74cz w6/NlnC5VyWDgI0y/UqJJyRH/6aMDo7OWnKnrGutUfCj+Gb0yQ0BTEMCZ PnNX/aTRcbIP3OqV9ZvzD90foRxrD3Ynfy9gcFrWCAwGYkvZaMf6h5CBy D8aaVUWOX+KaFeeA75xLgFaolEm2iKbPp+q36PmGLXzfuhkN8oF40OlJO A==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="324348853" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="324348853" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 11:36:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="1018834619" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="1018834619" Received: from bennyli1-mobl2.gar.corp.intel.com ([10.252.185.57]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 11:36:18 -0700 From: "Benny Lin" To: devel@edk2.groups.io Cc: Benny Lin , Michael D Kinney , Liming Gao , Zhiguang Liu , Sean Brogan , Michael Kubacki Subject: [PATCH v2 0/3] Support FDT library. Date: Thu, 13 Apr 2023 02:36:03 +0800 Message-Id: <20230412183606.887-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) Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Sean Brogan Cc: Michael Kubacki 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 | 300 ++++++++++++++++++++ MdePkg/Library/BaseFdtLib/BaseFdtLib.inf | 62 ++++ MdePkg/Library/BaseFdtLib/BaseFdtLib.uni | 14 + MdePkg/Library/BaseFdtLib/FdtLib.c | 284 ++++++++++++++++++ MdePkg/Library/BaseFdtLib/LibFdtSupport.h | 100 +++++++ MdePkg/Library/BaseFdtLib/LibFdtWrapper.c | 165 +++++++++++ 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 | 17 +- MdePkg/MdePkg.dec | 4 + MdePkg/MdePkg.dsc | 1 + ReadMe.rst | 1 + 19 files changed, 1012 insertions(+), 2 deletions(-) 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