| 903 | } |
| 904 | |
| 905 | static void usage(const char *name) |
| 906 | { |
| 907 | printf("%s: Utility for stitching CSE components\n" |
| 908 | "USAGE:\n" |
| 909 | " %s FILE COMMAND\n\n" |
| 910 | "COMMANDs:\n" |
| 911 | " print [-s][-n NAME][-t TYPE]\n" |
| 912 | " dump [-o DIR][-n NAME]\n" |
| 913 | " create-layout --dp <offset:size> --bp* <offset:size> -v VERSION\n" |
| 914 | " create-cse-region --dp <offset:size> --dp_file <FILE> --bp* <offset:size>" |
| 915 | " --bp*_file <FILE> -v VERSION\n" |
| 916 | " print-layout -v VERSION\n" |
| 917 | " create-bpdt -v VERSION\n" |
| 918 | " add [-n NAME][-t TYPE][-f INPUT_FILE]\n" |
| 919 | "\nOPTIONS:\n" |
| 920 | " -f INPUT_FILE : Input file\n" |
| 921 | " -n NAME : Sub-partition name\n" |
| 922 | " -o DIR : Output directory\n" |
| 923 | " -s : Print sub-partition info\n" |
| 924 | " -t TYPE : Sub-partition type\n" |
| 925 | " -v VERSION : BPDT version\n" |
| 926 | " --dp <offset:size> : Offset and size of data partition\n" |
| 927 | " --dp_file <FILE> : File for data partition\n" |
| 928 | " --bp1 <offset:size> : Offset and size of BP1\n" |
| 929 | " --bp1_file <FILE> : File for BP1 partition\n" |
| 930 | " --bp2 <offset:size> : Offset and size of BP2\n" |
| 931 | " --bp2_file <FILE> : File for BP2 partition\n" |
| 932 | " --bp3 <offset:size> : Offset and size of BP3\n" |
| 933 | " --bp3_file <FILE> : File for BP3 partition\n" |
| 934 | " --bp4 <offset:size> : Offset and size of BP4\n" |
| 935 | " --bp4_file <FILE> : File for BP4 partition\n" |
| 936 | "\n", |
| 937 | name, name); |
| 938 | } |
| 939 | |
| 940 | int main(int argc, char **argv) |
| 941 | { |