Changes in tools/autotool.py [0dd022ec:6db5d4b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r0dd022ec r6db5d4b 186 186 gnu_target = None 187 187 clang_target = None 188 helenos_target = None189 188 cc_args = [] 190 189 … … 196 195 gnu_target = "arm-linux-gnueabi" 197 196 clang_target = "arm-unknown-linux" 198 helenos_target = "arm-helenos-gnueabi"199 197 200 198 if (config['CROSS_TARGET'] == "ia32"): 201 199 gnu_target = "i686-pc-linux-gnu" 202 200 clang_target = "i386-unknown-linux" 203 helenos_target = "i686-pc-helenos"204 201 205 202 if (config['CROSS_TARGET'] == "mips32"): 206 203 gnu_target = "mipsel-linux-gnu" 207 204 clang_target = "mipsel-unknown-linux" 208 helenos_target = "mipsel-helenos"209 205 common['CC_ARGS'].append("-mabi=32") 210 206 … … 213 209 gnu_target = "amd64-linux-gnu" 214 210 clang_target = "x86_64-unknown-linux" 215 helenos_target = "amd64-helenos"216 211 217 212 if (config['PLATFORM'] == "arm32"): … … 219 214 gnu_target = "arm-linux-gnueabi" 220 215 clang_target = "arm-unknown-linux" 221 helenos_target = "arm-helenos-gnueabi"222 216 223 217 if (config['PLATFORM'] == "ia32"): … … 225 219 gnu_target = "i686-pc-linux-gnu" 226 220 clang_target = "i386-unknown-linux" 227 helenos_target = "i686-pc-helenos"228 221 229 222 if (config['PLATFORM'] == "ia64"): 230 223 target = config['PLATFORM'] 231 224 gnu_target = "ia64-pc-linux-gnu" 232 helenos_target = "ia64-pc-helenos"233 225 234 226 if (config['PLATFORM'] == "mips32"): … … 240 232 gnu_target = "mipsel-linux-gnu" 241 233 clang_target = "mipsel-unknown-linux" 242 helenos_target = "mipsel-helenos"243 234 244 235 if ((config['MACHINE'] == "bmalta")): … … 246 237 gnu_target = "mips-linux-gnu" 247 238 clang_target = "mips-unknown-linux" 248 helenos_target = "mips-helenos"249 239 250 240 if (config['PLATFORM'] == "mips64"): … … 256 246 gnu_target = "mips64el-linux-gnu" 257 247 clang_target = "mips64el-unknown-linux" 258 helenos_target = "mips64el-helenos"259 248 260 249 if (config['PLATFORM'] == "ppc32"): … … 262 251 gnu_target = "ppc-linux-gnu" 263 252 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"270 253 271 254 if (config['PLATFORM'] == "sparc64"): … … 273 256 gnu_target = "sparc64-linux-gnu" 274 257 clang_target = "sparc-unknown-linux" 275 helenos_target = "sparc64-helenos" 276 277 return (target, cc_args, gnu_target, clang_target, helenos_target) 258 259 return (target, cc_args, gnu_target, clang_target) 278 260 279 261 def check_app(args, name, details): … … 715 697 cross_prefix = "/usr/local/cross" 716 698 717 # HelenOS cross-compiler prefix718 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 723 699 # Prefix binutils tools on Solaris 724 700 if (os.uname()[0] == "SunOS"): … … 743 719 common['CC_ARGS'] = [] 744 720 if (config['COMPILER'] == "gcc_cross"): 745 target, cc_args, gnu_target, clang_target , helenos_target= get_target(config)721 target, cc_args, gnu_target, clang_target = get_target(config) 746 722 747 723 if (target is None) or (gnu_target is None): … … 759 735 common['CC_ARGS'].extend(cc_args) 760 736 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_target770 771 check_gcc(path, prefix, common, PACKAGE_CROSS)772 check_binutils(path, prefix, common, PACKAGE_CROSS)773 774 check_common(common, "GCC")775 common['CC'] = common['GCC']776 common['CC_ARGS'].extend(cc_args)777 778 737 if (config['COMPILER'] == "gcc_native"): 779 738 check_gcc(None, "", common, PACKAGE_GCC) … … 790 749 791 750 if (config['COMPILER'] == "clang"): 792 target, cc_args, gnu_target, clang_target , helenos_target= get_target(config)751 target, cc_args, gnu_target, clang_target = get_target(config) 793 752 794 753 if (target is None) or (gnu_target is None) or (clang_target is None):
Note:
See TracChangeset
for help on using the changeset viewer.