Changeset 8757 in vbox
- Timestamp:
- May 11, 2008 6:19:50 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r8755 r8757 623 623 else 624 624 VBOX_GCC_TOOL := GXX3 625 ifeq ($(BUILD_TARGET_ARCH).$( BUILD_PLATFORM_ARCH),x86.amd64)625 ifeq ($(BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH),x86.amd64) ## @todo mixing target/host here! 626 626 VBOX_GCC_TOOL := GXX32 627 627 VBOX_WITH_VBOXDRV= 628 628 VBOX_WITH_LINUX_ADDITIONS= 629 629 VBOX_WITH_WIN32_ADDITIONS= 630 else ifeq ($(BUILD_TARGET_ARCH).$( BUILD_PLATFORM_ARCH),amd64.x86)630 else ifeq ($(BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH),amd64.x86) 631 631 VBOX_GCC_TOOL := GXX64 632 632 VBOX_WITH_VBOXDRV= … … 670 670 PATH_DEVTOOLS ?= $(PATH_ROOT)/tools 671 671 PATH_DEVTOOLS := $(abspath $(PATH_DEVTOOLS)) 672 PATH_DEVTOOLS_BLD ?= $(PATH_DEVTOOLS)/$( BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH)672 PATH_DEVTOOLS_BLD ?= $(PATH_DEVTOOLS)/$(KBUILD_HOST).$(KBUILD_HOST_ARCH) 673 673 PATH_DEVTOOLS_TRG ?= $(PATH_DEVTOOLS)/$(BUILD_TARGET).$(BUILD_TARGET_ARCH) 674 674 … … 933 933 934 934 # libxslt XSLT processor. (see PATH_TOOL_YASM for explanation why it's temporarily located in bin.) 935 ifeq ($( BUILD_PLATFORM),win)935 ifeq ($(KBUILD_HOST),win) 936 936 # VBOX_XSLTPROC ?= $(PATH_DEVTOOLS)/win.x86/libxslt/10114/xsltproc.exe 937 937 VBOX_XSLTPROC ?= $(PATH_DEVTOOLS)/win.x86/bin/xsltproc.exe 938 else ifeq ($( BUILD_PLATFORM),os2)938 else ifeq ($(KBUILD_HOST),os2) 939 939 VBOX_XSLTPROC ?= BEGINLIBPATH="$(PATH_DEVTOOLS_BLD)/bin;$$BEGINLIBPATH" $(PATH_DEVTOOLS_BLD)/bin/xsltproc.exe 940 940 else … … 946 946 947 947 # mkisofs 948 ifeq ($( BUILD_PLATFORM),win)948 ifeq ($(KBUILD_HOST),win) 949 949 VBOX_MKISOFS ?= $(PATH_DEVTOOLS_BLD)/bin/mkisofs.exe 950 950 else … … 970 970 # We need to export YASM for OSE, but since it was converted to .zip we need to 971 971 # allow for the location used by the zip to be properly cleaned up first. 972 if1of ($( BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH), win.x86 linux.x86 solaris.x86)972 if1of ($(KBUILD_HOST).$(KBUILD_HOST_ARCH), win.x86 linux.x86 solaris.x86) 973 973 PATH_TOOL_YASM ?= $(PATH_DEVTOOLS_BLD)/bin 974 974 endif … … 1083 1083 # These tests never worked on Windows because of /dev/null, so, there 1084 1084 # can be no harm in just dropping them until cygwin is mp safe. 1085 ifeq ($( BUILD_PLATFORM),win)1085 ifeq ($(KBUILD_HOST),win) 1086 1086 VBOX_GCC_CHECK_CC = $(2) 1087 1087 VBOX_GCC_CHECK_CXX = $(2) … … 1110 1110 endif 1111 1111 1112 ifeq ($( BUILD_PLATFORM),win)1112 ifeq ($(KBUILD_HOST),win) 1113 1113 # This isn't important (yet) on windows, so cook the result until 1114 1114 # cygwin is feeling better. … … 1159 1159 # Find the compiler includes for IPRT no-crt. 1160 1160 # Note that `$(dir $(gcc -print-libgcc-file-name))/include does not work for a 64-bit cross build on a 32-bit build host. 1161 ifeq ($( BUILD_PLATFORM),win)1161 ifeq ($(KBUILD_HOST),win) 1162 1162 # With the cygwin issues and gcc on windows returning a useless path, just skip this on windows. 1163 1163 $(APPEND) '$@' 'VBOX_PATH_GCC_INCS ?= ' … … 1178 1178 # 1179 1179 ifdef VBOX_SIGNING_MODE 1180 ifeq ($( BUILD_PLATFORM),win)1180 ifeq ($(KBUILD_HOST),win) 1181 1181 # VBOX_PATH_SELFSIGN points to the Vista WDK bin/SelfSign directory. 1182 1182 ifndef VBOX_PATH_SELFSIGN … … 1435 1435 LIB_QT ?= qt-mt 1436 1436 endif 1437 ifeq ($( BUILD_PLATFORM),$(BUILD_TARGET))1437 ifeq ($(KBUILD_HOST),$(BUILD_TARGET)) 1438 1438 VBOX_PATH_QT_HOST ?= $(VBOX_PATH_QT) 1439 1439 else … … 1837 1837 ifdef VBOX_WITH_VBOXDRV 1838 1838 ifndef TEMPLATE_VBOXR0DRV_TOOL 1839 $(warning Warning: VBox Build: Target $( BUILD_PLATFORM) is not officially supported!)1839 $(warning Warning: VBox Build: Target $(KBUILD_HOST) is not officially supported!) 1840 1840 endif 1841 1841 endif … … 2441 2441 TEMPLATE_VBOXBLDPROG = VBox Build Program 2442 2442 TEMPLATE_VBOXBLDPROG_DEFS = IN_RING3 2443 ifeq ($( BUILD_PLATFORM),win)2444 ifeq ($( BUILD_PLATFORM_ARCH),x86)2443 ifeq ($(KBUILD_HOST),win) 2444 ifeq ($(KBUILD_HOST_ARCH),x86) 2445 2445 ifdef VBOX_USE_VCC80 2446 2446 TEMPLATE_VBOXBLDPROG_TOOL = VCC80X86 … … 2499 2499 TEMPLATE_VBOXBLDPROG_LDFLAGS.x86 = -m32 2500 2500 TEMPLATE_VBOXBLDPROG_LDFLAGS.amd64 = -m64 2501 ifeq ($( BUILD_PLATFORM),linux)2501 ifeq ($(KBUILD_HOST),linux) 2502 2502 TEMPLATE_VBOXBLDPROG_LIBS = pthread m rt dl 2503 else ifeq ($( BUILD_PLATFORM),os2)2503 else ifeq ($(KBUILD_HOST),os2) 2504 2504 TEMPLATE_VBOXBLDPROG_TOOL = GXX3OMF 2505 2505 TEMPLATE_VBOXBLDPROG_LIBS = socket iconv 2506 else ifeq ($( BUILD_PLATFORM),darwin)2506 else ifeq ($(KBUILD_HOST),darwin) 2507 2507 TEMPLATE_VBOXBLDPROG_TOOL = GXX4MACHO 2508 2508 TEMPLATE_VBOXBLDPROG_LIBS = 2509 else if1of ($( BUILD_PLATFORM), freebsd netbsd openbsd)2509 else if1of ($(KBUILD_HOST), freebsd netbsd openbsd) 2510 2510 TEMPLATE_VBOXBLDPROG_TOOL = GXX3 2511 2511 TEMPLATE_VBOXBLDPROG_LIBS = 2512 else ifeq ($( BUILD_PLATFORM),solaris)2512 else ifeq ($(KBUILD_HOST),solaris) 2513 2513 TEMPLATE_VBOXBLDPROG_TOOL = GXX3PLAIN 2514 2514 TEMPLATE_VBOXBLDPROG_LIBS = rt 2515 2515 else 2516 $(warning Warning: VBOX Build: Target $( BUILD_PLATFORM) is not officially supported!)2516 $(warning Warning: VBOX Build: Target $(KBUILD_HOST) is not officially supported!) 2517 2517 endif 2518 2518 … … 2653 2653 # (Some (old) Wine versions fails loading msvcrt.dll from the VCC bin directory.) 2654 2654 # 2655 ifneq ($( BUILD_PLATFORM),win)2655 ifneq ($(KBUILD_HOST),win) 2656 2656 TOOL_VCC80X86_RC := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe 2657 2657 TOOL_VCC80AMD64_RC := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe -
trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk
r8155 r8757 24 24 include $(PATH_KBUILD)/subheader.kmk 25 25 26 ifeq ($( BUILD_PLATFORM),os2)26 ifeq ($(KBUILD_HOST),os2) 27 27 ifdef VBOX_WITH_OS2_ADDITIONS 28 28 PROGRAMS += VBoxService -
trunk/src/VBox/Additions/freebsd/Makefile.kmk
r8155 r8757 24 24 include $(PATH_KBUILD)/subheader.kmk 25 25 26 ifneq ($( BUILD_PLATFORM),freebsd)26 ifneq ($(KBUILD_HOST),freebsd) 27 27 $(error "The FreeBSD guest additions installer can only be built on FreeBSD!") 28 28 endif -
trunk/src/VBox/Additions/freebsd/vboxvfs/Makefile.kmk
r8155 r8757 24 24 include $(PATH_KBUILD)/subheader.kmk 25 25 26 ifneq ($( BUILD_PLATFORM),freebsd)26 ifneq ($(KBUILD_HOST),freebsd) 27 27 $(error "The FreeBSD guest additions can only be built on FreeBSD!") 28 28 endif -
trunk/src/VBox/Additions/solaris/Makefile.kmk
r8407 r8757 24 24 include $(PATH_KBUILD)/subheader.kmk 25 25 26 ifneq ($( BUILD_PLATFORM),solaris)26 ifneq ($(KBUILD_HOST),solaris) 27 27 $(error "The Solaris guest additions installer can only be built on Solaris!") 28 28 endif 29 29 30 ifeq ($( BUILD_PLATFORM),solaris)30 ifeq ($(KBUILD_HOST),solaris) 31 31 include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk 32 32 endif -
trunk/src/VBox/Devices/testcase/Makefile.kmk
r8155 r8757 28 28 # validation testcases. Perhaps a bit hackish, but extremely useful. 29 29 # 30 ifeq ($(BUILD_TARGET),$( BUILD_PLATFORM))31 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$( BUILD_PLATFORM_ARCH)),)30 ifeq ($(BUILD_TARGET),$(KBUILD_HOST)) 31 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),) 32 32 OTHERS += \ 33 33 $(PATH_TARGET)/tstDeviceStructSize.run -
trunk/src/VBox/HostServices/SharedFolders/testcase/Makefile.kmk
r8155 r8757 43 43 endif # VBOX_WITH_TESTCASES 44 44 45 ifeq ($(BUILD_TARGET),$( BUILD_PLATFORM))46 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$( BUILD_PLATFORM_ARCH)),)45 ifeq ($(BUILD_TARGET),$(KBUILD_HOST)) 46 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),) 47 47 OTHERS += \ 48 48 $(PATH_TARGET)/tstShflSizes.run -
trunk/src/VBox/Installer/Makefile.kmk
r8155 r8757 23 23 include $(PATH_KBUILD)/header.kmk 24 24 25 ifeq ($( BUILD_PLATFORM),win) # guard when cross-compiling.25 ifeq ($(KBUILD_HOST),win) # guard when cross-compiling. 26 26 SUBDIRS.win = win 27 27 endif 28 ifeq ($( BUILD_PLATFORM),linux)28 ifeq ($(KBUILD_HOST),linux) 29 29 SUBDIRS.linux = linux 30 30 endif 31 ifeq ($( BUILD_PLATFORM),darwin)31 ifeq ($(KBUILD_HOST),darwin) 32 32 SUBDIRS.darwin = darwin 33 33 endif 34 ifeq ($( BUILD_PLATFORM),solaris)34 ifeq ($(KBUILD_HOST),solaris) 35 35 SUBDIRS.solaris = solaris 36 36 endif -
trunk/src/VBox/Installer/linux/Makefile.kmk
r8469 r8757 23 23 include $(PATH_KBUILD)/header.kmk 24 24 25 ifneq ($( BUILD_PLATFORM),linux)25 ifneq ($(KBUILD_HOST),linux) 26 26 $(error "The Linux installer can only be built on Linux!") # yeah, right. 27 27 endif -
trunk/src/VBox/Installer/solaris/Makefile.kmk
r8710 r8757 23 23 include $(PATH_KBUILD)/header.kmk 24 24 25 ifneq ($( BUILD_PLATFORM),solaris)25 ifneq ($(KBUILD_HOST),solaris) 26 26 $(error "The Solaris installer can only be built on Solaris!") # yeah, right. 27 27 endif -
trunk/src/VBox/Runtime/Makefile.kmk
r8731 r8757 542 542 RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) 543 543 RuntimeGuestR3_DEFS.$(BUILD_TARGET) := $(RuntimeR3_DEFS.$(BUILD_TARGET)) 544 RuntimeGuestR3_DEFS.$( BUILD_PLATFORM) := $(RuntimeR3_DEFS.$(BUILD_PLATFORM))544 RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST)) 545 545 RuntimeGuestR3_INCS := $(RuntimeR3_INCS) 546 546 RuntimeGuestR3_INCS.$(BUILD_TARGET) := $(RuntimeR3_INCS.$(BUILD_TARGET)) 547 RuntimeGuestR3_INCS.$( BUILD_PLATFORM) := $(RuntimeR3_INCS.$(BUILD_PLATFORM))547 RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST)) 548 548 RuntimeGuestR3_SOURCES := $(filter-out \ 549 549 common/time/timesupref.cpp \ … … 556 556 VBox/logbackdoor.cpp 557 557 RuntimeGuestR3_SOURCES.$(BUILD_TARGET) := $(RuntimeR3_SOURCES.$(BUILD_TARGET)) 558 RuntimeGuestR3_SOURCES.$( BUILD_PLATFORM):= $(RuntimeR3_SOURCES.$(BUILD_PLATFORM))558 RuntimeGuestR3_SOURCES.$(KBUILD_HOST):= $(RuntimeR3_SOURCES.$(KBUILD_HOST)) 559 559 RuntimeGuestR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)) 560 RuntimeGuestR3_SOURCES.$( BUILD_PLATFORM).$(BUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(BUILD_PLATFORM).$(BUILD_TARGET_ARCH))560 RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(BUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(BUILD_TARGET_ARCH)) 561 561 RuntimeGuestR3_SOURCES.$(BUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(BUILD_TARGET).x86) 562 RuntimeGuestR3_SOURCES.$( BUILD_PLATFORM).x86 := $(RuntimeR3_SOURCES.$(BUILD_PLATFORM).x86)562 RuntimeGuestR3_SOURCES.$(KBUILD_HOST).x86 := $(RuntimeR3_SOURCES.$(KBUILD_HOST).x86) 563 563 564 564 … … 573 573 RuntimeGuestR3Mini_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) RT_MINI 574 574 RuntimeGuestR3Mini_DEFS.$(BUILD_TARGET) := $(RuntimeR3_DEFS.$(BUILD_TARGET)) 575 RuntimeGuestR3Mini_DEFS.$( BUILD_PLATFORM) := $(RuntimeR3_DEFS.$(BUILD_PLATFORM))575 RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST)) 576 576 RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS) 577 577 RuntimeGuestR3Mini_INCS.$(BUILD_TARGET) := $(RuntimeR3_INCS.$(BUILD_TARGET)) 578 RuntimeGuestR3Mini_INCS.$( BUILD_PLATFORM) := $(RuntimeR3_INCS.$(BUILD_PLATFORM))578 RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST)) 579 579 RuntimeGuestR3Mini_SOURCES = \ 580 580 common/err/errmsg.cpp \ -
trunk/src/VBox/VMM/Makefile.kmk
r8636 r8757 201 201 VBoxVMM_LDFLAGS.solaris = -mimpure-text 202 202 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION 203 ifeq ($( BUILD_PLATFORM), linux)203 ifeq ($(KBUILD_HOST), linux) 204 204 VBoxVMM_LIBS += aio 205 205 endif -
trunk/src/VBox/VMM/testcase/Makefile.kmk
r8155 r8757 47 47 # validation testcases. Perhaps a bit hackish, but extremely useful. 48 48 # 49 ifeq ($(BUILD_TARGET),$( BUILD_PLATFORM))50 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$( BUILD_PLATFORM_ARCH)),)49 ifeq ($(BUILD_TARGET),$(KBUILD_HOST)) 50 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),) 51 51 OTHERS += \ 52 52 $(PATH_TARGET)/tstAsmStructs.run \ … … 206 206 # 207 207 208 ifeq ($( BUILD_PLATFORM),win)208 ifeq ($(KBUILD_HOST),win) 209 209 include $(PATH_KBUILD)/tools/MINGW32.kmk 210 210 VBOX_NM ?= $(PATH_TOOL_MINGW32)/bin/nm.exe -p -
trunk/src/recompiler/Makefile.kmk
r8489 r8757 73 73 # The dyngen build tool. 74 74 # 75 ifeq ($( BUILD_PLATFORM),win)75 ifeq ($(KBUILD_HOST),win) 76 76 dyngen_TOOL = MINGW32 77 77 dyngen_SDKS = W32API … … 241 241 testmath_TOOL.win.x86 = MINGW32 242 242 testmath_SDKS.win.x86 = W32API 243 ifeq ($( BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH),win.amd64)243 ifeq ($(KBUILD_HOST).$(KBUILD_HOST_ARCH),win.amd64) 244 244 # 64-bit windows: Pretend to be 32-bit. 245 245 testmath_BLD_TRG = win32 … … 248 248 endif 249 249 testmath_ASTOOL = $(VBOX_ASTOOL) 250 ifeq ($(filter-out win32 win64,$( BUILD_PLATFORM)),)250 ifeq ($(filter-out win32 win64,$(KBUILD_HOST)),) 251 251 testmath_ASFLAGS = -f win32 -DNASM_FORMAT_PE $(VBOX_ASFLAGS) -w+orphan-labels 252 252 else … … 442 442 DYNGEN = $(PATH_dyngen)/dyngen$(HOSTSUFF_EXE) 443 443 DYNGEN_EXEC = $(DYNGEN) 444 ifneq ($( BUILD_PLATFORM),$(BUILD_TARGET)) # hack for crosscompiling.444 ifneq ($(KBUILD_HOST),$(BUILD_TARGET)) # hack for crosscompiling. 445 445 ifeq ($(BUILD_TARGET),win) 446 446 DYNGEN = $(PATH_dyngen)/dyngen.exe
Note:
See TracChangeset
for help on using the changeset viewer.