Acked-by: Dun Tan <[email protected]> -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Guo Dong Sent: Thursday, April 14, 2022 4:49 AM To: [email protected] Cc: Dong, Guo <[email protected]>; Ni, Ray <[email protected]>; You, Benjamin <[email protected]>; Rhodes, Sean <[email protected]> Subject: [edk2-devel][PATCH] UefiPayloadPkg: Fix the build failure
From: Guo Dong <[email protected]> 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 <[email protected]> Cc: Benjamin You <[email protected]> Cc: Sean Rhodes <[email protected]> Signed-off-by: Guo Dong <[email protected]> --- UefiPayloadPkg/UniversalPayloadBuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/UniversalPayloadBuild.py index 2796c310a7..99410d244d 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -53,7 +53,7 @@ def RunCommand(cmd): def BuildUniversalPayload(Args, MacroList): BuildTarget = Args.Target ToolChain = Args.ToolChain- Quiet = Args.Quiet+ Quiet = "--quiet" if Args.Quiet else "" BuildArch = "X64" if Args.Arch == 'X64' else "IA32 -a X64" ElfToolChain = 'CLANGDWARF' @@ -121,7 +121,7 @@ def main(): parser.add_argument('-a', '--Arch', choices=['IA32', 'X64'], help='Specify the ARCH for payload entry module. Default build X64 image.', default ='X64') parser.add_argument("-D", "--Macro", action="append", default=["UNIVERSAL_PAYLOAD=TRUE"]) parser.add_argument('-i', '--ImageId', type=str, help='Specify payload ID (16 bytes maximal).', default ='UEFI')- parser.add_argument('-q', '--Quiet')+ parser.add_argument('-q', '--Quiet', action='store_true', help='Disable all build messages except FATAL ERRORS.') MacroList = {} args = parser.parse_args() if args.Macro is not None:-- 2.35.1.windows.2 -=-=-=-=-=-= Groups.io Links: You receive all messages sent to this group. View/Reply Online (#88883): https://edk2.groups.io/g/devel/message/88883 Mute This Topic: https://groups.io/mt/90450653/6168883 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-= -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#88894): https://edk2.groups.io/g/devel/message/88894 Mute This Topic: https://groups.io/mt/90450653/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
