VirtualBox

Changeset 46564 in vbox


Ignore:
Timestamp:
Jun 14, 2013 3:18:43 PM (11 years ago)
Author:
vboxsync
Message:

tools: fix Linux Additions build tool files.

Location:
trunk/tools/kBuildTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/kBuildTools/VBoxXGccAmd64LinuxGnu.kmk

    r46390 r46564  
    2323endif
    2424ifndef 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/*))
    2626 ifeq ($(PATH_TOOL_VBoxXGccAmd64LinuxGnu),)
    2727   PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/x86_64-linux-gnu/*)))
  • trunk/tools/kBuildTools/VBoxXGccX86RedHatLinux.kmk

    r46390 r46564  
    1616#
    1717
    18 VBoxXGccX86RedHatLinux := GCC Cross compiler for CentOS 3 x86.
     18TOOL_VBoxXGccX86RedHatLinux := GCC Cross compiler for CentOS 3 x86.
    1919
    2020# Tool Specific Properties:
    21 ifndef VBoxXGccX86RedHatLinux_PREFIX
    22  VBoxXGccX86RedHatLinux_PREFIX := i386-redhat-linux-
     21ifndef TOOL_VBoxXGccX86RedHatLinux_PREFIX
     22 TOOL_VBoxXGccX86RedHatLinux_PREFIX := i386-redhat-linux-
    2323endif
    24 ifndef PATH_VBoxXGccX86RedHatLinux
    25  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/*)))
     24ifndef 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/*)))
    2828 endif
    2929endif
    30 VBoxXGccX86RedHatLinux_PREFIX := $(REDIRECT) -E COMPILER_PATH=$(PATH_VBoxXGccX86RedHatLinux)/bin/ -- $(PATH_VBoxXGccX86RedHatLinux)/bin/$(VBoxXGccX86RedHatLinux_PREFIX)
     30TOOL_VBoxXGccX86RedHatLinux_PREFIX := $(REDIRECT) -E COMPILER_PATH=$(PATH_TOOL_VBoxXGccX86RedHatLinux)/bin/ -- $(PATH_TOOL_VBoxXGccX86RedHatLinux)/bin/$(TOOL_VBoxXGccX86RedHatLinux_PREFIX)
    3131
    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/lib
    37 VBoxXGccX86RedHatLinux_LD_SYSMOD ?= $(VBoxXGccX86RedHatLinux_PREFIX)ld$(HOSTSUFF_EXE)
     32TOOL_VBoxXGccX86RedHatLinux_CC  ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)gcc$(HOSTSUFF_EXE)
     33TOOL_VBoxXGccX86RedHatLinux_CXX ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)g++$(HOSTSUFF_EXE)
     34TOOL_VBoxXGccX86RedHatLinux_AS  ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)gcc$(HOSTSUFF_EXE)
     35TOOL_VBoxXGccX86RedHatLinux_AR  ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)ar$(HOSTSUFF_EXE)
     36TOOL_VBoxXGccX86RedHatLinux_LD  ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)g++$(HOSTSUFF_EXE) -Wl,-rpath-link,$(PATH_TOOL_VBoxXGccX86RedHatLinux)/i386-redhat-linux/lib
     37TOOL_VBoxXGccX86RedHatLinux_LD_SYSMOD ?= $(TOOL_VBoxXGccX86RedHatLinux_PREFIX)ld$(HOSTSUFF_EXE)
    3838
    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,--cref
    41 VBoxXGccX86RedHatLinux_LD_SYSMOD_MAP ?= -Map $(1) --cref
    42 VBoxXGccX86RedHatLinux_LDFLAGS.dll ?= -shared
    43 VBoxXGccX86RedHatLinux_LDFLAGS.sysmod ?= -r
     39TOOL_VBoxXGccX86RedHatLinux_LD_SONAME ?= -Wl,-soname=$(firstword $($(1)_SONAME.$(KBUILD_TARGET).$(KBUILD_TYPE)) $($(1)_SONAME.$(KBUILD_TARGET)) $($(1)_SONAME.$(KBUILD_TYPE)) $($(1)_SONAME) $(notdir $(2)))
     40TOOL_VBoxXGccX86RedHatLinux_LD_MAP ?= -Wl,-Map -Wl,$(1) -Wl,--cref
     41TOOL_VBoxXGccX86RedHatLinux_LD_SYSMOD_MAP ?= -Map $(1) --cref
     42TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.dll ?= -shared
     43TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.sysmod ?= -r
    4444
    4545ifdef SLKRUNS
    46 VBoxXGccX86RedHatLinux_CC  += -fmessage-length=0
    47 VBoxXGccX86RedHatLinux_CXX += -fmessage-length=0
     46TOOL_VBoxXGccX86RedHatLinux_CC  += -fmessage-length=0
     47TOOL_VBoxXGccX86RedHatLinux_CXX += -fmessage-length=0
    4848endif
    4949
    5050# General Properties used by kBuild:
    51 VBoxXGccX86RedHatLinux_COBJSUFF         ?= .o
    52 VBoxXGccX86RedHatLinux_CFLAGS           ?= -g
    53 VBoxXGccX86RedHatLinux_CFLAGS.debug     ?= -O0
    54 VBoxXGccX86RedHatLinux_CFLAGS.release   ?= -O2
    55 VBoxXGccX86RedHatLinux_CFLAGS.profile   ?= -O2
    56 VBoxXGccX86RedHatLinux_CINCS            ?=
    57 VBoxXGccX86RedHatLinux_CDEFS            ?=
     51TOOL_VBoxXGccX86RedHatLinux_COBJSUFF         ?= .o
     52TOOL_VBoxXGccX86RedHatLinux_CFLAGS           ?= -g
     53TOOL_VBoxXGccX86RedHatLinux_CFLAGS.debug     ?= -O0
     54TOOL_VBoxXGccX86RedHatLinux_CFLAGS.release   ?= -O2
     55TOOL_VBoxXGccX86RedHatLinux_CFLAGS.profile   ?= -O2
     56TOOL_VBoxXGccX86RedHatLinux_CINCS            ?=
     57TOOL_VBoxXGccX86RedHatLinux_CDEFS            ?=
    5858
    59 VBoxXGccX86RedHatLinux_CXXOBJSUFF       ?= .o
    60 VBoxXGccX86RedHatLinux_CXXOBJSUFF       ?= .o
    61 VBoxXGccX86RedHatLinux_CXXFLAGS         ?= -g
    62 VBoxXGccX86RedHatLinux_CXXFLAGS.debug   ?= -O0
    63 VBoxXGccX86RedHatLinux_CXXFLAGS.release ?= -O2
    64 VBoxXGccX86RedHatLinux_CXXFLAGS.profile ?= -O2
    65 VBoxXGccX86RedHatLinux_CXXINCS          ?=
    66 VBoxXGccX86RedHatLinux_CXXDEFS          ?=
     59TOOL_VBoxXGccX86RedHatLinux_CXXOBJSUFF       ?= .o
     60TOOL_VBoxXGccX86RedHatLinux_CXXOBJSUFF       ?= .o
     61TOOL_VBoxXGccX86RedHatLinux_CXXFLAGS         ?= -g
     62TOOL_VBoxXGccX86RedHatLinux_CXXFLAGS.debug   ?= -O0
     63TOOL_VBoxXGccX86RedHatLinux_CXXFLAGS.release ?= -O2
     64TOOL_VBoxXGccX86RedHatLinux_CXXFLAGS.profile ?= -O2
     65TOOL_VBoxXGccX86RedHatLinux_CXXINCS          ?=
     66TOOL_VBoxXGccX86RedHatLinux_CXXDEFS          ?=
    6767
    68 VBoxXGccX86RedHatLinux_ASFLAGS          ?= -g -x assembler-with-cpp
    69 VBoxXGccX86RedHatLinux_ASOBJSUFF        ?= .o
     68TOOL_VBoxXGccX86RedHatLinux_ASFLAGS          ?= -g -x assembler-with-cpp
     69TOOL_VBoxXGccX86RedHatLinux_ASOBJSUFF        ?= .o
    7070
    71 VBoxXGccX86RedHatLinux_ARFLAGS          ?= cr
    72 VBoxXGccX86RedHatLinux_ARLIBSUFF        ?= .a
     71TOOL_VBoxXGccX86RedHatLinux_ARFLAGS          ?= cr
     72TOOL_VBoxXGccX86RedHatLinux_ARLIBSUFF        ?= .a
     73TOOL_VBoxXGccX86RedHatLinux_LDFLAGS          ?=
     74TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.debug    ?= -g
     75TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.release  ?= -s
    7376
    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 \
     77TOOL_VBoxXGccX86RedHatLinux_COMPILE_C_OUTPUT =
     78TOOL_VBoxXGccX86RedHatLinux_COMPILE_C_DEPEND =
     79TOOL_VBoxXGccX86RedHatLinux_COMPILE_C_DEPORD =
     80define TOOL_VBoxXGccX86RedHatLinux_COMPILE_C_CMDS
     81        $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_CC) -c \
    8382                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs)) \
    8483                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP \
     
    8786endef
    8887
    89 VBoxXGccX86RedHatLinux_COMPILE_CXX_OUTPUT =
    90 VBoxXGccX86RedHatLinux_COMPILE_CXX_DEPEND =
    91 VBoxXGccX86RedHatLinux_COMPILE_CXX_DEPORD =
    92 define VBoxXGccX86RedHatLinux_COMPILE_CXX_CMDS
    93         $(QUIET)$(VBoxXGccX86RedHatLinux_CXX) -c \
     88TOOL_VBoxXGccX86RedHatLinux_COMPILE_CXX_OUTPUT =
     89TOOL_VBoxXGccX86RedHatLinux_COMPILE_CXX_DEPEND =
     90TOOL_VBoxXGccX86RedHatLinux_COMPILE_CXX_DEPORD =
     91define TOOL_VBoxXGccX86RedHatLinux_COMPILE_CXX_CMDS
     92        $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_CXX) -c \
    9493                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs)) \
    9594                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP \
     
    9897endef
    9998
    100 VBoxXGccX86RedHatLinux_COMPILE_AS_OUTPUT =
    101 VBoxXGccX86RedHatLinux_COMPILE_AS_DEPEND =
    102 VBoxXGccX86RedHatLinux_COMPILE_AS_DEPORD =
    103 define VBoxXGccX86RedHatLinux_COMPILE_AS_CMDS
    104         $(QUIET)$(VBoxXGccX86RedHatLinux_AS) -c \
     99TOOL_VBoxXGccX86RedHatLinux_COMPILE_AS_OUTPUT =
     100TOOL_VBoxXGccX86RedHatLinux_COMPILE_AS_DEPEND =
     101TOOL_VBoxXGccX86RedHatLinux_COMPILE_AS_DEPORD =
     102define TOOL_VBoxXGccX86RedHatLinux_COMPILE_AS_CMDS
     103        $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_AS) -c \
    105104                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs)) \
    106105                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP \
     
    109108endef
    110109
    111 VBoxXGccX86RedHatLinux_LINK_LIBRARY_OUTPUT = $(out).ar-script
    112 VBoxXGccX86RedHatLinux_LINK_LIBRARY_DEPEND = $(othersrc)
    113 VBoxXGccX86RedHatLinux_LINK_LIBRARY_DEPORD =
    114 define VBoxXGccX86RedHatLinux_LINK_LIBRARY_CMDS
     110TOOL_VBoxXGccX86RedHatLinux_LINK_LIBRARY_OUTPUT = $(out).ar-script
     111TOOL_VBoxXGccX86RedHatLinux_LINK_LIBRARY_DEPEND = $(othersrc)
     112TOOL_VBoxXGccX86RedHatLinux_LINK_LIBRARY_DEPORD =
     113define TOOL_VBoxXGccX86RedHatLinux_LINK_LIBRARY_CMDS
    115114        $(QUIET)$(APPEND) $(out).ar-script 'CREATE $(out)'
    116115        $(QUIET)$(APPEND) -n $(out).ar-script \
     
    119118        $(QUIET)$(APPEND) $(out).ar-script 'SAVE'
    120119        $(QUIET)$(APPEND) $(out).ar-script 'END'
    121         $(QUIET)$(REDIRECT) -rti $(out).ar-script -- $(VBoxXGccX86RedHatLinux_AR) -M
     120        $(QUIET)$(REDIRECT) -rti $(out).ar-script -- $(TOOL_VBoxXGccX86RedHatLinux_AR) -M
    122121endef
    123122
    124 VBoxXGccX86RedHatLinux_LINK_PROGRAM_OUTPUT = $(outbase).map
    125 VBoxXGccX86RedHatLinux_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))
    126 VBoxXGccX86RedHatLinux_LINK_PROGRAM_DEPORD =
    127 define VBoxXGccX86RedHatLinux_LINK_PROGRAM_CMDS
    128         $(QUIET)$(VBoxXGccX86RedHatLinux_LD) $(flags) -o $(out) $(objs) \
     123TOOL_VBoxXGccX86RedHatLinux_LINK_PROGRAM_OUTPUT = $(outbase).map
     124TOOL_VBoxXGccX86RedHatLinux_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))
     125TOOL_VBoxXGccX86RedHatLinux_LINK_PROGRAM_DEPORD =
     126define TOOL_VBoxXGccX86RedHatLinux_LINK_PROGRAM_CMDS
     127        $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_LD) $(flags) -o $(out) $(objs) \
    129128                $(foreach p,$(libpath), -L$(p)) \
    130129                $(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)
    132131endef
    133132
    134 VBoxXGccX86RedHatLinux_LINK_DLL_OUTPUT = $(outbase).map
    135 VBoxXGccX86RedHatLinux_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))
    136 VBoxXGccX86RedHatLinux_LINK_DLL_DEPORD =
    137 define VBoxXGccX86RedHatLinux_LINK_DLL_CMDS
    138         $(QUIET)$(VBoxXGccX86RedHatLinux_LD) $(VBoxXGccX86RedHatLinux_LDFLAGS.dll) $(flags) -o $(out) \
    139                 $(if $(filter-out win32 os2, $(KBUILD_TARGET)),$(call VBoxXGccX86RedHatLinux_LD_SONAME,$(target),$(out))) \
     133TOOL_VBoxXGccX86RedHatLinux_LINK_DLL_OUTPUT = $(outbase).map
     134TOOL_VBoxXGccX86RedHatLinux_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))
     135TOOL_VBoxXGccX86RedHatLinux_LINK_DLL_DEPORD =
     136define 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))) \
    140139                $(objs) \
    141140                $(foreach p,$(libpath), -L$(p)) \
    142141                $(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)
    144143endef
    145144
    146 VBoxXGccX86RedHatLinux_LINK_SYSMOD_OUTPUT = $(outbase).map
    147 VBoxXGccX86RedHatLinux_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))
    148 VBoxXGccX86RedHatLinux_LINK_SYSMOD_DEPORD =
    149 define VBoxXGccX86RedHatLinux_LINK_SYSMOD_CMDS
    150         $(QUIET)$(VBoxXGccX86RedHatLinux_LD_SYSMOD) $(VBoxXGccX86RedHatLinux_LDFLAGS.sysmod) $(flags) -o $(out) $(objs) \
     145TOOL_VBoxXGccX86RedHatLinux_LINK_SYSMOD_OUTPUT = $(outbase).map
     146TOOL_VBoxXGccX86RedHatLinux_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))
     147TOOL_VBoxXGccX86RedHatLinux_LINK_SYSMOD_DEPORD =
     148define TOOL_VBoxXGccX86RedHatLinux_LINK_SYSMOD_CMDS
     149        $(QUIET)$(TOOL_VBoxXGccX86RedHatLinux_LD_SYSMOD) $(TOOL_VBoxXGccX86RedHatLinux_LDFLAGS.sysmod) $(flags) -o $(out) $(objs) \
    151150                $(foreach p,$(libpath), -L$(p)) \
    152151                $(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)
    154153endef
    155154
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette