diff options
author | Guo Dong <guo.dong@intel.com> | 2022-04-13 13:42:09 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-04-14 19:34:05 +0000 |
commit | 4cfb28f12a8d24cab32d3223275a772227062a39 (patch) | |
tree | 2b4ce3e68da169a8852394e6d1e9af37ee1988d3 /UefiPayloadPkg/UniversalPayloadBuild.py | |
parent | f3da13461cbed699e54b1d7ef3fba5144cc3b3b4 (diff) | |
download | edk2-4cfb28f12a8d24cab32d3223275a772227062a39.tar.gz edk2-4cfb28f12a8d24cab32d3223275a772227062a39.tar.bz2 edk2-4cfb28f12a8d24cab32d3223275a772227062a39.zip |
UefiPayloadPkg: Fix the build failure
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 <ray.ni@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Guo Dong <guo.dong@intel.com>
Acked-by: Dun Tan <dun.tan@intel.com>
Diffstat (limited to 'UefiPayloadPkg/UniversalPayloadBuild.py')
-rw-r--r-- | UefiPayloadPkg/UniversalPayloadBuild.py | 4 |
1 files 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:
|