Changeset b2aaaa0 in mainline
- Timestamp:
- 2018-09-13T10:10:46Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 09ab0a9a
- Parents:
- 83932dc9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r83932dc9 rb2aaaa0 179 179 platform = None 180 180 target = None 181 cc_args = []182 181 183 182 if (config['PLATFORM'] == "abs32le"): … … 192 191 193 192 if (config['CROSS_TARGET'] == "mips32"): 194 cc_args.append("-mabi=32")195 193 target = "mipsel-helenos" 196 194 … … 213 211 if (config['PLATFORM'] == "mips32"): 214 212 check_config(config, "MACHINE") 215 cc_args.append("-mabi=32")216 213 217 214 if ((config['MACHINE'] == "msim") or (config['MACHINE'] == "lmalta")): … … 225 222 if (config['PLATFORM'] == "mips64"): 226 223 check_config(config, "MACHINE") 227 cc_args.append("-mabi=64")228 224 229 225 if (config['MACHINE'] == "msim"): … … 243 239 target = "sparc64-helenos" 244 240 245 return (platform, cc_args,target)241 return (platform, target) 246 242 247 243 def check_app(args, name, details): … … 359 355 return int(value, base) 360 356 361 def probe_compiler(c ommon, typesizes):357 def probe_compiler(cc, common, typesizes): 362 358 "Generate, compile and parse probing source" 363 359 … … 377 373 outf.close() 378 374 379 args = c ommon['CC_AUTOGEN'].split(' ')375 args = cc.split(' ') 380 376 args.extend(["-S", "-o", PROBE_OUTPUT, PROBE_SOURCE]) 381 377 … … 564 560 check_app(["tar", "--version"], "tar utility", "usually part of tar") 565 561 566 platform, cc_args,target = get_target(config)562 platform, target = get_target(config) 567 563 568 564 if (platform is None) or (target is None): … … 577 573 common['TARGET'] = target 578 574 prefix = "%s-" % target 575 576 cc_autogen = None 579 577 580 578 # Compiler … … 584 582 585 583 check_common(common, "GCC") 586 common['CC'] = " ".join([common['GCC']] + cc_args)587 c ommon['CC_AUTOGEN']= common['CC']584 common['CC'] = common['GCC'] 585 cc_autogen = common['CC'] 588 586 589 587 check_common(common, "GXX") … … 595 593 596 594 check_common(common, "CLANG") 597 common['CC'] = " ".join([common['CLANG']] + cc_args)598 c ommon['CC_AUTOGEN']= common['CC'] + " -no-integrated-as"595 common['CC'] = common['CLANG'] 596 cc_autogen = common['CC'] + " -no-integrated-as" 599 597 600 598 if (config['INTEGRATED_AS'] == "yes"): … … 610 608 common['GENISOIMAGE'] += ' -as genisoimage' 611 609 612 probe = probe_compiler(c ommon,610 probe = probe_compiler(cc_autogen, common, 613 611 [ 614 612 {'type': 'long long int', 'tag': 'LONG_LONG', 'sname': 'LLONG' }, -
uspace/lib/posix/Makefile
r83932dc9 rb2aaaa0 102 102 echo '# Generated file, do not modify.' >> $@.new 103 103 echo '# Do not forget to set HELENOS_EXPORT_ROOT.' >> $@.new 104 echo 'HELENOS_CROSS_PATH="$(shell dirname `which "$(CC)"`)"' >> $@.new104 echo 'HELENOS_CROSS_PATH="$(shell dirname `which $(CC)`)"' >> $@.new 105 105 echo 'HELENOS_ARCH="$(firstword $(subst -, ,$(TARGET)))"' >> $@.new 106 106 echo 'HELENOS_TARGET="$(TARGET)"' >> $@.new
Note:
See TracChangeset
for help on using the changeset viewer.