VirtualBox

Changeset 8757 in vbox


Ignore:
Timestamp:
May 11, 2008 6:19:50 PM (17 years ago)
Author:
vboxsync
Message:

BUILD_PLATFORM* -> KBUILD_HOST*.

Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r8755 r8757  
    623623 else
    624624  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!
    626626   VBOX_GCC_TOOL := GXX32
    627627   VBOX_WITH_VBOXDRV=
    628628   VBOX_WITH_LINUX_ADDITIONS=
    629629   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)
    631631   VBOX_GCC_TOOL := GXX64
    632632   VBOX_WITH_VBOXDRV=
     
    670670PATH_DEVTOOLS ?= $(PATH_ROOT)/tools
    671671PATH_DEVTOOLS := $(abspath $(PATH_DEVTOOLS))
    672 PATH_DEVTOOLS_BLD ?= $(PATH_DEVTOOLS)/$(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH)
     672PATH_DEVTOOLS_BLD ?= $(PATH_DEVTOOLS)/$(KBUILD_HOST).$(KBUILD_HOST_ARCH)
    673673PATH_DEVTOOLS_TRG ?= $(PATH_DEVTOOLS)/$(BUILD_TARGET).$(BUILD_TARGET_ARCH)
    674674
     
    933933
    934934# libxslt XSLT processor. (see PATH_TOOL_YASM for explanation why it's temporarily located in bin.)
    935 ifeq ($(BUILD_PLATFORM),win)
     935ifeq ($(KBUILD_HOST),win)
    936936# VBOX_XSLTPROC ?= $(PATH_DEVTOOLS)/win.x86/libxslt/10114/xsltproc.exe
    937937 VBOX_XSLTPROC ?= $(PATH_DEVTOOLS)/win.x86/bin/xsltproc.exe
    938 else ifeq ($(BUILD_PLATFORM),os2)
     938else ifeq ($(KBUILD_HOST),os2)
    939939 VBOX_XSLTPROC ?= BEGINLIBPATH="$(PATH_DEVTOOLS_BLD)/bin;$$BEGINLIBPATH" $(PATH_DEVTOOLS_BLD)/bin/xsltproc.exe
    940940else
     
    946946
    947947# mkisofs
    948 ifeq ($(BUILD_PLATFORM),win)
     948ifeq ($(KBUILD_HOST),win)
    949949 VBOX_MKISOFS  ?= $(PATH_DEVTOOLS_BLD)/bin/mkisofs.exe
    950950else
     
    970970# We need to export YASM for OSE, but since it was converted to .zip we need to
    971971# 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)
     972if1of ($(KBUILD_HOST).$(KBUILD_HOST_ARCH),  win.x86 linux.x86 solaris.x86)
    973973 PATH_TOOL_YASM ?= $(PATH_DEVTOOLS_BLD)/bin
    974974endif
     
    10831083# These tests never worked on Windows because of /dev/null, so, there
    10841084# can be no harm in just dropping them until cygwin is mp safe.
    1085 ifeq ($(BUILD_PLATFORM),win)
     1085ifeq ($(KBUILD_HOST),win)
    10861086VBOX_GCC_CHECK_CC = $(2)
    10871087VBOX_GCC_CHECK_CXX = $(2)
     
    11101110endif
    11111111
    1112 ifeq ($(BUILD_PLATFORM),win)
     1112ifeq ($(KBUILD_HOST),win)
    11131113# This isn't important (yet) on windows, so cook the result until
    11141114# cygwin is feeling better.
     
    11591159# Find the compiler includes for IPRT no-crt.
    11601160# 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)
     1161ifeq ($(KBUILD_HOST),win)
    11621162# With the cygwin issues and gcc on windows returning a useless path, just skip this on windows.
    11631163        $(APPEND) '$@' 'VBOX_PATH_GCC_INCS             ?= '
     
    11781178#
    11791179ifdef VBOX_SIGNING_MODE
    1180  ifeq ($(BUILD_PLATFORM),win)
     1180 ifeq ($(KBUILD_HOST),win)
    11811181  # VBOX_PATH_SELFSIGN points to the Vista WDK bin/SelfSign directory.
    11821182  ifndef VBOX_PATH_SELFSIGN
     
    14351435 LIB_QT ?= qt-mt
    14361436endif
    1437 ifeq ($(BUILD_PLATFORM),$(BUILD_TARGET))
     1437ifeq ($(KBUILD_HOST),$(BUILD_TARGET))
    14381438 VBOX_PATH_QT_HOST ?= $(VBOX_PATH_QT)
    14391439else
     
    18371837ifdef VBOX_WITH_VBOXDRV
    18381838 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!)
    18401840 endif
    18411841endif
     
    24412441TEMPLATE_VBOXBLDPROG  = VBox Build Program
    24422442TEMPLATE_VBOXBLDPROG_DEFS                = IN_RING3
    2443 ifeq ($(BUILD_PLATFORM),win)
    2444  ifeq ($(BUILD_PLATFORM_ARCH),x86)
     2443ifeq ($(KBUILD_HOST),win)
     2444 ifeq ($(KBUILD_HOST_ARCH),x86)
    24452445  ifdef VBOX_USE_VCC80
    24462446   TEMPLATE_VBOXBLDPROG_TOOL             = VCC80X86
     
    24992499TEMPLATE_VBOXBLDPROG_LDFLAGS.x86         = -m32
    25002500TEMPLATE_VBOXBLDPROG_LDFLAGS.amd64       = -m64
    2501  ifeq ($(BUILD_PLATFORM),linux)
     2501 ifeq ($(KBUILD_HOST),linux)
    25022502TEMPLATE_VBOXBLDPROG_LIBS                = pthread m rt dl
    2503  else ifeq ($(BUILD_PLATFORM),os2)
     2503 else ifeq ($(KBUILD_HOST),os2)
    25042504TEMPLATE_VBOXBLDPROG_TOOL                = GXX3OMF
    25052505TEMPLATE_VBOXBLDPROG_LIBS                = socket iconv
    2506  else ifeq ($(BUILD_PLATFORM),darwin)
     2506 else ifeq ($(KBUILD_HOST),darwin)
    25072507TEMPLATE_VBOXBLDPROG_TOOL                = GXX4MACHO
    25082508TEMPLATE_VBOXBLDPROG_LIBS                =
    2509  else if1of ($(BUILD_PLATFORM), freebsd netbsd openbsd)
     2509 else if1of ($(KBUILD_HOST), freebsd netbsd openbsd)
    25102510TEMPLATE_VBOXBLDPROG_TOOL                = GXX3
    25112511TEMPLATE_VBOXBLDPROG_LIBS                =
    2512  else ifeq ($(BUILD_PLATFORM),solaris)
     2512 else ifeq ($(KBUILD_HOST),solaris)
    25132513TEMPLATE_VBOXBLDPROG_TOOL                = GXX3PLAIN
    25142514TEMPLATE_VBOXBLDPROG_LIBS                = rt
    25152515 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!)
    25172517 endif
    25182518
     
    26532653# (Some (old) Wine versions fails loading msvcrt.dll from the VCC bin directory.)
    26542654#
    2655 ifneq ($(BUILD_PLATFORM),win)
     2655ifneq ($(KBUILD_HOST),win)
    26562656 TOOL_VCC80X86_RC   := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe
    26572657 TOOL_VCC80AMD64_RC := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe
  • trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk

    r8155 r8757  
    2424include $(PATH_KBUILD)/subheader.kmk
    2525
    26 ifeq ($(BUILD_PLATFORM),os2)
     26ifeq ($(KBUILD_HOST),os2)
    2727 ifdef VBOX_WITH_OS2_ADDITIONS
    2828  PROGRAMS += VBoxService
  • trunk/src/VBox/Additions/freebsd/Makefile.kmk

    r8155 r8757  
    2424include $(PATH_KBUILD)/subheader.kmk
    2525
    26 ifneq ($(BUILD_PLATFORM),freebsd)
     26ifneq ($(KBUILD_HOST),freebsd)
    2727$(error "The FreeBSD guest additions installer can only be built on FreeBSD!")
    2828endif
  • trunk/src/VBox/Additions/freebsd/vboxvfs/Makefile.kmk

    r8155 r8757  
    2424include $(PATH_KBUILD)/subheader.kmk
    2525
    26 ifneq ($(BUILD_PLATFORM),freebsd)
     26ifneq ($(KBUILD_HOST),freebsd)
    2727$(error "The FreeBSD guest additions can only be built on FreeBSD!")
    2828endif
  • trunk/src/VBox/Additions/solaris/Makefile.kmk

    r8407 r8757  
    2424include $(PATH_KBUILD)/subheader.kmk
    2525
    26 ifneq ($(BUILD_PLATFORM),solaris)
     26ifneq ($(KBUILD_HOST),solaris)
    2727$(error "The Solaris guest additions installer can only be built on Solaris!")
    2828endif
    2929
    30 ifeq ($(BUILD_PLATFORM),solaris)
     30ifeq ($(KBUILD_HOST),solaris)
    3131 include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
    3232endif
  • trunk/src/VBox/Devices/testcase/Makefile.kmk

    r8155 r8757  
    2828# validation testcases. Perhaps a bit hackish, but extremely useful.
    2929#
    30 ifeq ($(BUILD_TARGET),$(BUILD_PLATFORM))
    31  ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(BUILD_PLATFORM_ARCH)),)
     30ifeq ($(BUILD_TARGET),$(KBUILD_HOST))
     31 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)
    3232  OTHERS += \
    3333        $(PATH_TARGET)/tstDeviceStructSize.run
  • trunk/src/VBox/HostServices/SharedFolders/testcase/Makefile.kmk

    r8155 r8757  
    4343endif # VBOX_WITH_TESTCASES
    4444
    45 ifeq ($(BUILD_TARGET),$(BUILD_PLATFORM))
    46  ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(BUILD_PLATFORM_ARCH)),)
     45ifeq ($(BUILD_TARGET),$(KBUILD_HOST))
     46 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)
    4747   OTHERS += \
    4848    $(PATH_TARGET)/tstShflSizes.run
  • trunk/src/VBox/Installer/Makefile.kmk

    r8155 r8757  
    2323include $(PATH_KBUILD)/header.kmk
    2424
    25 ifeq ($(BUILD_PLATFORM),win) # guard when cross-compiling.
     25ifeq ($(KBUILD_HOST),win) # guard when cross-compiling.
    2626 SUBDIRS.win = win
    2727endif
    28 ifeq ($(BUILD_PLATFORM),linux)
     28ifeq ($(KBUILD_HOST),linux)
    2929 SUBDIRS.linux = linux
    3030endif
    31 ifeq ($(BUILD_PLATFORM),darwin)
     31ifeq ($(KBUILD_HOST),darwin)
    3232 SUBDIRS.darwin = darwin
    3333endif
    34 ifeq ($(BUILD_PLATFORM),solaris)
     34ifeq ($(KBUILD_HOST),solaris)
    3535 SUBDIRS.solaris = solaris
    3636endif
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r8469 r8757  
    2323include $(PATH_KBUILD)/header.kmk
    2424
    25 ifneq ($(BUILD_PLATFORM),linux)
     25ifneq ($(KBUILD_HOST),linux)
    2626$(error "The Linux installer can only be built on Linux!") # yeah, right.
    2727endif
  • trunk/src/VBox/Installer/solaris/Makefile.kmk

    r8710 r8757  
    2323include $(PATH_KBUILD)/header.kmk
    2424
    25 ifneq ($(BUILD_PLATFORM),solaris)
     25ifneq ($(KBUILD_HOST),solaris)
    2626$(error "The Solaris installer can only be built on Solaris!") # yeah, right.
    2727endif
  • trunk/src/VBox/Runtime/Makefile.kmk

    r8731 r8757  
    542542RuntimeGuestR3_DEFS                     := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS))
    543543RuntimeGuestR3_DEFS.$(BUILD_TARGET)     := $(RuntimeR3_DEFS.$(BUILD_TARGET))
    544 RuntimeGuestR3_DEFS.$(BUILD_PLATFORM)   := $(RuntimeR3_DEFS.$(BUILD_PLATFORM))
     544RuntimeGuestR3_DEFS.$(KBUILD_HOST)      := $(RuntimeR3_DEFS.$(KBUILD_HOST))
    545545RuntimeGuestR3_INCS                     := $(RuntimeR3_INCS)
    546546RuntimeGuestR3_INCS.$(BUILD_TARGET)     := $(RuntimeR3_INCS.$(BUILD_TARGET))
    547 RuntimeGuestR3_INCS.$(BUILD_PLATFORM)   := $(RuntimeR3_INCS.$(BUILD_PLATFORM))
     547RuntimeGuestR3_INCS.$(KBUILD_HOST)   := $(RuntimeR3_INCS.$(KBUILD_HOST))
    548548RuntimeGuestR3_SOURCES                  := $(filter-out \
    549549        common/time/timesupref.cpp \
     
    556556        VBox/logbackdoor.cpp
    557557RuntimeGuestR3_SOURCES.$(BUILD_TARGET)  := $(RuntimeR3_SOURCES.$(BUILD_TARGET))
    558 RuntimeGuestR3_SOURCES.$(BUILD_PLATFORM):= $(RuntimeR3_SOURCES.$(BUILD_PLATFORM))
     558RuntimeGuestR3_SOURCES.$(KBUILD_HOST):= $(RuntimeR3_SOURCES.$(KBUILD_HOST))
    559559RuntimeGuestR3_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))
     560RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(BUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(BUILD_TARGET_ARCH))
    561561RuntimeGuestR3_SOURCES.$(BUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(BUILD_TARGET).x86)
    562 RuntimeGuestR3_SOURCES.$(BUILD_PLATFORM).x86 := $(RuntimeR3_SOURCES.$(BUILD_PLATFORM).x86)
     562RuntimeGuestR3_SOURCES.$(KBUILD_HOST).x86 := $(RuntimeR3_SOURCES.$(KBUILD_HOST).x86)
    563563
    564564
     
    573573RuntimeGuestR3Mini_DEFS                     := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) RT_MINI
    574574RuntimeGuestR3Mini_DEFS.$(BUILD_TARGET)     := $(RuntimeR3_DEFS.$(BUILD_TARGET))
    575 RuntimeGuestR3Mini_DEFS.$(BUILD_PLATFORM)   := $(RuntimeR3_DEFS.$(BUILD_PLATFORM))
     575RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST)   := $(RuntimeR3_DEFS.$(KBUILD_HOST))
    576576RuntimeGuestR3Mini_INCS                     := $(RuntimeR3_INCS)
    577577RuntimeGuestR3Mini_INCS.$(BUILD_TARGET)     := $(RuntimeR3_INCS.$(BUILD_TARGET))
    578 RuntimeGuestR3Mini_INCS.$(BUILD_PLATFORM)   := $(RuntimeR3_INCS.$(BUILD_PLATFORM))
     578RuntimeGuestR3Mini_INCS.$(KBUILD_HOST)   := $(RuntimeR3_INCS.$(KBUILD_HOST))
    579579RuntimeGuestR3Mini_SOURCES = \
    580580        common/err/errmsg.cpp \
  • trunk/src/VBox/VMM/Makefile.kmk

    r8636 r8757  
    201201VBoxVMM_LDFLAGS.solaris = -mimpure-text
    202202ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
    203  ifeq ($(BUILD_PLATFORM), linux)
     203 ifeq ($(KBUILD_HOST), linux)
    204204VBoxVMM_LIBS += aio
    205205 endif
  • trunk/src/VBox/VMM/testcase/Makefile.kmk

    r8155 r8757  
    4747# validation testcases. Perhaps a bit hackish, but extremely useful.
    4848#
    49 ifeq ($(BUILD_TARGET),$(BUILD_PLATFORM))
    50  ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(BUILD_PLATFORM_ARCH)),)
     49ifeq ($(BUILD_TARGET),$(KBUILD_HOST))
     50 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(BUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)
    5151  OTHERS          += \
    5252        $(PATH_TARGET)/tstAsmStructs.run \
     
    206206#
    207207
    208 ifeq ($(BUILD_PLATFORM),win)
     208ifeq ($(KBUILD_HOST),win)
    209209 include $(PATH_KBUILD)/tools/MINGW32.kmk
    210210 VBOX_NM ?= $(PATH_TOOL_MINGW32)/bin/nm.exe -p
  • trunk/src/recompiler/Makefile.kmk

    r8489 r8757  
    7373# The dyngen build tool.
    7474#
    75 ifeq ($(BUILD_PLATFORM),win)
     75ifeq ($(KBUILD_HOST),win)
    7676 dyngen_TOOL          = MINGW32
    7777 dyngen_SDKS          = W32API
     
    241241testmath_TOOL.win.x86   = MINGW32
    242242testmath_SDKS.win.x86   = W32API
    243 ifeq ($(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH),win.amd64)
     243ifeq ($(KBUILD_HOST).$(KBUILD_HOST_ARCH),win.amd64)
    244244 # 64-bit windows: Pretend to be 32-bit.
    245245 testmath_BLD_TRG       = win32
     
    248248endif
    249249testmath_ASTOOL         = $(VBOX_ASTOOL)
    250 ifeq ($(filter-out win32 win64,$(BUILD_PLATFORM)),)
     250ifeq ($(filter-out win32 win64,$(KBUILD_HOST)),)
    251251 testmath_ASFLAGS        = -f win32 -DNASM_FORMAT_PE $(VBOX_ASFLAGS) -w+orphan-labels
    252252else
     
    442442DYNGEN = $(PATH_dyngen)/dyngen$(HOSTSUFF_EXE)
    443443DYNGEN_EXEC = $(DYNGEN)
    444 ifneq ($(BUILD_PLATFORM),$(BUILD_TARGET)) # hack for crosscompiling.
     444ifneq ($(KBUILD_HOST),$(BUILD_TARGET)) # hack for crosscompiling.
    445445 ifeq ($(BUILD_TARGET),win)
    446446  DYNGEN       = $(PATH_dyngen)/dyngen.exe
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