UefiPayloadPkg: UniversalPayloadBuild.py -l add support for various bases

Hexadecimal is more convenient when using this script, so add various
number bases support

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
This commit is contained in:
Xiang W 2026-01-26 11:51:29 +08:00 committed by mergify[bot]
parent 3d8fb11bc2
commit b7d0b8331f

View file

@ -337,7 +337,7 @@ def InitArgumentParser(LoadDefault):
parser.add_argument("-sk", "--SkipBuild", action='store_true', help='Skip UniversalPayload build')
parser.add_argument("-af", "--AddFv", type=ValidateAddFv, action='append', help='Add or replace specific FV into payload, Ex: uefi_fv=XXX.fv')
parser.add_argument("-f", "--Fit", action='store_true', help='Build UniversalPayload file as UniversalPayload.fit', default=False)
parser.add_argument('-l', "--LoadAddress", type=int, help='Specify payload load address', default =0x000800000)
parser.add_argument('-l', "--LoadAddress", type=lambda x: int(x, 0), help='Specify payload load address', default =0x000800000)
parser.add_argument('-c', '--DscPath', type=str, default="UefiPayloadPkg/UefiPayloadPkg.dsc", help='Path to the DSC file')
parser.add_argument('-ac', '--add_cc_flags', action='append', help='Add specified CC compile flags')
parser.add_argument('-ci','--CiBuild', action='store_true', help='Call from edk2 CI Build Process or not', default=False)