VirtualBox

Changeset 329 in kBuild for trunk


Ignore:
Timestamp:
Oct 28, 2005 11:36:23 PM (19 years ago)
Author:
bird
Message:

Fixed a couple of defaults so it all works right on amd64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r306 r329  
    117117$(error kBuild: BUILD_PLATFORM value '$(BUILD_PLATFORM)' was not recongized!)
    118118endif
     119
     120# Fill in defaults if needed.
     121ifndef BUILD_PLATFORM_ARCH
    119122BUILD_PLATFORM_ARCH   := x86
     123endif
     124ifndef BUILD_PLATFORM_CPU
    120125BUILD_PLATFORM_CPU    := i586
     126endif
    121127
    122128
     
    173179endif
    174180endif
     181
     182# Fill in defaults if needed.
     183ifndef BUILD_TARGET_ARCH
    175184BUILD_TARGET_ARCH   := x86
     185endif
     186ifndef BUILD_TARGET_CPU
    176187BUILD_TARGET_CPU    := i586
     188endif
    177189
    178190# Adjust the DEPTH definition first
     
    210222endif
    211223ifndef PATH_OUT
     224ifeq ($(BUILD_PLATFORM_ARCH),x86)
    212225ifdef BUILD_TARGET_SUB # (BUILD_TARGET_SUB is not currently recognized by kBuild in any other places.)
    213226PATH_OUT            := $(PATH_OUT_BASE)/$(BUILD_TARGET)/$(BUILD_TARGET_SUB)/$(BUILD_TYPE)
     
    215228PATH_OUT            := $(PATH_OUT_BASE)/$(BUILD_TARGET)/$(BUILD_TYPE)
    216229endif
    217 endif
     230else  # !x86
     231ifdef BUILD_TARGET_SUB # (BUILD_TARGET_SUB is not currently recognized by kBuild in any other places.)
     232PATH_OUT            := $(PATH_OUT_BASE)/$(BUILD_TARGET)/$(BUILD_TARGET_ARCH)/$(BUILD_TARGET_SUB)/$(BUILD_TYPE)
     233else
     234PATH_OUT            := $(PATH_OUT_BASE)/$(BUILD_TARGET)/$(BUILD_TARGET_ARCH)/$(BUILD_TYPE)
     235endif
     236endif # !x86
     237endif # !define PATH_OUT
    218238PATH_OBJ            := $(PATH_OUT)/obj
    219239PATH_TARGET         := $(PATH_OBJ)/$(CURSUBDIR)
     
    237257PATH_KBUILD         := $(abspath $(PATH_KBUILD))
    238258endif
    239 # kBuild tools
    240 PATH_TOOLS_W32      := $(PATH_KBUILD)/bin/x86.win32
    241 PATH_TOOLS_LNX      := $(PATH_KBUILD)/bin/x86.linux
    242 PATH_TOOLS_OS2      := $(PATH_KBUILD)/bin/x86.os2
    243 PATH_TOOLS_FREEBSD  := $(PATH_KBUILD)/bin/amd64.freebsd
    244259# kBuild files which might be of interest.
    245260FILE_KBUILD_HEADER  := $(PATH_KBUILD)/header.kmk
     
    261276# Build platform setup.
    262277#
     278PATH_TOOLS          := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM_ARCH).$(BUILD_PLATFORM)
     279
    263280# OS/2
    264281ifeq ($(BUILD_PLATFORM),os2)
    265 PATH_TOOLS          := $(PATH_TOOLS_OS2)
    266282EXEC_X86_WIN32      := innopec.exe
    267283HOSTSUFF_EXE        := .exe
     
    270286# Linux
    271287ifeq ($(BUILD_PLATFORM),linux)
    272 PATH_TOOLS          := $(PATH_TOOLS_LNX)
    273288EXEC_X86_WIN32      := wine
    274289HOSTSUFF_EXE        :=
     
    277292# Win32
    278293ifeq ($(BUILD_PLATFORM),win32)
    279 PATH_TOOLS          := $(PATH_TOOLS_W32)
    280294EXEC_X86_WIN32      :=
    281295HOSTSUFF_EXE        := .exe
     
    284298# FreeBSD
    285299ifeq ($(BUILD_PLATFORM),freebsd)
    286 PATH_TOOLS          := $(PATH_TOOLS_FREEBSD)
    287300EXEC_X86_WIN32      := wine
    288301HOSTSUFF_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