Changes in tools/autotool.py [6db5d4b:8f2eca0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r6db5d4b r8f2eca0 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" 253 265 254 266 if (config['PLATFORM'] == "sparc64"): … … 256 268 gnu_target = "sparc64-linux-gnu" 257 269 clang_target = "sparc-unknown-linux" 258 259 return (target, cc_args, gnu_target, clang_target) 270 helenos_target = "sparc64-helenos" 271 272 return (target, cc_args, gnu_target, clang_target, helenos_target) 260 273 261 274 def check_app(args, name, details): … … 697 710 cross_prefix = "/usr/local/cross" 698 711 712 # HelenOS cross-compiler prefix 713 if ('CROSS_HELENOS_PREFIX' in os.environ): 714 cross_helenos_prefix = os.environ['CROSS_HELENOS_PREFIX'] 715 else: 716 cross_helenos_prefix = "/usr/local/cross-helenos" 717 699 718 # Prefix binutils tools on Solaris 700 719 if (os.uname()[0] == "SunOS"): … … 719 738 common['CC_ARGS'] = [] 720 739 if (config['COMPILER'] == "gcc_cross"): 721 target, cc_args, gnu_target, clang_target = get_target(config)740 target, cc_args, gnu_target, clang_target, helenos_target = get_target(config) 722 741 723 742 if (target is None) or (gnu_target is None): … … 727 746 path = "%s/%s/bin" % (cross_prefix, target) 728 747 prefix = "%s-" % gnu_target 748 749 check_gcc(path, prefix, common, PACKAGE_CROSS) 750 check_binutils(path, prefix, common, PACKAGE_CROSS) 751 752 check_common(common, "GCC") 753 common['CC'] = common['GCC'] 754 common['CC_ARGS'].extend(cc_args) 755 756 if (config['COMPILER'] == "gcc_helenos"): 757 target, cc_args, gnu_target, clang_target, helenos_target = get_target(config) 758 759 if (target is None) or (helenos_target is None): 760 print_error(["Unsupported compiler target for GNU GCC.", 761 "Please contact the developers of HelenOS."]) 762 763 path = "%s/%s/bin" % (cross_helenos_prefix, target) 764 prefix = "%s-" % helenos_target 729 765 730 766 check_gcc(path, prefix, common, PACKAGE_CROSS)
Note:
See TracChangeset
for help on using the changeset viewer.