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 71E89D80225 for ; Mon, 10 Jun 2024 16:13:17 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=PW0ADgJ3PTXOHrQpE8oqwHGn5ttFtgBxp8/ejMzFtjc=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language: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-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1718035997; v=1; b=ouOhQKd4qGfdEwA5A5DANw1P7S3uORMV6vGo8InR+MKq8lcpHipdgNBq4lKrns+6iv8H3y1E t12unVr1Vi/ZshMv+6tQyNg6XP2+Xi/U/oPkyMDN64bFiXcSHcqkv5dSuc1LwSSUjf/pNAIQFv4 Ev/C43STMuh34Yx4Cbqs1nQwHSLW9lwuQD6pxse2EBrDFOoupLc4TI8GcT32HwaMDw3UUcPoA0c Wth+vaoUkIrqaJi0KGhoFQLK1Vy35so55zGUnVyBNRuldoVbz9jZZ4F6DgU/6bM/HDt44yyU+BE utKpNhKM/oBjEYnMCkcePJClb4f82indUqFNy4JfboOWw== X-Received: by 127.0.0.2 with SMTP id yVSwYY7687511xqgBEUrgrXX; Mon, 10 Jun 2024 09:13:15 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mx.groups.io with SMTP id smtpd.web11.23665.1718035994571179247 for ; Mon, 10 Jun 2024 09:13:15 -0700 X-CSE-ConnectionGUID: l1nSlg5NRUSMtOIQeh7/pw== X-CSE-MsgGUID: DBy+JffGRyaOWPahf5sagw== X-IronPort-AV: E=McAfee;i="6600,9927,11099"; a="32193540" X-IronPort-AV: E=Sophos;i="6.08,227,1712646000"; d="scan'208";a="32193540" X-Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2024 09:13:14 -0700 X-CSE-ConnectionGUID: PtTPgavpQyawpd/T7xSCUg== X-CSE-MsgGUID: jhCpGt/sSayB8RojxSacNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,227,1712646000"; d="scan'208";a="62282246" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 10 Jun 2024 09:13:14 -0700 X-Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 10 Jun 2024 09:13:13 -0700 X-Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Mon, 10 Jun 2024 09:13:13 -0700 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.47) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 10 Jun 2024 09:13:12 -0700 X-Received: from DS0PR11MB7681.namprd11.prod.outlook.com (2603:10b6:8:f0::11) by MN0PR11MB6304.namprd11.prod.outlook.com (2603:10b6:208:3c0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Mon, 10 Jun 2024 16:13:09 +0000 X-Received: from DS0PR11MB7681.namprd11.prod.outlook.com ([fe80::26ad:a28f:7035:6c90]) by DS0PR11MB7681.namprd11.prod.outlook.com ([fe80::26ad:a28f:7035:6c90%5]) with mapi id 15.20.7633.036; Mon, 10 Jun 2024 16:13:09 +0000 From: "Guo, Gua" To: Dhaval , "devel@edk2.groups.io" CC: "Dong, Guo" , "Lu, James" , "Rhodes, Sean" Subject: Re: [edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Enable UPL FIT build config from cmdline Thread-Topic: [PATCH v1 1/1] UefiPayloadPkg: Enable UPL FIT build config from cmdline Thread-Index: AQHau00snnLDUrCB5EC2Pv6GB0hjx7HBKwLw Date: Mon, 10 Jun 2024 16:13:09 +0000 Message-ID: References: <20240610154454.271172-1-dhaval@rivosinc.com> In-Reply-To: <20240610154454.271172-1-dhaval@rivosinc.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS0PR11MB7681:EE_|MN0PR11MB6304:EE_ x-ms-office365-filtering-correlation-id: 7c53f00e-b3bb-4cbb-cd6d-08dc89683884 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?yoJb6PxIEifJeFDLF/N8EOQHRec7a7M60KnXyc+ifE4ceQHTazPcTbtKNJag?= =?us-ascii?Q?NQA+SOcY8VKNI94wrQ7z5M3n67JFmWwHrH1zeQ+gakS8k1oWbK0CUm8BboYe?= =?us-ascii?Q?eYEYzVYPnsFt0CBis7TlKo2wZEDcGZ5hjcTRd/nr2iC3E2jSV5E8bICMjjMv?= =?us-ascii?Q?MzRV4mOLIvdXaQBDyFR/gQGkfK5DC56Ie33lN2NTC5qwxdR8t2wZYbX0pN9L?= =?us-ascii?Q?DmYUXuBvGHeZ8ZFpGXgrVDOUWySm7iC2xUuHTFDDy3eWPJ1czIWE7WOZpm65?= =?us-ascii?Q?5RlxgCbgLaCUuLplRswbaaBOrf7WM1/MIvMziFuUghM5fPQQMSsFUJ2AoD4A?= =?us-ascii?Q?EnXwX+BVIZfDn0KB57e4w4aN9NOBl/7E1YLmliQjV8gBDBcSCA4ULNVHxhyl?= =?us-ascii?Q?FbxFJGGMTUbGYy18YmtZppa71cowAuIrxtt3knEQuq2nm6N38uIy4vvWEzZg?= =?us-ascii?Q?Zwse14NQJIbBJvRjITdvNHo9gJzcJ3pb42jt8TtbNXbPQCaEIK0htfeSl+5q?= =?us-ascii?Q?s6NiKWES5I1BBPeyhQ/BthJugS/gNU+XhaaTz7WNrAcOHTwIZQQsTMXs4Gfo?= =?us-ascii?Q?ByFKPtsMBwNEJePqu66zu6oAlVAQ1BNMi/npVzEEuFzdpbzS4pS/qMfIwyuz?= =?us-ascii?Q?CohWocQNrwZnOVxTJJnffeF5gnrXGFNeYghVCQhWJoby2SmfcY45c0GA7IPk?= =?us-ascii?Q?W2fJae3Qf8GWR6N6WuIxF5eqkk0pyGZJ9tRgCl2Tw+w+1vjjSapycakqAZEe?= =?us-ascii?Q?M2EmTc5wzJqS9nzJMY60w4cPCKLXgdfjVETgU87kHitNeia1hXFXz2e9RK2x?= =?us-ascii?Q?ygy2S7rCEmAaQp0XVN3YZJoR86RHJtSl4d3CNOmNtpy666Ry6cYDCyZB7djQ?= =?us-ascii?Q?edqafmMPhHmcajpfGwImWUKtfqrbCZX1E/paUs7JDSwN8VCqhE43o7VuNVBJ?= =?us-ascii?Q?DZpFq5tecm48dT/vwlj8JoIRsFoYtHKE/IxFSomvDvj0OqXIkyspkTQCeFo0?= =?us-ascii?Q?hr1n3OoljriKwCx8CqUW/GuTc5V81StYTYD1K6fKe3doSkLvBlweW7WV0W5O?= =?us-ascii?Q?TeagODU1qF30tLRJ9KQrq7XV7fHeiIui77y4GEBaxzA06LPcOU8ogUQCjils?= =?us-ascii?Q?81yXfTGkCqpJshsGwX4OkwoX5OHVBNGifkfcf+hbnUWXEpNF518IVmnD+erb?= =?us-ascii?Q?2CtQATHfSxWT9TJ6cP7NcWnAtwgyc2xTXzXoS2mF72iihYcyJ2fBFCwvXD8x?= =?us-ascii?Q?5/ObYrTNGFvZK4/U2Vvp53be0BYBh3KkT3SDHJcRo0GzmVbS+P0aN75p0Ggk?= =?us-ascii?Q?0w+W+vu+zSzagcRPivpgD/QeHO0k8vyyuLAJe4zpvA3voOTNwtss77fAVLBe?= =?us-ascii?Q?xPImxKM=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6m/OS3D1KrsyQVz0gIL9B9lc/qEqtVrGKCozYcclsaB4g3P11z+Dz4Xe5x/R?= =?us-ascii?Q?ZGA/jlmnaWBNOSFw/94IKMjx1h8nH1Um1jX4q4c6G5SZKPz0Mj5T0GUQsSU0?= =?us-ascii?Q?g/wK6tY/0O088XABS3wwLlCeLCQN3kq7UU4jzMTfM5PdZPUItsZNUgghXDb1?= =?us-ascii?Q?nzxy96eI0LpzbzjcVfXvXHmmPMeGe2XfZybTzCdBesHkmPch4uRu6SsvvjWW?= =?us-ascii?Q?dStqNGR8cgSZ7C1AWvc+a96jvsTQtmEy2vskIHi17JuRGh3N1A4qW4vk23kg?= =?us-ascii?Q?cDa/sJsdCP5hmB8nhfEULmHlsWo7nT+aBbgsw6qJ5zgnUHVZfXzyfWJQJzHL?= =?us-ascii?Q?1yCLxssXsu2jsUUyXiijkG6QKckon9Wr2A6fHutc2BZwJDcYkuyK4QraBFIO?= =?us-ascii?Q?+6HfzmvQMYuWOuP91roPEt26CNbqt3QowwOUuAp82jcoo/uG3n/0Ivkmi3fS?= =?us-ascii?Q?5h8x8BOCuf7VaoQDEVbkcEt1Uu9rDGA43hpDuX1cYk72hFAZ8UxokmypWMfL?= =?us-ascii?Q?9K8ACFDyw1jYiiZEvcrTTZ7qNlY8NIC9trCwvhx5MPhG+TtLOZu+JX3XwxG7?= =?us-ascii?Q?uUY6RbZGVY1mL5PCwpyxrJPEzwHz/zfGyd8Zr5vmrv/ovRLdr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x5njroXTnvMYUqdrodc1Z89QT4+?= =?us-ascii?Q?s71t+wKeTHGQkktm9R0=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7681.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c53f00e-b3bb-4cbb-cd6d-08dc89683884 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2024 16:13:09.7485 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WG7D03Mti0d+oW3tfnFwzjBEjTOWZwz6QrV4hh1Kbn/vLfp+FRXRcY3laB61RBLKnoMg5vuM+f/WjK5M5uukdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6304 X-OriginatorOrg: intel.com 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: Mon, 10 Jun 2024 09:13:15 -0700 Resent-From: gua.guo@intel.com Reply-To: devel@edk2.groups.io,gua.guo@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 0tEUNi8UocOsgbn8OrTZc01nx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=ouOhQKd4; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) parser.add_argument('-c', '--DscPath', type=3Dstr, required=3DTrue, help=3D= 'Path to the DSC file') > required should be False Default should be UefiPayloadPkg.dsc, --DscPath can give customized dsc pat= h. I will be better for backward compatibility. Thanks, Gua -----Original Message----- From: Dhaval =20 Sent: Monday, June 10, 2024 11:45 PM To: devel@edk2.groups.io Cc: Guo, Gua ; Dong, Guo ; Lu, James= ; Rhodes, Sean Subject: [PATCH v1 1/1] UefiPayloadPkg: Enable UPL FIT build config from cm= dline Provide commandline configuration to select proper platform file. Cc: Gua Guo Cc: Guo Dong Cc: James Lu Cc: Sean Rhodes Signed-off-by: Dhaval Sharma --- UefiPayloadPkg/UniversalPayloadBuild.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/Unive= rsalPayloadBuild.py index 0423e6da17ff..e2d2e3ffbd1f 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -112,6 +112,7 @@ def RunCommand(cmd): raise Exception("ERROR: when run command: %s"%cmd) =20 def BuildUniversalPayload(Args): + DscPath =3D os.path.normpath(Args.DscPath) BuildTarget =3D Args.Target ToolChain =3D Args.ToolChain Quiet =3D "--quiet" if Args.Quiet else "" @@ -140,7 +141,6 @@ def BuildUniversalPayload(Args): =20 EntryOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTarget,= PayloadEntryToolChain), os.path.normpath("{}/UefiPayloadPkg/UefiPayloadEnt= ry/{}/DEBUG/{}.dll".format (Args.Arch, UpldEntryFile, UpldEntryFile))) EntryModuleInf =3D os.path.normpath("UefiPayloadPkg/UefiPayloadEntry/{= }.inf".format (UpldEntryFile)) - DscPath =3D os.path.normpath("UefiPayloadPkg/UefiPayloadPkg.dsc") DxeFvOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTarget,= ToolChain), os.path.normpath("FV/DXEFV.Fv")) BdsFvOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTarget,= ToolChain), os.path.normpath("FV/BDSFV.Fv")) NetworkFvOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTar= get, ToolChain), os.path.normpath("FV/NETWORKFV.Fv")) @@ -321,6 +321,7 @@ def main(): parser.add_argument("-af", "--AddFv", type=3DValidateAddFv, action=3D'= append', help=3D'Add or replace specific FV into payload, Ex: uefi_fv=3DXXX= .fv') parser.add_argument("-f", "--Fit", action=3D'store_true', help=3D'Buil= d UniversalPayload file as UniversalPayload.fit', default=3DFalse) parser.add_argument('-l', "--LoadAddress", type=3Dint, help=3D'Specify= payload load address', default =3D0x000800000) + parser.add_argument('-c', '--DscPath', type=3Dstr, required=3DTrue, he= lp=3D'Path to the DSC file') =20 args =3D parser.parse_args() =20 --=20 2.40.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119539): https://edk2.groups.io/g/devel/message/119539 Mute This Topic: https://groups.io/mt/106595353/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-