Changes in tools/autotool.py [8f2eca0:6db5d4b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/autotool.py
r8f2eca0 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 253 266 254 if (config['PLATFORM'] == "sparc64"): … … 268 256 gnu_target = "sparc64-linux-gnu" 269 257 clang_target = "sparc-unknown-linux" 270 helenos_target = "sparc64-helenos" 271 272 return (target, cc_args, gnu_target, clang_target, helenos_target) 258 259 return (target, cc_args, gnu_target, clang_target) 273 260 274 261 def check_app(args, name, details): … … 710 697 cross_prefix = "/usr/local/cross" 711 698 712 # HelenOS cross-compiler prefix713 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 718 699 # Prefix binutils tools on Solaris 719 700 if (os.uname()[0] == "SunOS"): … … 738 719 common['CC_ARGS'] = [] 739 720 if (config['COMPILER'] == "gcc_cross"): 740 target, cc_args, gnu_target, clang_target , helenos_target= get_target(config)721 target, cc_args, gnu_target, clang_target = get_target(config) 741 722 742 723 if (target is None) or (gnu_target is None): … … 746 727 path = "%s/%s/bin" % (cross_prefix, target) 747 728 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_target765 729 766 730 check_gcc(path, prefix, common, PACKAGE_CROSS)
Note:
See TracChangeset
for help on using the changeset viewer.