From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web08.3928.1649882948508304263 for ; Wed, 13 Apr 2022 13:49:08 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=CWPHydJJ; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: guo.dong@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649882948; x=1681418948; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DY0IBpZfr4nv1lwPrLyrhOTUxxqV2TJvBHMtJ2vuLuk=; b=CWPHydJJCJwjplavsgHnZUnn4ai4aOSb7+TE4uj69hfvXf+mMBlrY8Iu p1M8zxG0zGQHvVceqGp4ZGG2uY7I5dNYMq5KSRGSBtFALy6pPlt9ho5yD OeBGEeT73qwZx2vVAtPIodvI8bmFAGidh7qTGC6nkbxtyaDfdScKhMJum 5iuonZmujGII2uJSfADgf4ImBQZ8PvccFZBayB6p0moX+wc0B8eXMryz5 xDTb6t70l+xnb6Xpe3N4nBV9nov/8fV7GzZtIWJDrvUsagw6CJnv+tq9m yY0wgEElwHwpinF8Rk3u3Yv0IcrCW1U5oFjBIZyjAeevEie/Bm9IeCA2u g==; X-IronPort-AV: E=McAfee;i="6400,9594,10316"; a="260364903" X-IronPort-AV: E=Sophos;i="5.90,257,1643702400"; d="scan'208";a="260364903" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 13:49:08 -0700 X-IronPort-AV: E=Sophos;i="5.90,257,1643702400"; d="scan'208";a="645313667" Received: from gdong1-mobl1.amr.corp.intel.com ([10.209.142.57]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 13:49:07 -0700 From: "Guo Dong" To: devel@edk2.groups.io Cc: Guo Dong , Ray Ni , Benjamin You , Sean Rhodes Subject: [edk2-devel][PATCH] UefiPayloadPkg: Fix the build failure Date: Wed, 13 Apr 2022 13:48:55 -0700 Message-Id: <20220413204855.1319-1-guo.dong@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Guo Dong When Quite parameter is not provided, its default value would be "None" instead of "". So update its default value not to impact the build. Cc: Ray Ni Cc: Benjamin You Cc: Sean Rhodes Signed-off-by: Guo Dong --- UefiPayloadPkg/UniversalPayloadBuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/Unive= rsalPayloadBuild.py index 2796c310a7..99410d244d 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -53,7 +53,7 @@ def RunCommand(cmd): def BuildUniversalPayload(Args, MacroList):=0D BuildTarget =3D Args.Target=0D ToolChain =3D Args.ToolChain=0D - Quiet =3D Args.Quiet=0D + Quiet =3D "--quiet" if Args.Quiet else ""=0D BuildArch =3D "X64" if Args.Arch =3D=3D 'X64' else "IA32 -a X64"=0D ElfToolChain =3D 'CLANGDWARF'=0D =0D @@ -121,7 +121,7 @@ def main(): parser.add_argument('-a', '--Arch', choices=3D['IA32', 'X64'], help=3D= 'Specify the ARCH for payload entry module. Default build X64 image.', defa= ult =3D'X64')=0D parser.add_argument("-D", "--Macro", action=3D"append", default=3D["UN= IVERSAL_PAYLOAD=3DTRUE"])=0D parser.add_argument('-i', '--ImageId', type=3Dstr, help=3D'Specify pay= load ID (16 bytes maximal).', default =3D'UEFI')=0D - parser.add_argument('-q', '--Quiet')=0D + parser.add_argument('-q', '--Quiet', action=3D'store_true', help=3D'Di= sable all build messages except FATAL ERRORS.')=0D MacroList =3D {}=0D args =3D parser.parse_args()=0D if args.Macro is not None:=0D --=20 2.35.1.windows.2