Changes in tools/autotool.py [6db5d4b:0dd022ec] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r6db5d4b r0dd022ec 186 186 gnu_target = None 187 187 clang_target = None 188 helenos_target = None 188 189 cc_args = [] 189 190 … … 195 196 gnu_target = "arm-linux-gnueabi" 196 197 clang_target = "arm-unknown-linux" 198 helenos_target = "arm-helenos-gnueabi" 197 199 198 200 if (config['CROSS_TARGET'] == "ia32"): 199 201 gnu_target = "i686-pc-linux-gnu" 200 202 clang_target = "i386-unknown-linux" 203 helenos_target = "i686-pc-helenos" 201 204 202 205 if (config['CROSS_TARGET'] == "mips32"): 203 206 gnu_target = "mipsel-linux-gnu" 204 207 clang_target = "mipsel-unknown-linux" 208 helenos_target = "mipsel-helenos" 205 209 common['CC_ARGS'].append("-mabi=32") 206 210 … … 209 213 gnu_target = "amd64-linux-gnu" 210 214 clang_target = "x86_64-unknown-linux" 215 helenos_target = "amd64-helenos" 211 216 212 217 if (config['PLATFORM'] == "arm32"): … … 214 219 gnu_target = "arm-linux-gnueabi" 215 220 clang_target = "arm-unknown-linux" 221 helenos_target = "arm-helenos-gnueabi" 216 222 217 223 if (config['PLATFORM'] == "ia32"): … … 219 225 gnu_target = "i686-pc-linux-gnu" 220 226 clang_target = "i386-unknown-linux" 227 helenos_target = "i686-pc-helenos" 221 228 222 229 if (config['PLATFORM'] == "ia64"): 223 230 target = config['PLATFORM'] 224 231 gnu_target = "ia64-pc-linux-gnu" 232 helenos_target = "ia64-pc-helenos" 225 233 226 234 if (config['PLATFORM'] == "mips32"): … … 232 240 gnu_target = "mipsel-linux-gnu" 233 241 clang_target = "mipsel-unknown-linux" 242 helenos_target = "mipsel-helenos" 234 243 235 244 if ((config['MACHINE'] == "bmalta")): … … 237 246 gnu_target = "mips-linux-gnu" 238 247 clang_target = "mips-unknown-linux" 248 helenos_target = "mips-helenos" 239 249 240 250 if (config['PLATFORM'] == "mips64"): … … 246 256 gnu_target = "mips64el-linux-gnu" 247 257 clang_target = "mips64el-unknown-linux" 258 helenos_target = "mips64el-helenos" 248 259 249 260 if (config['PLATFORM'] == "ppc32"): … … 251 262 gnu_target = "ppc-linux-gnu" 252 263 clang_target = "powerpc-unknown-linux" 264 helenos_target = "ppc-helenos" 265 266 if (config['PLATFORM'] == "sparc32"): 267 target = config['PLATFORM']; 268 gnu_target = "sparc-leon3-linux-gnu" 269 helenos_target = "sparc-leon3-helenos" 253 270 254 271 if (config['PLATFORM'] == "sparc64"): … … 256 273 gnu_target = "sparc64-linux-gnu" 257 274 clang_target = "sparc-unknown-linux" 258 259 return (target, cc_args, gnu_target, clang_target) 275 helenos_target = "sparc64-helenos" 276 277 return (target, cc_args, gnu_target, clang_target, helenos_target) 260 278 261 279 def check_app(args, name, details): … … 697 715 cross_prefix = "/usr/local/cross" 698 716 717 # HelenOS cross-compiler prefix 718 if ('CROSS_HELENOS_PREFIX' in os.environ): 719 cross_helenos_prefix = os.environ['CROSS_HELENOS_PREFIX'] 720 else: 721 cross_helenos_prefix = "/usr/local/cross-helenos" 722 699 723 # Prefix binutils tools on Solaris 700 724 if (os.uname()[0] == "SunOS"): … … 719 743 common['CC_ARGS'] = [] 720 744 if (config['COMPILER'] == "gcc_cross"): 721 target, cc_args, gnu_target, clang_target = get_target(config)745 target, cc_args, gnu_target, clang_target, helenos_target = get_target(config) 722 746 723 747 if (target is None) or (gnu_target is None): … … 727 751 path = "%s/%s/bin" % (cross_prefix, target) 728 752 prefix = "%s-" % gnu_target 753 754 check_gcc(path, prefix, common, PACKAGE_CROSS) 755 check_binutils(path, prefix, common, PACKAGE_CROSS) 756 757 check_common(common, "GCC") 758 common['CC'] = common['GCC'] 759 common['CC_ARGS'].extend(cc_args) 760 761 if (config['COMPILER'] == "gcc_helenos"): 762 target, cc_args, gnu_target, clang_target, helenos_target = get_target(config) 763 764 if (target is None) or (helenos_target is None): 765 print_error(["Unsupported compiler target for GNU GCC.", 766 "Please contact the developers of HelenOS."]) 767 768 path = "%s/%s/bin" % (cross_helenos_prefix, target) 769 prefix = "%s-" % helenos_target 729 770 730 771 check_gcc(path, prefix, common, PACKAGE_CROSS) … … 749 790 750 791 if (config['COMPILER'] == "clang"): 751 target, cc_args, gnu_target, clang_target = get_target(config)792 target, cc_args, gnu_target, clang_target, helenos_target = get_target(config) 752 793 753 794 if (target is None) or (gnu_target is None) or (clang_target is None):
Note:
See TracChangeset
for help on using the changeset viewer.