VirtualBox

Changeset 3543 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
Jul 11, 2007 9:34:55 AM (17 years ago)
Author:
vboxsync
Message:

added L4 settings for cross-compiling L4/AMD64 binaries on 32-bit build hosts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r3533 r3543  
    550550
    551551#
    552 # L4.
     552# L4-specific settings.
    553553#
    554554ifdef L4_DIR
    555  # default CPU type
    556  ifeq ($(L4_CPU),)
    557   L4_CPU = 586
    558  endif
    559  ifeq ($(L4_API),)
    560   L4_API = l4v2
    561  endif
    562  L4_OBJ := $(L4_DIR)/build-x86-$(L4_CPU)-$(L4_API)
    563555 ifeq ($(BUILD_TARGET),l4)
    564   L4LINUX26_INCDIR := \
    565         $(L4LINUX26_DIR)/include \
    566         $(L4LINUX26_DIR)/include/asm-l4/i386-arch
     556  L4_API  ?= l4v2
     557  L4_ARCH ?= $(BUILD_TARGET_ARCH)
     558  ifeq ($(L4_ARCH),x86)
     559   L4_CPU ?= 586
     560   L4LINUX26_INCDIR := $(L4LINUX26_DIR)/include \
     561                       $(L4LINUX26_DIR)/include/asm-l4/i386-arch
     562  else ifeq ($(L4_ARCH),amd64)
     563   L4_CPU ?= k8
     564   L4LINUX26_INCDIR := $(L4LINUX26_DIR)/include
     565   # no red zone for L4 because of IPC bindings
     566   CFLAGS.l4   = -mno-red-zone
     567   CXXFLAGS.l4 = -mno-red-zone
     568  else
     569   $(error L4_ARCH=$(L4_ARCH))
     570  endif
     571  L4_OBJ := $(L4_DIR)/build-$(L4_ARCH)-$(L4_CPU)-$(L4_API)
    567572  # support splitted Linux kernels (make O=<build directory>)
    568573  kernelsrc := $(shell $(SED_EXT) -ne 's+^KERNELSRC.*= *\(.*\)+\1+p' $(L4LINUX26_DIR)/Makefile)
    569574  ifneq ($(kernelsrc),)
    570575   kernelpath := $(realpath $(kernelsrc))
    571    L4LINUX26_INCDIR += \
    572         $(L4LINUX26_DIR)/include2 \
    573         $(kernelpath)/include
     576    L4LINUX26_INCDIR += $(L4LINUX26_DIR)/include2 $(kernelpath)/include
    574577  endif
    575578  L4_INCDIR := \
    576         $(L4_OBJ)/include/uclibc++ \
    577         $(L4_OBJ)/include/x86/uclibc \
    578         $(L4_OBJ)/include/uclibc \
    579         $(L4LINUX26_INCDIR) \
    580         $(L4_OBJ)/include/x86/$(L4_API) \
    581         $(L4_OBJ)/include/x86 \
    582         $(L4_OBJ)/include \
    583         $(L4_DIR)/tool/dice/include
     579    $(L4_OBJ)/include/uclibc++ \
     580    $(L4_OBJ)/include/$(L4_ARCH)/uclibc \
     581    $(L4_OBJ)/include/uclibc \
     582    $(L4LINUX26_INCDIR) \
     583    $(L4_OBJ)/include/$(L4_ARCH)/$(L4_API) \
     584    $(L4_OBJ)/include/$(L4_ARCH) \
     585    $(L4_OBJ)/include \
     586    $(L4_DIR)/tool/dice/include
    584587  L4_LIBDIR := \
    585         $(L4_DIR)/build-x86-$(L4_CPU)-$(L4_API)/lib/x86_$(L4_CPU)/$(L4_API)
     588   $(L4_DIR)/build-$(L4_ARCH)-$(L4_CPU)-$(L4_API)/lib/$(L4_ARCH)_$(L4_CPU)/$(L4_API)
    586589 endif # BUILD_TARGET == l4
    587590endif # L4_DIR
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