parser.add_argument("-m", "--max-size", dest = 'MaxSize', type = ValidateUnsignedInteger,\r
help = "Maximum size of the PCD. Ignored with --type HII.")\r
parser.add_argument("-f", "--offset", dest = 'Offset', type = ValidateUnsignedInteger,\r
parser.add_argument("-m", "--max-size", dest = 'MaxSize', type = ValidateUnsignedInteger,\r
help = "Maximum size of the PCD. Ignored with --type HII.")\r
parser.add_argument("-f", "--offset", dest = 'Offset', type = ValidateUnsignedInteger,\r
parser.add_argument("-n", "--variable-name", dest = 'VariableName',\r
help = "UEFI variable name. Only used with --type HII.")\r
parser.add_argument("-g", "--variable-guid", type = ValidateGuidName, dest = 'VariableGuid',\r
parser.add_argument("-n", "--variable-name", dest = 'VariableName',\r
help = "UEFI variable name. Only used with --type HII.")\r
parser.add_argument("-g", "--variable-guid", type = ValidateGuidName, dest = 'VariableGuid',\r
# Use the --offset value provided.\r
#\r
Pcd = ' %s|%d|%d|%s' % (args.PcdName, args.Offset, args.MaxSize, PcdValue)\r
# Use the --offset value provided.\r
#\r
Pcd = ' %s|%d|%d|%s' % (args.PcdName, args.Offset, args.MaxSize, PcdValue)\r
Pcd = ' %s|L"%s"|%s|%d|%s' % (args.PcdName, args.VariableName, args.VariableGuid, args.Offset, PcdValue)\r
if args.Verbose:\r
print 'BinToPcd: Convert binary file to PCD statement compatible with PCD sections'\r
Pcd = ' %s|L"%s"|%s|%d|%s' % (args.PcdName, args.VariableName, args.VariableGuid, args.Offset, PcdValue)\r
if args.Verbose:\r
print 'BinToPcd: Convert binary file to PCD statement compatible with PCD sections'\r