Changeset 0c2d9bb in mainline for tools/autotool.py
- Timestamp:
- 2013-12-25T22:54:29Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b51cf2c
- Parents:
- f7a33de (diff), ac36aed (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
rf7a33de r0c2d9bb 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 if (config['PLATFORM'] == "sparc32"): 260 target = config['PLATFORM']; 261 gnu_target = "sparc-leon3-linux-gnu" 262 263 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) 264 278 265 279 def check_app(args, name, details): … … 701 715 cross_prefix = "/usr/local/cross" 702 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 703 723 # Prefix binutils tools on Solaris 704 724 if (os.uname()[0] == "SunOS"): … … 723 743 common['CC_ARGS'] = [] 724 744 if (config['COMPILER'] == "gcc_cross"): 725 target, cc_args, gnu_target, clang_target = get_target(config)745 target, cc_args, gnu_target, clang_target, helenos_target = get_target(config) 726 746 727 747 if (target is None) or (gnu_target is None): … … 731 751 path = "%s/%s/bin" % (cross_prefix, target) 732 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 733 770 734 771 check_gcc(path, prefix, common, PACKAGE_CROSS)
Note:
See TracChangeset
for help on using the changeset viewer.