MCPcopy Create free account
hub / github.com/coreboot/coreboot / usage

Function usage

util/cbfstool/amdcompress.c:40–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40static void usage(void)
41{
42 printf("<name>: Extract or create a zlib compressed BIOS binary\n");
43 printf(" image. A compressed image contains a 256 byte\n");
44 printf(" header with a 32-bit size at 0x14.\n");
45 printf("Usage: <name> -i in_file -o out_file -[c|u]\n");
46 printf("-i | --infile <FILE> Input file\n");
47 printf("-o | --outfile <FILE> Output file\n");
48 printf("-c | --compress Compress\n");
49 printf("-p | --elfcopy Copy\n");
50 printf("-m | --maxsize <HEX_VAL> Maximum uncompressed size (optional)\n");
51 printf(" * On compress: verify uncompressed size\n");
52 printf(" will be less than or equal maxsize\n");
53 printf(" * On uncompress: override default buffer size\n");
54 printf(" allocation of 0x%x bytes\n", UNCOMP_MAX);
55 printf("-u | --uncompress Uncompress\n");
56 printf("-h | --help Display this message\n");
57
58 exit(1);
59}
60
61static int do_file(char *name, size_t *size, int oflag)
62{

Callers 1

mainFunction · 0.70

Calls 2

printfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected