From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.2325.1686118493784801894 for ; Tue, 06 Jun 2023 23:14:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=OzKhWn/F; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: gua.guo@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686118493; x=1717654493; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=BqpyxQeh8NqQpHlb3Stz7oqkyVGxUsITxzDf+BB80SI=; b=OzKhWn/Filc5nEV5KaIjhTbM7NZhqZKl/Mjrwcn9Yko9NkCLVsR9jChk CIlS6QpBU2AaJcJT+bvDpD7yEFBh4A3ATGnU8QcjsXJu2m+uHuY8JJgcs QhGUlXGndo97o/gdluS1VikiRphyi/T/51jBTd+XJuReF4ou3QNRSCea5 1nDeab/8SlO8r99oE5kxZOdQp9a+NYPHdmpL+v6b//Um9C5EAvZ/I5Uyy 5+sMNC9jhNTzQLoMySXZn7FZ2U9ijwUjVbIftjuyQ12+cdoxXH2FwUZm8 yoVyoPQhhmDJ8z3WkosO57rcfpAFqgNNjPE8kPpyS57tmvlPngtVW7AXE g==; X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="420448683" X-IronPort-AV: E=Sophos;i="6.00,223,1681196400"; d="scan'208";a="420448683" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 23:14:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="742464135" X-IronPort-AV: E=Sophos;i="6.00,223,1681196400"; d="scan'208";a="742464135" Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by orsmga001.jf.intel.com with ESMTP; 06 Jun 2023 23:14:49 -0700 From: "Guo, Gua" To: devel@edk2.groups.io Cc: gua.guo@intel.com, Guo Dong , Ray Ni , Sean Rhodes , James Lu Subject: [PATCH v1] UefiPayloadPkg: Enhance build script for BuildEntryOnly Date: Wed, 7 Jun 2023 14:14:45 +0800 Message-Id: <20230607061445.9-1-gua.guo@intel.com> X-Mailer: git-send-email 2.39.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Gua Guo Currently, have two command for pre-build binary support 1. --BuildEntryOnly: build UPL Entry file 2. --PreBuildUplBinary: build UPL binary based on UPL And these two commands should be exclusived, shouldn't have chance run it in the meantime. Case1: Build UPL entry with CLANGDWARF python UefiPayloadPkg/UniversalPayloadBuild.py --BuildEntryOnly Case2: Use pre-built UPL entry and build other fv by VS2019 python UefiPayloadPkg/UniversalPayloadBuild.py -t VS2019 \ --PreBuildUplBinary UniversalPayload.elf Case3: Build UPL Entry with CLANGDWARF and build other fv by VS2019 python UefiPayloadPkg/UniversalPayloadBuild.py -t VS2019 Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: Gua Guo --- UefiPayloadPkg/UniversalPayloadBuild.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/Unive= rsalPayloadBuild.py index 416946a431..ecc25dad83 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -187,10 +187,11 @@ def main(): parser.add_argument("-s", "--SpecRevision", type=3DValidateSpecRevisio= n, default =3D'0.7', help=3D'Indicates compliance with a revision of this s= pecification in the BCD format.')=0D parser.add_argument("-r", "--Revision", type=3DValidate32BitInteger, d= efault =3D'0x0000010105', help=3D'Revision of the Payload binary. Major.Min= or.Revision.Build')=0D parser.add_argument("-o", "--ProducerId", default =3D'INTEL', help=3D'= A null-terminated OEM-supplied string that identifies the payload producer = (16 bytes maximal).')=0D - parser.add_argument("-e", "--BuildEntryOnly", action=3D'store_true', h= elp=3D'Build UniversalPayload Entry file')=0D - parser.add_argument("-pb", "--PreBuildUplBinary", default=3DNone, help= =3D'Specify the UniversalPayload file')=0D parser.add_argument("-sk", "--SkipBuild", action=3D'store_true', help= =3D'Skip UniversalPayload build')=0D 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 + command_group =3D parser.add_mutually_exclusive_group()=0D + command_group.add_argument("-e", "--BuildEntryOnly", action=3D'store_t= rue', help=3D'Build UniversalPayload Entry file')=0D + command_group.add_argument("-pb", "--PreBuildUplBinary", default=3DNon= e, help=3D'Specify the UniversalPayload file')=0D args =3D parser.parse_args()=0D =0D MultiFvList =3D []=0D --=20 2.39.2.windows.1