From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6D818AC085F for ; Fri, 24 May 2024 04:11:56 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=F1v99D9naYBBUjVIn+q9dAk73tL+0op+OZqmms7xneY=; c=relaxed/simple; d=groups.io; h=From:To:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1716523914; v=1; b=o5Ogeq5jpobW+LygPpFgJtxg8CEw9i4M/M81hleOkb870Pl/86NblFvvKz0/8yLcDrr6UpqB qZqof1mLqoWIrCm32EsH1NquaBBKeP9eX98ZPQ+J91M3aU6Ot/R4mwV9TaaKHJs74RYO9lWlaPo sPS9X2jGUXLHQEAQgv29feCdkOYI92cmSvfrU1/x+nyLaBFSVri146830cC866Dv6Ihyjqs2Ngb UtZ6VESZczo20OfCTS95aBmrV9QpHsfx9Ll9lmFDc2RMGCCYPhPkpSc/d9fvK3+DkNR9PKo0FU9 JCNekqhsSWiXgq43lGavaXJqYToRWFZ4MUEbnUBQFm9Vw== X-Received: by 127.0.0.2 with SMTP id akqyYY7687511xbHK4KlIbMS; Thu, 23 May 2024 21:11:54 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mx.groups.io with SMTP id smtpd.web10.8295.1716523911416148158 for ; Thu, 23 May 2024 21:11:51 -0700 X-CSE-ConnectionGUID: lg/Ir95AQfCkoTjoAjWDBQ== X-CSE-MsgGUID: SN5XY8R+QmOsXDUkDzKfNA== X-IronPort-AV: E=McAfee;i="6600,9927,11081"; a="35400903" X-IronPort-AV: E=Sophos;i="6.08,184,1712646000"; d="scan'208";a="35400903" X-Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2024 21:11:51 -0700 X-CSE-ConnectionGUID: +kdQuJ5sSi2NwJfxt1KwFg== X-CSE-MsgGUID: eA8yT2ysQGqki30HVac8Pg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,184,1712646000"; d="scan'208";a="34002543" X-Received: from linusliu-desk1.gar.corp.intel.com ([10.225.76.64]) by orviesa009.jf.intel.com with ESMTP; 23 May 2024 21:11:50 -0700 From: "Linus Liu" To: devel@edk2.groups.io Subject: [edk2-devel] [PATCH v3 0/6] *** FDT support in Universal Payload *** Date: Thu, 23 May 2024 21:11:41 -0700 Message-Id: <20240524041141.1398-1-linus.liu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 23 May 2024 21:11:51 -0700 Resent-From: linus.liu@intel.com Reply-To: devel@edk2.groups.io,linus.liu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Fuv8lhZx9EH3Z8OIKzTrTDDAx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=o5Ogeq5j; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io To align with ecosystem common interface, the FDT support is added to Universal Payload) PR : https://github.com/tianocore/edk2/pull/5669 V2: Update typo [3/6] avalible ,[6/6] speciifc, HandOffhbo V3: Update cover letter content. *** BLURB HERE *** Linus Liu (6): MdePkg: Fix build error after enable FDT support. UefiPayloadPkg: Addd header files for FDT structure and function. UefiPayloadPkg: Support Debug function when Hob was not available. UefiPayloadPkg: Update PayloadLoader to suport FDT. UefiPayloadPkg: Add FDT Paser relative LIBs. UefiPayloadPkg: Update UefiPayload driver for FDT support. UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibHob.c | 69 ++ UefiPayloadPkg/Library/CustomFdtNodeParserLib/CustomFdtNodeParserLib.c | 158 +++ UefiPayloadPkg/Library/CustomFdtNodeParserNullLib/CustomFdtNodeParserNullLib.c | 51 + UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibHob.c | 5 + UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c | 622 ++++++++++++ UefiPayloadPkg/{UefiPayloadEntry/UniversalPayloadEntry.c => Library/HobParseLib/HobParseLib.c} | 255 ++--- UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c | 7 +- UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.c | 4 + UefiPayloadPkg/PayloadLoaderPeim/FitPayloadLoaderPeim.c | 1004 +++++++++++++++++++- UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c | 71 +- UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.c | 428 ++++----- UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c | 12 + UefiPayloadPkg/UefiPayloadEntry/Ia32/{DxeLoadFunc.c => DxeLoadFuncFit.c} | 32 +- UefiPayloadPkg/UefiPayloadEntry/MemoryAllocation.c | 50 + UefiPayloadPkg/UefiPayloadEntry/PrintHob.c | 6 +- UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c | 6 - UefiPayloadPkg/UefiPayloadEntry/X64/DxeLoadFunc.c | 12 + UefiPayloadPkg/UefiPayloadEntry/X64/{DxeLoadFunc.c => DxeLoadFuncFit.c} | 31 +- MdePkg/Library/BaseFdtLib/BaseFdtLib.inf | 7 +- UefiPayloadPkg/Include/Guid/UniversalPayloadBase.h | 2 + UefiPayloadPkg/Include/Library/FdtParserLib.h | 64 ++ UefiPayloadPkg/Include/UniversalPayload/DeviceTree.h | 30 + UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibHob.inf | 10 + UefiPayloadPkg/Library/BaseSerialPortLibHob/DxeBaseSerialPortLibHob.inf | 13 +- UefiPayloadPkg/Library/CustomFdtNodeParserLib/CustomFdtNodeParserLib.inf | 46 + UefiPayloadPkg/Library/CustomFdtNodeParserNullLib/CustomFdtNodeParserNullLib.inf | 33 + UefiPayloadPkg/Library/FdtParserLib/FdtParseLib.inf | 63 ++ UefiPayloadPkg/Library/HobParseLib/HobParseLib.inf | 40 + UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf | 1 + UefiPayloadPkg/PayloadLoaderPeim/FitPayloadLoaderPeim.inf | 16 +- UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.inf | 12 + UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.inf | 20 +- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h | 68 ++ UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf | 16 +- UefiPayloadPkg/UefiPayloadPkg.dec | 22 + UefiPayloadPkg/UefiPayloadPkg.dsc | 29 +- 36 files changed, 2841 insertions(+), 474 deletions(-) create mode 100644 UefiPayloadPkg/Library/CustomFdtNodeParserLib/CustomFdtNodeParserLib.c create mode 100644 UefiPayloadPkg/Library/CustomFdtNodeParserNullLib/CustomFdtNodeParserNullLib.c create mode 100644 UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c copy UefiPayloadPkg/{UefiPayloadEntry/UniversalPayloadEntry.c => Library/HobParseLib/HobParseLib.c} (61%) copy UefiPayloadPkg/UefiPayloadEntry/Ia32/{DxeLoadFunc.c => DxeLoadFuncFit.c} (90%) copy UefiPayloadPkg/UefiPayloadEntry/X64/{DxeLoadFunc.c => DxeLoadFuncFit.c} (74%) create mode 100644 UefiPayloadPkg/Include/Library/FdtParserLib.h create mode 100644 UefiPayloadPkg/Include/UniversalPayload/DeviceTree.h create mode 100644 UefiPayloadPkg/Library/CustomFdtNodeParserLib/CustomFdtNodeParserLib.inf create mode 100644 UefiPayloadPkg/Library/CustomFdtNodeParserNullLib/CustomFdtNodeParserNullLib.inf create mode 100644 UefiPayloadPkg/Library/FdtParserLib/FdtParseLib.inf create mode 100644 UefiPayloadPkg/Library/HobParseLib/HobParseLib.inf -- 2.39.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119192): https://edk2.groups.io/g/devel/message/119192 Mute This Topic: https://groups.io/mt/106275973/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-