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 C502A941478 for ; Mon, 10 Jun 2024 15:45:11 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qTvuEDJZgYeBmLopLizqyPmWHwJw4kj40zySzc9vzGM=; 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:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1718034311; v=1; b=4ZoY7k0+ULUUkF6WhwIll8u804w+gb4UwobThLvGodMRO71OCNmAFLEUbOpscawQg9MNN73+ 2Bo6SiUJckUVwTulSXDffspwYr/aVK6dfkBWuCflqwmFn1RTJhHVZJwzdafAe1Imix/0cZPT77F SjwAyp9gzAFxRk45jQMGcPEYVPVXNcxtdhAxY6z0T/OEnL+4GS/aHE9s3JbfhXkx2fMxMocXUN5 FfUYwIRsXExZRLSqBh7J2oaOIVT2dMsP39QXdcGzPpylaUhUPNGbkaC78UiFwaFSUmkaZFT+QCZ Vtk7yUdGphDy5o9hyykqFbGCySrxdhRYufijbh+mxlQOg== X-Received: by 127.0.0.2 with SMTP id 1idsYY7687511xmpDjFbVbYU; Mon, 10 Jun 2024 08:45:10 -0700 X-Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mx.groups.io with SMTP id smtpd.web10.23042.1718034300716908401 for ; Mon, 10 Jun 2024 08:45:00 -0700 X-Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-6819b3c92bbso29375a12.2 for ; Mon, 10 Jun 2024 08:45:00 -0700 (PDT) X-Gm-Message-State: eriw54vkzUKwh4dN7gGPTKeax7686176AA= X-Google-Smtp-Source: AGHT+IHOwkqrHDFz8IOPA4aeas4OWl8/7CC30LbNrzr7XglgfgP6eXpNs7fK6pEFdR4Cp3SUTAo48A== X-Received: by 2002:a17:902:d484:b0:1f6:ed74:b4e3 with SMTP id d9443c01a7336-1f6ed74b67bmr97101745ad.3.1718034299255; Mon, 10 Jun 2024 08:44:59 -0700 (PDT) X-Received: from dhaval.. ([2401:4900:1cc4:8268:9035:c7a0:a8aa:984c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6f2cd14e0sm45454265ad.226.2024.06.10.08.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 08:44:58 -0700 (PDT) From: "Dhaval Sharma" To: devel@edk2.groups.io Cc: Gua Guo , Guo Dong , James Lu , Sean Rhodes Subject: [edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Enable UPL FIT build config from cmdline Date: Mon, 10 Jun 2024 21:14:54 +0530 Message-Id: <20240610154454.271172-1-dhaval@rivosinc.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: Mon, 10 Jun 2024 08:45:00 -0700 Resent-From: dhaval@rivosinc.com Reply-To: devel@edk2.groups.io,dhaval@rivosinc.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: 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=4ZoY7k0+; dmarc=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 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)=0D =0D def BuildUniversalPayload(Args):=0D + DscPath =3D os.path.normpath(Args.DscPath)=0D BuildTarget =3D Args.Target=0D ToolChain =3D Args.ToolChain=0D Quiet =3D "--quiet" if Args.Quiet else ""=0D @@ -140,7 +141,6 @@ def BuildUniversalPayload(Args): =0D EntryOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTarget,= PayloadEntryToolChain), os.path.normpath("{}/UefiPayloadPkg/UefiPayloadEnt= ry/{}/DEBUG/{}.dll".format (Args.Arch, UpldEntryFile, UpldEntryFile)))=0D EntryModuleInf =3D os.path.normpath("UefiPayloadPkg/UefiPayloadEntry/{= }.inf".format (UpldEntryFile))=0D - DscPath =3D os.path.normpath("UefiPayloadPkg/UefiPayloadPkg.dsc")=0D DxeFvOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTarget,= ToolChain), os.path.normpath("FV/DXEFV.Fv"))=0D BdsFvOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTarget,= ToolChain), os.path.normpath("FV/BDSFV.Fv"))=0D NetworkFvOutputDir =3D os.path.join(BuildDir, "{}_{}".format (BuildTar= get, ToolChain), os.path.normpath("FV/NETWORKFV.Fv"))=0D @@ -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')=0D parser.add_argument("-f", "--Fit", action=3D'store_true', help=3D'Buil= d UniversalPayload file as UniversalPayload.fit', default=3DFalse)=0D parser.add_argument('-l', "--LoadAddress", type=3Dint, help=3D'Specify= payload load address', default =3D0x000800000)=0D + parser.add_argument('-c', '--DscPath', type=3Dstr, required=3DTrue, he= lp=3D'Path to the DSC file')=0D =0D args =3D parser.parse_args()=0D =0D --=20 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119538): https://edk2.groups.io/g/devel/message/119538 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] -=-=-=-=-=-=-=-=-=-=-=-