dtc.cc (242b24828472137ec4411826b86e753d49bd2c39) | dtc.cc (21d5d37ba4c0131d6c141695366e266e32cc3bc1) |
---|---|
1/*- 2 * Copyright (c) 2013 David Chisnall 3 * All rights reserved. 4 * 5 * This software was developed by SRI International and the University of 6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) 7 * ("CTSRD"), as part of the DARPA CRASH research programme. 8 * --- 40 unchanged lines hidden (view full) --- 49 50/** 51 * The current major version of the tool. 52 */ 53int version_major = 0; 54/** 55 * The current minor version of the tool. 56 */ | 1/*- 2 * Copyright (c) 2013 David Chisnall 3 * All rights reserved. 4 * 5 * This software was developed by SRI International and the University of 6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) 7 * ("CTSRD"), as part of the DARPA CRASH research programme. 8 * --- 40 unchanged lines hidden (view full) --- 49 50/** 51 * The current major version of the tool. 52 */ 53int version_major = 0; 54/** 55 * The current minor version of the tool. 56 */ |
57int version_minor = 4; | 57int version_minor = 5; |
58/** 59 * The current patch level of the tool. 60 */ 61int version_patch = 0; 62 63static void usage(const string &argv0) 64{ 65 fprintf(stderr, "Usage:\n" | 58/** 59 * The current patch level of the tool. 60 */ 61int version_patch = 0; 62 63static void usage(const string &argv0) 64{ 65 fprintf(stderr, "Usage:\n" |
66 "\t%s\t[-fhsv] [-b boot_cpu_id] [-d dependency_file]" | 66 "\t%s\t[-fhsv@] [-b boot_cpu_id] [-d dependency_file]" |
67 "[-E [no-]checker_name]\n" 68 "\t\t[-H phandle_format] [-I input_format]" 69 "[-O output_format]\n" 70 "\t\t[-o output_file] [-R entries] [-S bytes] [-p bytes]" 71 "[-V blob_version]\n" 72 "\t\t-W [no-]checker_name] input_file\n", basename(argv0).c_str()); 73} 74 --- 21 unchanged lines hidden (view full) --- 96 auto read_fn = &device_tree::parse_dts; 97 uint32_t boot_cpu; 98 bool boot_cpu_specified = false; 99 bool keep_going = false; 100 bool sort = false; 101 clock_t c0 = clock(); 102 class device_tree tree; 103 fdt::checking::check_manager checks; | 67 "[-E [no-]checker_name]\n" 68 "\t\t[-H phandle_format] [-I input_format]" 69 "[-O output_format]\n" 70 "\t\t[-o output_file] [-R entries] [-S bytes] [-p bytes]" 71 "[-V blob_version]\n" 72 "\t\t-W [no-]checker_name] input_file\n", basename(argv0).c_str()); 73} 74 --- 21 unchanged lines hidden (view full) --- 96 auto read_fn = &device_tree::parse_dts; 97 uint32_t boot_cpu; 98 bool boot_cpu_specified = false; 99 bool keep_going = false; 100 bool sort = false; 101 clock_t c0 = clock(); 102 class device_tree tree; 103 fdt::checking::check_manager checks; |
104 const char *options = "hqI:O:o:V:d:R:S:p:b:fi:svH:W:E:DP:"; | 104 const char *options = "@hqI:O:o:V:d:R:S:p:b:fi:svH:W:E:DP:"; |
105 106 // Don't forget to update the man page if any more options are added. 107 while ((ch = getopt(argc, argv, options)) != -1) 108 { 109 switch (ch) 110 { 111 case 'h': 112 usage(argv[0]); 113 return EXIT_SUCCESS; 114 case 'v': 115 version(argv[0]); 116 return EXIT_SUCCESS; | 105 106 // Don't forget to update the man page if any more options are added. 107 while ((ch = getopt(argc, argv, options)) != -1) 108 { 109 switch (ch) 110 { 111 case 'h': 112 usage(argv[0]); 113 return EXIT_SUCCESS; 114 case 'v': 115 version(argv[0]); 116 return EXIT_SUCCESS; |
117 case '@': 118 tree.write_symbols = true; 119 break; |
|
117 case 'I': 118 { 119 string arg(optarg); 120 if (arg == "dtb") 121 { 122 read_fn = &device_tree::parse_dtb; 123 } 124 else if (arg == "dts") --- 221 unchanged lines hidden --- | 120 case 'I': 121 { 122 string arg(optarg); 123 if (arg == "dtb") 124 { 125 read_fn = &device_tree::parse_dtb; 126 } 127 else if (arg == "dts") --- 221 unchanged lines hidden --- |