Changeset 31bf375 in rtems-tools
- Timestamp:
- Sep 5, 2014, 8:18:11 AM (6 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- b233be7
- Parents:
- 7ccb670
- Location:
- linkers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
linkers/rtems-ld.cpp
r7ccb670 r31bf375 43 43 #include <rld-process.h> 44 44 #include <rld-resolver.h> 45 #include <rld-rtems.h> 45 46 46 47 #ifndef HAVE_KILL … … 74 75 { "runtime-lib", required_argument, NULL, 'P' }, 75 76 { "one-file", no_argument, NULL, 's' }, 77 { "rtems", required_argument, NULL, 'r' }, 78 { "rtems-bsp", required_argument, NULL, 'B' }, 76 79 { NULL, 0, NULL, 0 } 77 80 }; … … 118 121 << " -s : Include archive elf object files (also --one-file)" << std::endl 119 122 << " -Wl,opts : link compatible flags, ignored" << std::endl 123 << " -r path : RTEMS path (also --rtems)" << std::endl 124 << " -B bsp : RTEMS arch/bsp (also --rtems-bsp)" << std::endl 120 125 << "Output Formats:" << std::endl 121 126 << " rap - RTEMS application (LZ77, single image)" << std::endl … … 193 198 bool warnings = false; 194 199 bool one_file = false; 200 bool arch_bsp_load = false; 195 201 196 202 libpaths.push_back ("."); … … 198 204 while (true) 199 205 { 200 int opt = ::getopt_long (argc, argv, "hvwVMnsSb:E:o:O:L:l:c:e:d:u:C:W:R:P: ", rld_opts, NULL);206 int opt = ::getopt_long (argc, argv, "hvwVMnsSb:E:o:O:L:l:c:e:d:u:C:W:R:P:r:B:", rld_opts, NULL); 201 207 if (opt < 0) 202 208 break; … … 306 312 break; 307 313 314 case 'r': 315 rld::rtems::path = optarg; 316 break; 317 318 case 'B': 319 rld::rtems::arch_bsp = optarg; 320 arch_bsp_load = true; 321 break; 322 308 323 case '?': 309 324 usage (3); … … 336 351 (output_type != "archive")) 337 352 throw rld::error ("invalid output format", "options"); 353 354 /* 355 * Load the arch/bsp value if provided. 356 */ 357 if (arch_bsp_load) 358 rld::rtems::load_cc (); 338 359 339 360 /* -
linkers/rtems-tld.cpp
r7ccb670 r31bf375 46 46 #include <rld-config.h> 47 47 #include <rld-process.h> 48 #include <rld-rtems.h> 48 49 49 50 #ifndef HAVE_KILL … … 738 739 { "keep", no_argument, NULL, 'k' }, 739 740 { "exec-prefix", required_argument, NULL, 'E' }, 740 { "march", required_argument, NULL, 'a' }, 741 { "mcpu", required_argument, NULL, 'c' }, 741 { "cflags", required_argument, NULL, 'c' }, 742 { "rtems", required_argument, NULL, 'r' }, 743 { "rtems-bsp", required_argument, NULL, 'B' }, 742 744 { "config", required_argument, NULL, 'C' }, 743 745 { NULL, 0, NULL, 0 } … … 757 759 << " -E prefix : the RTEMS tool prefix (also --exec-prefix)" << std::endl 758 760 << " -c cflags : C compiler flags (also --cflags)" << std::endl 761 << " -r path : RTEMS path (also --rtems)" << std::endl 762 << " -B bsp : RTEMS arch/bsp (also --rtems-bsp)" << std::endl 759 763 << " -C ini : user configuration INI file (also --config)" << std::endl; 760 764 ::exit (exit_code); … … 809 813 std::string trace = "tracer"; 810 814 bool exec_prefix_set = false; 811 #if HAVE_WARNINGS 812 bool warnings = false; 813 #endif 815 bool arch_bsp_load = false; 814 816 815 817 while (true) 816 818 { 817 int opt = ::getopt_long (argc, argv, "hvwkVE:c:C: ", rld_opts, NULL);819 int opt = ::getopt_long (argc, argv, "hvwkVE:c:C:r:B:", rld_opts, NULL); 818 820 if (opt < 0) 819 821 break; … … 850 852 break; 851 853 854 case 'r': 855 rld::rtems::path = optarg; 856 break; 857 858 case 'B': 859 rld::rtems::arch_bsp = optarg; 860 arch_bsp_load = true; 861 break; 862 852 863 case 'C': 853 864 configuration = optarg; … … 869 880 if (rld::verbose ()) 870 881 std::cout << "RTEMS Trace Linker " << rld::version () << std::endl; 882 883 /* 884 * Load the arch/bsp value if provided. 885 */ 886 if (arch_bsp_load) 887 rld::rtems::load_cc (); 871 888 872 889 /* -
linkers/wscript
r7ccb670 r31bf375 95 95 # 96 96 rld_source = ['ConvertUTF.c', 97 'pkgconfig.cpp', 97 98 'rld-config.cpp', 98 99 'rld-elf.cpp', … … 104 105 'rld-process.cpp', 105 106 'rld-resolver.cpp', 107 'rld-rtems.cpp', 106 108 'rld-symbols.cpp', 107 109 'rld-rap.cpp', … … 133 135 # 134 136 bld.program(target = 'rtems-ld', 135 source = ['rtems-ld.cpp' , 'pkgconfig.cpp'],137 source = ['rtems-ld.cpp'], 136 138 defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], 137 139 includes = ['.'] + bld.includes, … … 145 147 # 146 148 bld.program(target = 'rtems-ra', 147 source = ['rtems-ra.cpp' , 'pkgconfig.cpp'],149 source = ['rtems-ra.cpp'], 148 150 defines = ['HAVE_CONFIG_H=1', 'RTEMS_VERSION=' + bld.env.RTEMS_VERSION], 149 151 includes = ['.'] + bld.includes,
Note: See TracChangeset
for help on using the changeset viewer.