Changeset 533e2d7 in mainline for tools/autotool.py
- Timestamp:
- 2013-06-03T07:55:35Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 797d4d19
- Parents:
- ea15a89a (diff), 6db5d4b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
rea15a89a r533e2d7 182 182 "Please contact the developers of HelenOS."]) 183 183 184 def get_target(config , needs_clang = False):184 def get_target(config): 185 185 target = None 186 186 gnu_target = None … … 194 194 if (config['CROSS_TARGET'] == "arm32"): 195 195 gnu_target = "arm-linux-gnueabi" 196 clang_target = "arm-unknown-linux" 196 197 197 198 if (config['CROSS_TARGET'] == "ia32"): 198 199 gnu_target = "i686-pc-linux-gnu" 200 clang_target = "i386-unknown-linux" 199 201 200 202 if (config['CROSS_TARGET'] == "mips32"): 201 203 gnu_target = "mipsel-linux-gnu" 204 clang_target = "mipsel-unknown-linux" 202 205 common['CC_ARGS'].append("-mabi=32") 203 206 … … 205 208 target = config['PLATFORM'] 206 209 gnu_target = "amd64-linux-gnu" 207 clang_target = "x86_64-u known-linux"210 clang_target = "x86_64-unknown-linux" 208 211 209 212 if (config['PLATFORM'] == "arm32"): 210 213 target = config['PLATFORM'] 211 214 gnu_target = "arm-linux-gnueabi" 215 clang_target = "arm-unknown-linux" 212 216 213 217 if (config['PLATFORM'] == "ia32"): 214 218 target = config['PLATFORM'] 215 219 gnu_target = "i686-pc-linux-gnu" 216 clang_target = "i386-u known-linux"220 clang_target = "i386-unknown-linux" 217 221 218 222 if (config['PLATFORM'] == "ia64"): … … 227 231 target = config['PLATFORM'] 228 232 gnu_target = "mipsel-linux-gnu" 233 clang_target = "mipsel-unknown-linux" 229 234 230 235 if ((config['MACHINE'] == "bmalta")): 231 236 target = "mips32eb" 232 237 gnu_target = "mips-linux-gnu" 238 clang_target = "mips-unknown-linux" 233 239 234 240 if (config['PLATFORM'] == "mips64"): … … 239 245 target = config['PLATFORM'] 240 246 gnu_target = "mips64el-linux-gnu" 247 clang_target = "mips64el-unknown-linux" 241 248 242 249 if (config['PLATFORM'] == "ppc32"): 243 250 target = config['PLATFORM'] 244 251 gnu_target = "ppc-linux-gnu" 252 clang_target = "powerpc-unknown-linux" 245 253 246 254 if (config['PLATFORM'] == "sparc64"): 247 255 target = config['PLATFORM'] 248 256 gnu_target = "sparc64-linux-gnu" 249 250 if (target is None) or (gnu_target is None) or (clang_target is None and needs_clang): 251 print_error(["Failed to determine target for compiler.", 252 "Please contact the developers of HelenOS."]) 257 clang_target = "sparc-unknown-linux" 253 258 254 259 return (target, cc_args, gnu_target, clang_target) … … 714 719 common['CC_ARGS'] = [] 715 720 if (config['COMPILER'] == "gcc_cross"): 716 target, cc_args, gnu_target, clang_target_unused = get_target(config) 721 target, cc_args, gnu_target, clang_target = get_target(config) 722 723 if (target is None) or (gnu_target is None): 724 print_error(["Unsupported compiler target for GNU GCC.", 725 "Please contact the developers of HelenOS."]) 726 717 727 path = "%s/%s/bin" % (cross_prefix, target) 718 728 prefix = "%s-" % gnu_target … … 739 749 740 750 if (config['COMPILER'] == "clang"): 741 target, cc_args, gnu_target, clang_target = get_target(config, True) 751 target, cc_args, gnu_target, clang_target = get_target(config) 752 753 if (target is None) or (gnu_target is None) or (clang_target is None): 754 print_error(["Unsupported compiler target for clang.", 755 "Please contact the developers of HelenOS."]) 756 742 757 path = "%s/%s/bin" % (cross_prefix, target) 743 758 prefix = "%s-" % gnu_target 744 759 760 check_app(["clang", "--version"], "clang compiler", "preferably version 1.0 or newer") 761 check_gcc(path, prefix, common, PACKAGE_GCC) 762 check_binutils(path, prefix, common, PACKAGE_BINUTILS) 763 764 check_common(common, "GCC") 745 765 common['CC'] = "clang" 746 766 common['CC_ARGS'].extend(cc_args) 747 767 common['CC_ARGS'].append("-target") 748 768 common['CC_ARGS'].append(clang_target) 749 check_app([common['CC'], "--version"], "Clang compiler", "preferably version 1.0 or newer") 750 check_gcc(path, prefix, common, PACKAGE_GCC) 751 check_binutils(path, prefix, common, PACKAGE_BINUTILS) 769 common['CLANG_TARGET'] = clang_target 752 770 753 771 # Platform-specific utilities
Note:
See TracChangeset
for help on using the changeset viewer.