Changeset 8f2eca0 in mainline
- Timestamp:
- 2013-07-25T10:51:36Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 98f7830
- Parents:
- f03c3da
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
rf03c3da r8f2eca0 291 291 @ "gcc_cross" GNU C Compiler (cross-compiler) 292 292 @ "gcc_native" GNU C Compiler (native) 293 @ "gcc_helenos" GNU C Compiler (HelenOS-specific cross-compiler) 293 294 @ "icc" Intel C Compiler 294 295 @ "clang" Clang … … 299 300 @ "gcc_native" GNU C Compiler (native) 300 301 @ "icc" Intel C Compiler 302 @ "gcc_helenos" GNU C Compiler (HelenOS-specific cross-compiler) 301 303 ! [PLATFORM=ia64] COMPILER (choice) 302 304 … … 304 306 @ "gcc_cross" GNU C Compiler (cross-compiler) 305 307 @ "gcc_native" GNU C Compiler (native) 308 @ "gcc_helenos" GNU C Compiler (HelenOS-specific cross-compiler) 306 309 ! [PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] COMPILER (choice) 307 310 … … 309 312 @ "gcc_cross" GNU C Compiler (cross-compiler) 310 313 @ "gcc_native" GNU C Compiler (native) 314 @ "gcc_helenos" GNU C Compiler (HelenOS-specific cross-compiler) 311 315 @ "clang" Clang 312 316 ! [PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc64] COMPILER (choice) … … 319 323 @ "ia32" Intel IA-32 320 324 @ "mips32" MIPS 32-bit 321 ! [PLATFORM=abs32le& COMPILER=gcc_cross] CROSS_TARGET (choice)325 ! [PLATFORM=abs32le&(COMPILER=gcc_cross|COMPILER=gcc_helenos)] CROSS_TARGET (choice) 322 326 323 327 -
boot/Makefile.build
rf03c3da r8f2eca0 75 75 endif 76 76 77 ifeq ($(COMPILER),gcc_helenos) 78 CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS) 79 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 80 endif 81 82 77 83 ifeq ($(COMPILER),icc) 78 84 CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS) -
kernel/Makefile
rf03c3da r8f2eca0 167 167 168 168 ifeq ($(COMPILER),gcc_cross) 169 CFLAGS = $(GCC_CFLAGS) 170 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 171 INSTRUMENTATION = -finstrument-functions 172 endif 173 174 ifeq ($(COMPILER),gcc_helenos) 169 175 CFLAGS = $(GCC_CFLAGS) 170 176 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) -
tools/autotool.py
rf03c3da 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) -
uspace/Makefile.common
rf03c3da r8f2eca0 243 243 endif 244 244 245 ifeq ($(COMPILER),gcc_helenos) 246 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS) 247 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 248 endif 249 245 250 ifeq ($(COMPILER),gcc_native) 246 251 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
Note:
See TracChangeset
for help on using the changeset viewer.