Changeset 9499 in vbox
- Timestamp:
- Jun 8, 2008 12:44:31 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Config.kmk (modified) (8 diffs)
-
src/VBox/Runtime/Makefile.kmk (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r9489 r9499 300 300 else 301 301 # VBOX_WITH_64_BITS_GUESTS = 1 302 endif 303 # Enable building 64-bit additions (actually KBUILD_TARGET_ARCH decides). 304 ifeq ($(USERNAME),bird) # precaution 305 VBOX_WITH_64BIT_ADDITIONS = 1 302 306 endif 303 307 … … 817 821 818 822 ifdef VBOX_WITH_64_BITS_GUESTS 819 GCARCH_BITS_DEFS := GC_ARCH_BITS=64820 else 821 GCARCH_BITS_DEFS := GC_ARCH_BITS=32822 endif 823 ARCH_BITS_DEFS += $( GCARCH_BITS_DEFS)823 VBOX_GC_ARCH_BITS_DEFS := GC_ARCH_BITS=64 824 else 825 VBOX_GC_ARCH_BITS_DEFS := GC_ARCH_BITS=32 826 endif 827 ARCH_BITS_DEFS += $(VBOX_GC_ARCH_BITS_DEFS) 824 828 825 829 # … … 2587 2591 TEMPLATE_VBOXW32GUESTR3_BLD_TRG_ARCH = x86 2588 2592 TEMPLATE_VBOXW32GUESTR3_BLD_TRG_CPU = i386 2589 TEMPLATE_VBOXW32GUESTR3_DEFS = IN_GUEST IN_GUEST_R3 IN_RING3 IN_RT_R3 __WIN32__ __WIN__ HC_ARCH_BITS=32 $( GCARCH_BITS_DEFS)2593 TEMPLATE_VBOXW32GUESTR3_DEFS = IN_GUEST IN_GUEST_R3 IN_RING3 IN_RT_R3 __WIN32__ __WIN__ HC_ARCH_BITS=32 $(VBOX_GC_ARCH_BITS_DEFS) 2590 2594 TEMPLATE_VBOXW32GUESTR3_RCDEFS = \ 2591 2595 VBOX_VERSION_MAJOR=\"$(VBOX_VERSION_MAJOR)\" \ … … 2660 2664 TEMPLATE_VBOXW32GUESTR0_BLD_TRG_ARCH = x86 2661 2665 TEMPLATE_VBOXW32GUESTR0_BLD_TRG_CPU = i386 2662 TEMPLATE_VBOXW32GUESTR0_DEFS = _X86_ IN_GUEST IN_GUEST_R0 IN_RING0 IN_RT_R0 __WIN32__ __WIN__ HC_ARCH_BITS=32 $( GCARCH_BITS_DEFS)2666 TEMPLATE_VBOXW32GUESTR0_DEFS = _X86_ IN_GUEST IN_GUEST_R0 IN_RING0 IN_RT_R0 __WIN32__ __WIN__ HC_ARCH_BITS=32 $(VBOX_GC_ARCH_BITS_DEFS) 2663 2667 TEMPLATE_VBOXW32GUESTR0_RCDEFS = \ 2664 2668 VBOX_VERSION_MAJOR=\"$(VBOX_VERSION_MAJOR)\" \ … … 2766 2770 # 2767 2771 TEMPLATE_VBOXGUESTR3EXE = VBox Guest Program 2768 ifeq ($(KBUILD_TARGET),win) # quick hack 2769 TEMPLATE_VBOXGUESTR3EXE_EXTENDS = VBOXW32GUESTR3 2770 else 2772 ifeq ($(KBUILD_TARGET),win) 2773 ifdef VBOX_WITH_64BIT_ADDITIONS 2774 TEMPLATE_VBOXGUESTR3EXE_EXTENDS = VBOXR3EXE 2775 else 2776 TEMPLATE_VBOXGUESTR3EXE_EXTENDS = VBOXW32GUESTR3 2777 endif 2778 else # the gcc guys 2771 2779 TEMPLATE_VBOXGUESTR3EXE_EXTENDS = VBOXR3EXE 2772 2780 #TEMPLATE_VBOXGUESTR3EXE_TOOL := $(subst GXX,GCC,$(TEMPLATE_VBOXR3EXE_TOOL)) … … 2775 2783 endif 2776 2784 TEMPLATE_VBOXGUESTR3EXE_INST = $(INST_ADDITIONS) 2777 TEMPLATE_VBOXGUESTR3EXE_ASFLAGS = $(VBOX_ASFLAGS32) 2778 TEMPLATE_VBOXGUESTR3EXE_BLD_TRG_ARCH = x86 2779 TEMPLATE_VBOXGUESTR3EXE_BLD_TRG_CPU = blend 2780 TEMPLATE_VBOXGUESTR3EXE_DEFS := IN_GUEST IN_GUEST_R3 IN_RT_R3 \ 2785 ifdef VBOX_WITH_64BIT_ADDITIONS 2786 TEMPLATE_VBOXGUESTR3EXE_DEFS := $(TEMPLATE_VBOXR3EXE_DEFS) IN_GUEST IN_GUEST_R3 IN_RT_R3 2787 else 2788 TEMPLATE_VBOXGUESTR3EXE_ASFLAGS = $(VBOX_ASFLAGS32) 2789 TEMPLATE_VBOXGUESTR3EXE_BLD_TRG_ARCH = x86 2790 TEMPLATE_VBOXGUESTR3EXE_BLD_TRG_CPU = blend 2791 TEMPLATE_VBOXGUESTR3EXE_DEFS := IN_GUEST IN_GUEST_R3 IN_RT_R3 \ 2781 2792 $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR3EXE_DEFS)) \ 2782 HC_ARCH_BITS=32 $(GCARCH_BITS_DEFS) 2793 HC_ARCH_BITS=32 $(VBOX_GC_ARCH_BITS_DEFS) 2794 endif 2783 2795 if1of ($(KBUILD_TARGET),l4 linux) # As few libs as possible on linux. 2784 2796 TEMPLATE_VBOXGUESTR3EXE_LIBS = pthread rt m … … 2885 2897 TEMPLATE_VBOXGUESTR0_SDKS.win.x86 = WIN32SDK W2K3DDKX86 2886 2898 TEMPLATE_VBOXGUESTR0_SDKS.win.amd64 = W2K3DDK WINPSDKINCS 2887 ifn1of ($(KBUILD_TARGET),l4 linux) # must be same as the host. 2888 TEMPLATE_VBOXGUESTR0_DEFS = $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR0DRV_DEFS)) IN_GUEST IN_GUEST_R0 HC_ARCH_BITS=32 $(GCARCH_BITS_DEFS) 2889 TEMPLATE_VBOXGUESTR0_BLD_TRG_ARCH = x86 2890 TEMPLATE_VBOXGUESTR0_BLD_TRG_CPU = blend 2891 else 2892 TEMPLATE_VBOXGUESTR0_DEFS = $(TEMPLATE_VBOXR0DRV_DEFS) IN_GUEST IN_GUEST_R0 2899 ifdef VBOX_WITH_64BIT_ADDITIONS 2900 TEMPLATE_VBOXGUESTR0_DEFS = $(TEMPLATE_VBOXR0DRV_DEFS) IN_GUEST IN_GUEST_R0 $(VBOX_GC_ARCH_BITS_DEFS) 2901 else 2902 ifn1of ($(KBUILD_TARGET),l4 linux) # must be same as the host. 2903 TEMPLATE_VBOXGUESTR0_DEFS = $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR0DRV_DEFS)) IN_GUEST IN_GUEST_R0 HC_ARCH_BITS=32 $(VBOX_GC_ARCH_BITS_DEFS) 2904 TEMPLATE_VBOXGUESTR0_BLD_TRG_ARCH = x86 2905 TEMPLATE_VBOXGUESTR0_BLD_TRG_CPU = blend 2906 else 2907 TEMPLATE_VBOXGUESTR0_DEFS = $(TEMPLATE_VBOXR0DRV_DEFS) IN_GUEST IN_GUEST_R0 2908 endif 2893 2909 endif 2894 2910 ifeq ($(KBUILD_TARGET),l4) # cross building linux on l4. … … 2915 2931 VBOX_LIB_IPRT_GUEST_R3_MINI = $(VBOX_PATH_ADDITIONS_LIB)/RuntimeGuestR3Mini$(VBOX_SUFF_LIB) 2916 2932 VBOX_LIB_IPRT_GUEST_R0 = $(VBOX_PATH_ADDITIONS_LIB)/RuntimeGuestR0$(VBOX_SUFF_LIB) 2933 VBOX_LIB_IPRT_GUEST_R0_NT4 = $(VBOX_PATH_ADDITIONS_LIB)/RuntimeGuestR0NT4$(VBOX_SUFF_LIB) 2917 2934 VBOX_LIB_VBGL_R3 = $(VBOX_PATH_ADDITIONS_LIB)/VBoxGuestR3Lib$(VBOX_SUFF_LIB) 2918 2935 VBOX_LIB_VBGL_R3_XFREE86 = $(VBOX_PATH_ADDITIONS_LIB)/VBoxGuestR3LibXFree86$(VBOX_SUFF_LIB) -
trunk/src/VBox/Runtime/Makefile.kmk
r9429 r9499 38 38 # Only build the additions, sort out the legacy names first. 39 39 # 40 ifeq ($(KBUILD_TARGET) ,win)40 ifeq ($(KBUILD_TARGET)$(VBOX_WITH_64BIT_ADDITIONS),win) 41 41 LIBRARIES = RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 42 42 else 43 43 LIBRARIES = RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini 44 #LIBRARIES.os2 = Runtime OS2Warp3GuestR045 #LIBRARIES.win = RuntimeW32NT4GuestR044 #LIBRARIES.os2 = RuntimeGuestR0OS2Warp3 45 LIBRARIES.win.x86 = RuntimeGuestR0NT4 46 46 ifndef VBOX_WITH_ADDITION_DRIVERS 47 47 if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0. … … 65 65 ifdef VBOX_WITH_ADDITIONS 66 66 ifdef VBOX_WITH_WIN32_ADDITIONS 67 LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 67 ifndef VBOX_WITH_64BIT_ADDITIONS 68 LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 69 endif 68 70 endif 69 ifneq ($(KBUILD_TARGET) ,win)71 ifneq ($(KBUILD_TARGET)$(VBOX_WITH_64BIT_ADDITIONS),win) 70 72 LIBRARIES += RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini 71 #LIBRARIES.os2 = Runtime OS2Warp3GuestR072 #LIBRARIES.win = RuntimeW32NT4GuestR073 #LIBRARIES.os2 = RuntimeGuestR0OS2Warp3 74 LIBRARIES.win.x86 = RuntimeGuestR0NT4 73 75 ifndef VBOX_WITH_ADDITION_DRIVERS 74 76 if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0. … … 545 547 # 546 548 RuntimeGuestR3_TEMPLATE := VBOXGUESTR3LIB 549 ## @todo change this to EXTEND the RuntimeR3 target. 547 550 RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win) 548 551 RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) … … 565 568 RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 566 569 RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH)) 570 ifndef VBOX_WITH_64BIT_ADDITIONS 567 571 RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86) 568 572 RuntimeGuestR3_SOURCES.$(KBUILD_HOST).x86 := $(RuntimeR3_SOURCES.$(KBUILD_HOST).x86) 573 endif 569 574 570 575 … … 575 580 # 576 581 RuntimeGuestR3Mini_TEMPLATE := VBOXGUESTR3DLL 582 ## @todo change this to EXTEND the RuntimeGuestR3 target. 577 583 RuntimeGuestR3Mini_INST := $(INST_ADDITIONS_LIB) 578 584 RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win) 579 585 RuntimeGuestR3Mini_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) RT_MINI 580 RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))581 RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))586 RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET)) 587 RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST)) 582 588 RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS) 583 RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))584 RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))589 RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET)) 590 RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST)) 585 591 RuntimeGuestR3Mini_SOURCES = \ 586 592 common/err/errmsg.cpp \ … … 1157 1163 # This is almost the same as the RuntimeR0Drv, the main difference 1158 1164 # is in the backdoor logging and the lack of sup.h (which should be 1159 # made irrelevant even for RuntimeR0Rdrv). 1160 # 1161 # TODO: RuntimeGuestR0_EXTENDS = RuntimeR0Drv (kBuild) 1165 # made irrelevant even for RuntimeR0Drv). 1162 1166 # 1163 1167 RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB 1164 RuntimeGuestR0_SDKS.win := W2K3DDKX86 WINPSDKINCS1165 RuntimeGuestR0_DEFS := $(RuntimeR0Drv_DEFS)1166 RuntimeGuestR0_DEFS.$(KBUILD_TARGET) := $(RuntimeR0Drv_DEFS.$(KBUILD_TARGET))1167 RuntimeGuestR0_INCS := $(PATH_SUB_CURRENT) include1168 RuntimeGuestR0_INCS.$(KBUILD_TARGET) := $(RuntimeR0Drv_INCS.$(KBUILD_TARGET))1169 1168 RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES)) 1170 1169 RuntimeGuestR0_SOURCES += VBox/logbackdoor.cpp 1171 RuntimeGuestR0_SOURCES.$(KBUILD_TARGET) := $(RuntimeR0Drv_SOURCES.$(KBUILD_TARGET)) 1172 RuntimeGuestR0_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR0Drv_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 1173 ifdef VBOX_USE_VCC80 1174 RuntimeGuestR0_SOURCES.win += \ 1175 common/string/memchr.cpp \ 1176 common/string/memcpy.cpp \ 1177 common/string/memset.cpp \ 1178 common/string/memmove.asm \ 1179 common/string/strlen.cpp 1180 endif 1181 RuntimeGuestR0_SOURCES.freebsd += \ 1182 common/string/memset.cpp \ 1183 common/string/memcmp.cpp \ 1184 common/string/strchr.asm 1170 ifdef VBOX_WITH_64BIT_ADDITIONS 1171 RuntimeGuestR0_EXTENDS = RuntimeR0Drv 1172 else 1173 RuntimeGuestR0_SDKS.win := W2K3DDKX86 WINPSDKINCS 1174 RuntimeGuestR0_DEFS := $(RuntimeR0Drv_DEFS) 1175 RuntimeGuestR0_DEFS.$(KBUILD_TARGET) := $(RuntimeR0Drv_DEFS.$(KBUILD_TARGET)) 1176 RuntimeGuestR0_INCS := $(PATH_SUB_CURRENT) include 1177 RuntimeGuestR0_INCS.$(KBUILD_TARGET) := $(RuntimeR0Drv_INCS.$(KBUILD_TARGET)) 1178 RuntimeGuestR0_SOURCES.$(KBUILD_TARGET) := $(RuntimeR0Drv_SOURCES.$(KBUILD_TARGET)) 1179 RuntimeGuestR0_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR0Drv_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) 1180 ifdef VBOX_USE_VCC80 1181 RuntimeGuestR0_SOURCES.win += \ 1182 common/string/memchr.cpp \ 1183 common/string/memcpy.cpp \ 1184 common/string/memset.cpp \ 1185 common/string/memmove.asm \ 1186 common/string/strlen.cpp 1187 endif 1188 RuntimeGuestR0_SOURCES.freebsd += \ 1189 common/string/memset.cpp \ 1190 common/string/memcmp.cpp \ 1191 common/string/strchr.asm 1192 endif 1185 1193 1186 1194 # HACK: no vbi for the solaris guest additions - yet. … … 1219 1227 r0drv/solaris/timer-r0drv-solaris.c 1220 1228 1229 # 1230 # RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime. 1231 # 1232 RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0 1233 RuntimeGuestR0NT4_EXTENDS_BY = appending 1234 RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4 1235 1236 1237 ## @todo remove this 1221 1238 RuntimeOS2GuestR0_TEMPLATE = VBOXOS2GUESTR0LIB 1222 1239 RuntimeOS2GuestR0_SOURCES = \
Note:
See TracChangeset
for help on using the changeset viewer.

