From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 2B0067803CE for ; Fri, 25 Aug 2023 14:58:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=xs3KlMP8GLl499qUGDi3Del0bh9IgFVz8C9m9CI2YKc=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1692975500; v=1; b=UnnWxGVcIyv68Ot8nlfM8bo893gEY9tio4p/mXIPyUCWYcRpCOICLiiJa3Vob4bL7g9engon yitYXW8pcqirR7ItXxEG76NF1UIBbCLF/V5gl5n6PjsFR/mcGS/qnqWpoN4gzUUcHtpvXFFRhOQ K6NS8DSGhmAx2K1FRnZvL5yQ= X-Received: by 127.0.0.2 with SMTP id FOGfYY7687511xD4UnqxEcUq; Fri, 25 Aug 2023 07:58:20 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.8293.1692946881776850921 for ; Fri, 25 Aug 2023 00:01:22 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="461012637" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="461012637" X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2023 00:00:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="730931469" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="730931469" X-Received: from jenkailx-desk1.gar.corp.intel.com ([10.227.107.51]) by orsmga007.jf.intel.com with ESMTP; 25 Aug 2023 00:00:54 -0700 From: kasimx.liu@intel.com To: devel@edk2.groups.io Cc: KasimX Liu , Guo Dong , Ray Ni , James Lu , Gua Guo Subject: [edk2-devel] [PATCH v2] UefiPayloadPkg:Enhance the build processing for Universalpayload Date: Fri, 25 Aug 2023 15:00:50 +0800 Message-Id: <20230825070050.1092-1-kasimx.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 Reply-To: devel@edk2.groups.io,kasimx.liu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: vZYQoXu74OT4daOUFlScom4tx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=UnnWxGVc; 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 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: KasimX Liu REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4532 To Copy the PrebuildUplBinary to Build folder then add/replace Fvs. Cc: Guo Dong Cc: Ray Ni Cc: James Lu Cc: Gua Guo Signed-off-by: KasimX Liu --- UefiPayloadPkg/UniversalPayloadBuild.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/Unive= rsalPayloadBuild.py index ecc25dad83..3c3c27f58e 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -58,6 +58,8 @@ def BuildUniversalPayload(Args): BuildDir =3D os.path.join(os.environ['WORKSPACE'], os.path.normpat= h("Build/UefiPayloadPkgX64"))=0D BuildModule =3D ""=0D BuildArch =3D ""=0D + PreBuildUplOutput =3D os.path.join(BuildDir, os.path.normpath("Binarie= s"))=0D +=0D if Args.Arch =3D=3D 'X64':=0D BuildArch =3D "X64"=0D EntryOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTar= get, ElfToolChain), os.path.normpath("X64/UefiPayloadPkg/UefiPayloadEntry/U= niversalPayloadEntry/DEBUG/UniversalPayloadEntry.dll"))=0D @@ -66,7 +68,11 @@ def BuildUniversalPayload(Args): EntryOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTar= get, ElfToolChain), os.path.normpath("IA32/UefiPayloadPkg/UefiPayloadEntry/= UniversalPayloadEntry/DEBUG/UniversalPayloadEntry.dll"))=0D =0D if Args.PreBuildUplBinary is not None:=0D - EntryOutputDir =3D os.path.abspath(Args.PreBuildUplBinary)=0D + if os.path.exists(PreBuildUplOutput) !=3D True:=0D + os.makedirs(PreBuildUplOutput)=0D + EntryOutputDir =3D os.path.join(BuildDir, PreBuildUplOutput, "Univ= ersalPayload.elf")=0D + shutil.copy (os.path.abspath(Args.PreBuildUplBinary), EntryOutputD= ir)=0D +=0D DscPath =3D os.path.normpath("UefiPayloadPkg/UefiPayloadPkg.dsc")=0D ModuleReportPath =3D os.path.join(BuildDir, "UefiUniversalPayloadEntry= .txt")=0D UpldInfoFile =3D os.path.join(BuildDir, "UniversalPayloadInfo.bin")=0D --=20 2.39.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108037): https://edk2.groups.io/g/devel/message/108037 Mute This Topic: https://groups.io/mt/100952717/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-