Changeset 46564 in vbox
- Timestamp:
- Jun 14, 2013 3:18:43 PM (11 years ago)
- Location:
- trunk/tools/kBuildTools
- Files:
-
- 2 edited
-
VBoxXGccAmd64LinuxGnu.kmk (modified) (1 diff)
-
VBoxXGccX86RedHatLinux.kmk (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/kBuildTools/VBoxXGccAmd64LinuxGnu.kmk
r46390 r46564 23 23 endif 24 24 ifndef PATH_TOOL_VBoxXGccAmd64LinuxGnu 25 PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(wildcard $(KBUILD_DEVTOOLS_HST)/x86_64-linux-gnu/*)) )25 PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(wildcard $(KBUILD_DEVTOOLS_HST)/x86_64-linux-gnu/*)) 26 26 ifeq ($(PATH_TOOL_VBoxXGccAmd64LinuxGnu),) 27 27 PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/x86_64-linux-gnu/*))) -
trunk/tools/kBuildTools/VBoxXGccX86RedHatLinux.kmk
r46390 r46564 16 16 # 17 17 18 VBoxXGccX86RedHatLinux := GCC Cross compiler for CentOS 3 x86.18 TOOL_VBoxXGccX86RedHatLinux := GCC Cross compiler for CentOS 3 x86. 19 19 20 20 # Tool Specific Properties: 21 ifndef VBoxXGccX86RedHatLinux_PREFIX22 VBoxXGccX86RedHatLinux_PREFIX := i386-redhat-linux-21 ifndef TOOL_VBoxXGccX86RedHatLinux_PREFIX 22 TOOL_VBoxXGccX86RedHatLinux_PREFIX := i386-redhat-linux- 23 23 endif 24 ifndef PATH_ VBoxXGccX86RedHatLinux25 PATH_ VBoxXGccX86RedHatLinux := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST)/i386-redhat-linux/*)))26 ifeq ($(PATH_ VBoxXGccX86RedHatLinux),)27 PATH_ VBoxXGccX86RedHatLinux := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/linux.x86/i386-redhat-linux/*)))24 ifndef PATH_TOOL_VBoxXGccX86RedHatLinux 25 PATH_TOOL_VBoxXGccX86RedHatLinux := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST)/i386-redhat-linux/*))) 26 ifeq ($(PATH_TOOL_VBoxXGccX86RedHatLinux),) 27 PATH_TOOL_VBoxXGccX86RedHatLinux := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/i386-redhat-linux/*))) 28 28 endif 29 29 endif 30 VBoxXGccX86RedHatLinux_PREFIX := $(REDIRECT) -E COMPILER_PATH=$(PATH_VBoxXGccX86RedHatLinux)/bin/ -- $(PATH_VBoxXGccX86RedHatLinux)/bin/$(VBoxXGccX86RedHatLinux_PREFIX)30 TOOL_VBoxXGccX86RedHatLinux_PREFIX := $(REDIRECT) -E COMPILER_PATH=$(PATH_TOOL_VBoxXGccX86RedHatLinux)/bin/ -- $(PATH_TOOL_VBoxXGccX86RedHatLinux)/bin/$(TOOL_VBoxXGccX86RedHatLinux_PREFIX) 31 31 32 VBoxXGccX86RedHatLinux_CC ?= $(VBoxXGccX86RedHatLinux_PREFIX)gcc$(HOSTSUFF_EXE)33 VBoxXGccX86RedHatLinux_CXX ?= $(VBoxXGccX86RedHatLinux_PREFIX)g++$(HOSTSUFF_EXE)34 VBoxXGccX86RedHatLinux_AS ?= $(VBoxXGccX86RedHatLinux_PREFIX)gcc$(HOSTSUFF_EXE)35 VBoxXGccX86RedHatLinux_AR ?= $(VBoxXGccX86RedHatLinux_PREFIX)ar$(HOSTSUFF_EXE)36 VBoxXGccX86RedHatLinux_LD ?= $(VBoxXGccX86RedHatLinux_PREFIX)g++$(HOSTSUFF_EXE) -Wl,-rpath-link,$(PATH_VBoxXGccX86RedHatLinux)/i386-redhat-linux/lib37 VBoxXGccX86RedHatLinux_LD_SYSMOD ?= $(VBoxXGccX86RedHatLinux_PREFIX)ld$(HOSTSUFF_EXE)32 TOOL_VBoxXGccX86RedHatLinux_CC ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)gcc$(HOSTSUFF_EXE) 33 TOOL_VBoxXGccX86RedHatLinux_CXX ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)g++$(HOSTSUFF_EXE) 34 TOOL_VBoxXGccX86RedHatLinux_AS ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)gcc$(HOSTSUFF_EXE) 35 TOOL_VBoxXGccX86RedHatLinux_AR ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)ar$(HOSTSUFF_EXE) 36 TOOL_VBoxXGccX86RedHatLinux_LD ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)g++$(HOSTSUFF_EXE) -Wl,-rpath-link,$(PATH_TOOL_VBoxXGccX86RedHatLinux)/i386-redhat-linux/lib 37 TOOL_VBoxXGccX86RedHatLinux_LD_SYSMOD ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)ld$(HOSTSUFF_EXE) 38 38 39 VBoxXGccX86RedHatLinux_LD_SONAME ?= -Wl,-soname=$(firstword $($(1)_SONAME.$(KBUILD_TARGET).$(KBUILD_TYPE)) $($(1)_SONAME.$(KBUILD_TARGET)) $($(1)_SONAME.$(KBUILD_TYPE)) $($(1)_SONAME) $(notdir $(2)))40 VBoxXGccX86RedHatLinux_LD_MAP ?= -Wl,-Map -Wl,$(1) -Wl,--cref41 VBoxXGccX86RedHatLinux_LD_SYSMOD_MAP ?= -Map $(1) --cref42 VBoxXGccX86RedHatLinux_LDFLAGS.dll ?= -shared43 VBoxXGccX86RedHatLinux_LDFLAGS.sysmod ?= -r39 TOOL_VBoxXGccX86RedHatLinux_LD_SONAME ?= -Wl,-soname=$(firstword $($(1)_SONAME.$(KBUILD_TARGET).$(KBUILD_TYPE)) $($(1)_SONAME.$(KBUILD_TARGET)) $($(1)_SONAME.$(KBUILD_TYPE)) $($(1)_SONAME) $(notdir $(2))) 40 TOOL_VBoxXGccX86RedHatLinux_LD_MAP ?= -Wl,-Map -Wl,$(1) -Wl,--cref 41 TOOL_VBoxXGccX86RedHatLinux_LD_SYSMOD_MAP ?= -Map $(1) --cref 42 TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.dll ?= -shared 43 TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.sysmod ?= -r 44 44 45 45 ifdef SLKRUNS 46 VBoxXGccX86RedHatLinux_CC += -fmessage-length=047 VBoxXGccX86RedHatLinux_CXX += -fmessage-length=046 TOOL_VBoxXGccX86RedHatLinux_CC += -fmessage-length=0 47 TOOL_VBoxXGccX86RedHatLinux_CXX += -fmessage-length=0 48 48 endif 49 49 50 50 # General Properties used by kBuild: 51 VBoxXGccX86RedHatLinux_COBJSUFF ?= .o52 VBoxXGccX86RedHatLinux_CFLAGS ?= -g53 VBoxXGccX86RedHatLinux_CFLAGS.debug ?= -O054 VBoxXGccX86RedHatLinux_CFLAGS.release ?= -O255 VBoxXGccX86RedHatLinux_CFLAGS.profile ?= -O256 VBoxXGccX86RedHatLinux_CINCS ?=57 VBoxXGccX86RedHatLinux_CDEFS ?=51 TOOL_VBoxXGccX86RedHatLinux_COBJSUFF ?= .o 52 TOOL_VBoxXGccX86RedHatLinux_CFLAGS ?= -g 53 TOOL_VBoxXGccX86RedHatLinux_CFLAGS.debug ?= -O0 54 TOOL_VBoxXGccX86RedHatLinux_CFLAGS.release ?= -O2 55 TOOL_VBoxXGccX86RedHatLinux_CFLAGS.profile ?= -O2 56 TOOL_VBoxXGccX86RedHatLinux_CINCS ?= 57 TOOL_VBoxXGccX86RedHatLinux_CDEFS ?= 58 58 59 VBoxXGccX86RedHatLinux_CXXOBJSUFF ?= .o60 VBoxXGccX86RedHatLinux_CXXOBJSUFF ?= .o61 VBoxXGccX86RedHatLinux_CXXFLAGS ?= -g62 VBoxXGccX86RedHatLinux_CXXFLAGS.debug ?= -O063 VBoxXGccX86RedHatLinux_CXXFLAGS.release ?= -O264 VBoxXGccX86RedHatLinux_CXXFLAGS.profile ?= -O265 VBoxXGccX86RedHatLinux_CXXINCS ?=66 VBoxXGccX86RedHatLinux_CXXDEFS ?=59 TOOL_VBoxXGccX86RedHatLinux_CXXOBJSUFF ?= .o 60 TOOL_VBoxXGccX86RedHatLinux_CXXOBJSUFF ?= .o 61 TOOL_VBoxXGccX86RedHatLinux_CXXFLAGS ?= -g 62 TOOL_VBoxXGccX86RedHatLinux_CXXFLAGS.debug ?= -O0 63 TOOL_VBoxXGccX86RedHatLinux_CXXFLAGS.release ?= -O2 64 TOOL_VBoxXGccX86RedHatLinux_CXXFLAGS.profile ?= -O2 65 TOOL_VBoxXGccX86RedHatLinux_CXXINCS ?= 66 TOOL_VBoxXGccX86RedHatLinux_CXXDEFS ?= 67 67 68 VBoxXGccX86RedHatLinux_ASFLAGS ?= -g -x assembler-with-cpp69 VBoxXGccX86RedHatLinux_ASOBJSUFF ?= .o68 TOOL_VBoxXGccX86RedHatLinux_ASFLAGS ?= -g -x assembler-with-cpp 69 TOOL_VBoxXGccX86RedHatLinux_ASOBJSUFF ?= .o 70 70 71 VBoxXGccX86RedHatLinux_ARFLAGS ?= cr 72 VBoxXGccX86RedHatLinux_ARLIBSUFF ?= .a 71 TOOL_VBoxXGccX86RedHatLinux_ARFLAGS ?= cr 72 TOOL_VBoxXGccX86RedHatLinux_ARLIBSUFF ?= .a 73 TOOL_VBoxXGccX86RedHatLinux_LDFLAGS ?= 74 TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.debug ?= -g 75 TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.release ?= -s 73 76 74 VBoxXGccX86RedHatLinux_LDFLAGS ?= 75 VBoxXGccX86RedHatLinux_LDFLAGS.debug ?= -g 76 VBoxXGccX86RedHatLinux_LDFLAGS.release ?= -s 77 78 VBoxXGccX86RedHatLinux_COMPILE_C_OUTPUT = 79 VBoxXGccX86RedHatLinux_COMPILE_C_DEPEND = 80 VBoxXGccX86RedHatLinux_COMPILE_C_DEPORD = 81 define VBoxXGccX86RedHatLinux_COMPILE_C_CMDS 82 $(QUIET)$(VBoxXGccX86RedHatLinux_CC) -c \ 77 TOOL_VBoxXGccX86RedHatLinux_COMPILE_C_OUTPUT = 78 TOOL_VBoxXGccX86RedHatLinux_COMPILE_C_DEPEND = 79 TOOL_VBoxXGccX86RedHatLinux_COMPILE_C_DEPORD = 80 define TOOL_VBoxXGccX86RedHatLinux_COMPILE_C_CMDS 81 $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_CC) -c \ 83 82 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs)) \ 84 83 -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP \ … … 87 86 endef 88 87 89 VBoxXGccX86RedHatLinux_COMPILE_CXX_OUTPUT =90 VBoxXGccX86RedHatLinux_COMPILE_CXX_DEPEND =91 VBoxXGccX86RedHatLinux_COMPILE_CXX_DEPORD =92 define VBoxXGccX86RedHatLinux_COMPILE_CXX_CMDS93 $(QUIET)$( VBoxXGccX86RedHatLinux_CXX) -c \88 TOOL_VBoxXGccX86RedHatLinux_COMPILE_CXX_OUTPUT = 89 TOOL_VBoxXGccX86RedHatLinux_COMPILE_CXX_DEPEND = 90 TOOL_VBoxXGccX86RedHatLinux_COMPILE_CXX_DEPORD = 91 define TOOL_VBoxXGccX86RedHatLinux_COMPILE_CXX_CMDS 92 $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_CXX) -c \ 94 93 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs)) \ 95 94 -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP \ … … 98 97 endef 99 98 100 VBoxXGccX86RedHatLinux_COMPILE_AS_OUTPUT =101 VBoxXGccX86RedHatLinux_COMPILE_AS_DEPEND =102 VBoxXGccX86RedHatLinux_COMPILE_AS_DEPORD =103 define VBoxXGccX86RedHatLinux_COMPILE_AS_CMDS104 $(QUIET)$( VBoxXGccX86RedHatLinux_AS) -c \99 TOOL_VBoxXGccX86RedHatLinux_COMPILE_AS_OUTPUT = 100 TOOL_VBoxXGccX86RedHatLinux_COMPILE_AS_DEPEND = 101 TOOL_VBoxXGccX86RedHatLinux_COMPILE_AS_DEPORD = 102 define TOOL_VBoxXGccX86RedHatLinux_COMPILE_AS_CMDS 103 $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_AS) -c \ 105 104 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs)) \ 106 105 -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP \ … … 109 108 endef 110 109 111 VBoxXGccX86RedHatLinux_LINK_LIBRARY_OUTPUT = $(out).ar-script112 VBoxXGccX86RedHatLinux_LINK_LIBRARY_DEPEND = $(othersrc)113 VBoxXGccX86RedHatLinux_LINK_LIBRARY_DEPORD =114 define VBoxXGccX86RedHatLinux_LINK_LIBRARY_CMDS110 TOOL_VBoxXGccX86RedHatLinux_LINK_LIBRARY_OUTPUT = $(out).ar-script 111 TOOL_VBoxXGccX86RedHatLinux_LINK_LIBRARY_DEPEND = $(othersrc) 112 TOOL_VBoxXGccX86RedHatLinux_LINK_LIBRARY_DEPORD = 113 define TOOL_VBoxXGccX86RedHatLinux_LINK_LIBRARY_CMDS 115 114 $(QUIET)$(APPEND) $(out).ar-script 'CREATE $(out)' 116 115 $(QUIET)$(APPEND) -n $(out).ar-script \ … … 119 118 $(QUIET)$(APPEND) $(out).ar-script 'SAVE' 120 119 $(QUIET)$(APPEND) $(out).ar-script 'END' 121 $(QUIET)$(REDIRECT) -rti $(out).ar-script -- $( VBoxXGccX86RedHatLinux_AR) -M120 $(QUIET)$(REDIRECT) -rti $(out).ar-script -- $(TOOL_VBoxXGccX86RedHatLinux_AR) -M 122 121 endef 123 122 124 VBoxXGccX86RedHatLinux_LINK_PROGRAM_OUTPUT = $(outbase).map125 VBoxXGccX86RedHatLinux_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))126 VBoxXGccX86RedHatLinux_LINK_PROGRAM_DEPORD =127 define VBoxXGccX86RedHatLinux_LINK_PROGRAM_CMDS128 $(QUIET)$( VBoxXGccX86RedHatLinux_LD) $(flags) -o $(out) $(objs) \123 TOOL_VBoxXGccX86RedHatLinux_LINK_PROGRAM_OUTPUT = $(outbase).map 124 TOOL_VBoxXGccX86RedHatLinux_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 125 TOOL_VBoxXGccX86RedHatLinux_LINK_PROGRAM_DEPORD = 126 define TOOL_VBoxXGccX86RedHatLinux_LINK_PROGRAM_CMDS 127 $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_LD) $(flags) -o $(out) $(objs) \ 129 128 $(foreach p,$(libpath), -L$(p)) \ 130 129 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) \ 131 $(call VBoxXGccX86RedHatLinux_LD_MAP,$(outbase).map)130 $(call TOOL_VBoxXGccX86RedHatLinux_LD_MAP,$(outbase).map) 132 131 endef 133 132 134 VBoxXGccX86RedHatLinux_LINK_DLL_OUTPUT = $(outbase).map135 VBoxXGccX86RedHatLinux_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))136 VBoxXGccX86RedHatLinux_LINK_DLL_DEPORD =137 define VBoxXGccX86RedHatLinux_LINK_DLL_CMDS138 $(QUIET)$( VBoxXGccX86RedHatLinux_LD) $(VBoxXGccX86RedHatLinux_LDFLAGS.dll) $(flags) -o $(out) \139 $(if $(filter-out win32 os2, $(KBUILD_TARGET)),$(call VBoxXGccX86RedHatLinux_LD_SONAME,$(target),$(out))) \133 TOOL_VBoxXGccX86RedHatLinux_LINK_DLL_OUTPUT = $(outbase).map 134 TOOL_VBoxXGccX86RedHatLinux_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 135 TOOL_VBoxXGccX86RedHatLinux_LINK_DLL_DEPORD = 136 define TOOL_VBoxXGccX86RedHatLinux_LINK_DLL_CMDS 137 $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_LD) $(TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.dll) $(flags) -o $(out) \ 138 $(if $(filter-out win32 os2, $(KBUILD_TARGET)),$(call TOOL_VBoxXGccX86RedHatLinux_LD_SONAME,$(target),$(out))) \ 140 139 $(objs) \ 141 140 $(foreach p,$(libpath), -L$(p)) \ 142 141 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) \ 143 $(call VBoxXGccX86RedHatLinux_LD_MAP,$(outbase).map)142 $(call TOOL_VBoxXGccX86RedHatLinux_LD_MAP,$(outbase).map) 144 143 endef 145 144 146 VBoxXGccX86RedHatLinux_LINK_SYSMOD_OUTPUT = $(outbase).map147 VBoxXGccX86RedHatLinux_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))148 VBoxXGccX86RedHatLinux_LINK_SYSMOD_DEPORD =149 define VBoxXGccX86RedHatLinux_LINK_SYSMOD_CMDS150 $(QUIET)$( VBoxXGccX86RedHatLinux_LD_SYSMOD) $(VBoxXGccX86RedHatLinux_LDFLAGS.sysmod) $(flags) -o $(out) $(objs) \145 TOOL_VBoxXGccX86RedHatLinux_LINK_SYSMOD_OUTPUT = $(outbase).map 146 TOOL_VBoxXGccX86RedHatLinux_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 147 TOOL_VBoxXGccX86RedHatLinux_LINK_SYSMOD_DEPORD = 148 define TOOL_VBoxXGccX86RedHatLinux_LINK_SYSMOD_CMDS 149 $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_LD_SYSMOD) $(TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.sysmod) $(flags) -o $(out) $(objs) \ 151 150 $(foreach p,$(libpath), -L$(p)) \ 152 151 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) \ 153 $(call VBoxXGccX86RedHatLinux_LD_SYSMOD_MAP,$(outbase).map)152 $(call TOOL_VBoxXGccX86RedHatLinux_LD_SYSMOD_MAP,$(outbase).map) 154 153 endef 155 154
Note:
See TracChangeset
for help on using the changeset viewer.

