Changeset 6693 in vbox
- Timestamp:
- Jan 31, 2008 10:22:17 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27767
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r6686 r6693 144 144 VBOX_WITH_ADDITIONS = 1 145 145 endif 146 # Build the optional ring-0 part of the additions for syntax checking. 147 # (Ignored ifndef VBOX_WITH_ADDITIONS. Hack for 32/64 linux issues.) 148 VBOX_WITH_ADDITION_DRIVERS = 1 146 149 # Build win32 additions (cross building them on linux and l4 using wine). 147 150 if1of ($(BUILD_TARGET),l4 linux win) … … 149 152 endif 150 153 # Build linux additions. 151 # Note! VBOX_WITH_LINUX_ADDITIONS will be removed later and only VBOX_WITH_WIN32_ADDITIONS will 152 # be kept around for cross building. That is, unless it is really needed for l4 development (the 153 # build server will fetch the .iso from the additions build box). 154 # Note! VBOX_WITH_LINUX_ADDITIONS will be removed later and only 155 # VBOX_WITH_WIN32_ADDITIONS will be kept around for cross building. 154 156 if1of ($(BUILD_TARGET),l4 linux) 155 157 VBOX_WITH_LINUX_ADDITIONS = 1 156 ifeq ($(BUILD_TARGET).$(BUILD_PLATFORM_ARCH),linux.x86)157 VBOX_WITH_LINUX_ADDITIONS_32BIT_R0 = 1158 endif159 158 endif 160 159 # Enable the building of shared folders in the windows additions. … … 2567 2566 2568 2567 # 2569 # Template for syntax checking the linux guest additions.2570 # Not properly realized yet.2571 #2572 TEMPLATE_VBOXLNX32GUESTR0 = Template for *syntax checking* linux guest additions kernel modules2573 TEMPLATE_VBOXLNX32GUESTR0_TOOL = $(VBOX_GCC_TOOL)2574 TEMPLATE_VBOXLNX32GUESTR0_BLD_TRG = linux2575 TEMPLATE_VBOXLNX32GUESTR0_DEFS = __KERNEL__ MODULE IN_GUEST IN_GUEST_R0 IN_RING0 IN_RT_R02576 TEMPLATE_VBOXLNX32GUESTR0_INCS = $(VBOX_LINUX_INCS)2577 TEMPLATE_VBOXLNX32GUESTR0_CFLAGS = -nostdinc -iwithprefix include \2578 -O2 -Wall -Wstrict-prototypes -Wno-trigraphs $(VBOX_GCC_Wno-pointer-sign) \2579 $(VBOX_GCC_fno-stack-protector) -fno-strict-aliasing -fno-common \2580 -mpreferred-stack-boundary=2 -msoft-float2581 TEMPLATE_VBOXLNX32GUESTR0_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wno-pointer-sign,$(TEMPLATE_VBOXLNX32GUESTR0_CFLAGS)) -fno-exceptions -fno-rtti2582 ifndef VBOX_LINUX_VERSION_2_42583 # 2.62584 TEMPLATE_VBOXLNX32GUESTR0_SYSSUFF = .ko2585 TEMPLATE_VBOXLNX32GUESTR0_LDFLAGS = -m elf_i386 -r2586 else2587 # 2.42588 TEMPLATE_VBOXLNX32GUESTR0_SYSSUFF = .o2589 TEMPLATE_VBOXLNX32GUESTR0_LDFLAGS = -r -s2590 endif2591 2592 2593 #2594 2568 # Templates for building 32-bit linux guest additions. 2595 2569 # … … 2781 2755 TEMPLATE_VBOXGUESTR0_EXTENDS = VBOXR0DRV 2782 2756 TEMPLATE_VBOXGUESTR0_INST = $(INST_ADDITIONS) 2783 TEMPLATE_VBOXGUESTR0_BLD_TRG_ARCH = x862784 TEMPLATE_VBOXGUESTR0_BLD_TRG_CPU = blend2785 2757 TEMPLATE_VBOXGUESTR0_SDKS.win.x86 = WIN32SDK W2K3DDKX86 2786 2758 TEMPLATE_VBOXGUESTR0_SDKS.win.amd64 = W2K3DDK WINPSDKINCS 2787 TEMPLATE_VBOXGUESTR0_DEFS = $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR0DRV_DEFS)) IN_GUEST IN_GUEST_R0 HC_ARCH_BITS=32 GC_ARCH_BITS=32 2759 ifn1of ($(BUILD_TARGET),l4 linux) # must be same as the host. 2760 TEMPLATE_VBOXGUESTR0_DEFS = $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR0DRV_DEFS)) IN_GUEST IN_GUEST_R0 HC_ARCH_BITS=32 GC_ARCH_BITS=32 2761 TEMPLATE_VBOXGUESTR0_BLD_TRG_ARCH = x86 2762 TEMPLATE_VBOXGUESTR0_BLD_TRG_CPU = blend 2763 else 2764 TEMPLATE_VBOXGUESTR0_DEFS = $(TEMPLATE_VBOXR0DRV_DEFS) IN_GUEST IN_GUEST_R0 2765 endif 2788 2766 ifeq ($(BUILD_TARGET),l4) # cross building linux on l4. 2789 2767 TEMPLATE_VBOXGUESTR0_BLD_TRG = linux -
trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk
r6662 r6693 20 20 include $(PATH_KBUILD)/subheader.kmk 21 21 22 # 23 # Target config. 24 # 22 25 ifn1of ($(BUILD_TARGET),l4 linux win) 23 26 LIBRARIES += \ … … 45 48 endif 46 49 ifdef VBOX_WITH_LINUX_ADDITIONS 47 ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R048 50 LIBRARIES += \ 49 VBoxGuestLibLinux \ 50 VBoxGuestLibBaseLinux 51 endif 52 LIBRARIES += \ 51 VBoxGuestR0Lib \ 52 VBoxGuestR0LibBase \ 53 53 VBoxGuestR3Lib \ 54 54 VBoxGuestR3LibShared \ … … 57 57 endif 58 58 endif 59 60 ifndef VBOX_WITH_ADDITION_DRIVERS 61 if1of ($(BUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0. 62 LIBRARIES := $(filter-out VBoxGuestR0Lib VBoxGuestR0LibBase, $(LIBRARIES)) 63 endif 64 endif 65 59 66 60 67 # … … 170 177 171 178 # 172 # VBoxGuestLibLinux173 #174 VBoxGuestLibLinux_TEMPLATE = VBOXLNX32GUESTR0175 VBoxGuestLibLinux_SOURCES = $(VBoxGuestR0Lib_SOURCES)176 VBoxGuestLibLinux_INCS = $(VBoxGuestLib_INCS)177 VBoxGuestLibLinux_DEFS = VBOX_HGCM LOG_TO_BACKDOOR178 179 180 #181 # VBoxGuestLibBaseLinux182 #183 VBoxGuestLibBaseLinux_TEMPLATE = VBOXLNX32GUESTR0184 VBoxGuestLibBaseLinux_SOURCES = $(VBoxGuestR0LibBase_SOURCES)185 VBoxGuestLibBaseLinux_INCS = $(VBoxGuestLib_INCS)186 VBoxGuestLibBaseLinux_DEFS = VBOX_HGCM VBGL_VBOXGUEST LOG_TO_BACKDOOR187 188 #189 179 # VBoxGuestR3LibLinux 190 180 # -
trunk/src/VBox/Additions/linux/module/Makefile.kmk
r5999 r6693 20 20 21 21 INSTALLS = vboxmod-bin vboxmod-sh 22 ifdef VBOX_WITH_ LINUX_ADDITIONS_32BIT_R023 SYSMODS = vboxadd22 ifdef VBOX_WITH_ADDITION_DRIVERS 23 SYSMODS = vboxadd 24 24 endif 25 25 … … 40 40 # The module (for syntax checking). 41 41 # 42 vboxadd_TEMPLATE = VBOXLNX32GUESTR0 43 vboxadd_DEFS = KBUILD_MODNAME=KBUILD_STR\(vboxadd\) KBUILD_BASENAME=KBUILD_STR\(vboxadd\) MODULE IN_RING0 IN_RT_R0 VBGL_VBOXGUEST EXPORT_SYMTAB VBGL_HGCM VBOX_HGCM 44 vboxadd_LIBS = $(PATH_LIB)/VBoxGuestLibBaseLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a 45 vboxadd_SOURCES = vboxmod.c cmc.c hgcmcall.c 42 vboxadd_TEMPLATE = VBOXGUESTR0 43 vboxadd_NOINST = 1 44 vboxadd_DEFS = \ 45 MODULE IN_RT_R0 VBGL_VBOXGUEST EXPORT_SYMTAB VBGL_HGCM VBOX_HGCM \ 46 KBUILD_MODNAME=KBUILD_STR\(vboxadd\) \ 47 KBUILD_BASENAME=KBUILD_STR\(vboxadd\) 46 48 vboxadd_INCS = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux 47 vboxadd_NOINST = 1 49 vboxadd_SOURCES = \ 50 vboxmod.c \ 51 cmc.c \ 52 hgcmcall.c 53 vboxadd_LIBS = \ 54 $(VBOX_LIB_VBGL_R0BASE) \ 55 $(VBOX_LIB_IPRT_GUEST_R0) 48 56 49 57 include $(PATH_KBUILD)/footer.kmk -
trunk/src/VBox/Additions/linux/sharedfolders/Makefile.kmk
r5999 r6693 19 19 include $(PATH_KBUILD)/header.kmk 20 20 21 ifdef VBOX_WITH_ LINUX_ADDITIONS_32BIT_R022 SYSMODS = vboxvfs21 ifdef VBOX_WITH_ADDITION_DRIVERS 22 SYSMODS = vboxvfs 23 23 endif 24 24 PROGRAMS = mountvboxsf … … 44 44 # The module (for syntax checking). 45 45 # 46 vboxvfs_TEMPLATE = VBOXLNX32GUESTR0 47 vboxvfs_DEFS := KBUILD_MODNAME=KBUILD_STR\(vboxadd\) \ 48 KBUILD_BASENAME=KBUILD_STR\(vboxadd\) \ 49 MODULE IN_RING0 IN_RT_R0 VBOXGUEST VBOX_HGCM 50 vboxvfs_LIBS = $(PATH_LIB)/VBoxGuestLibLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a 46 vboxvfs_TEMPLATE = VBOXGUESTR0 47 vboxvfs_NOINST = 1 48 vboxvfs_CFLAGS = -fshort-wchar 49 vboxvfs_DEFS = \ 50 MODULE IN_RT_R0 VBOXGUEST VBOX_HGCM \ 51 KBUILD_MODNAME=KBUILD_STR\(vboxadd\) \ 52 KBUILD_BASENAME=KBUILD_STR\(vboxadd\) 53 vboxvfs_INCS = \ 54 ../../common/VBoxGuestLib \ 55 $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux 51 56 vboxvfs_SOURCES = \ 52 57 vfsmod.c \ … … 54 59 dirops.c \ 55 60 regops.c 56 vboxvfs_NOINST = 1 57 vboxvfs_CFLAGS += -fshort-wchar 58 vboxvfs_INCS += \ 59 ../../common/VBoxGuestLib \ 60 $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux 61 vboxvfs_LIBS = \ 62 $(VBOX_LIB_VBGL_R0) \ 63 $(VBOX_LIB_IPRT_GUEST_R0) 61 64 62 65 # detect fc6 2.6.18 … … 76 79 # 77 80 mountvboxsf_TEMPLATE = VBOXLNX32GUESTR3EXENOCPP 81 mountvboxsf_DEFS = _GNU_SOURCE 78 82 mountvboxsf_SOURCES = \ 79 83 vbsfmount.h \ 80 84 mount.vboxsf.c 81 mountvboxsf_DEFS = _GNU_SOURCE82 85 83 86 -
trunk/src/VBox/Runtime/Makefile.kmk
r6685 r6693 33 33 # Only build the additions, sort out the legacy names first. 34 34 # 35 ifeq ($(BUILD_TARGET),linux) 36 LIBRARIES = RuntimeLnx32GuestR0 RuntimeLnx32GuestR3 RuntimeGuestR3 RuntimeGuestR3Mini 37 else ifeq ($(BUILD_TARGET),win) 35 ifeq ($(BUILD_TARGET),win) 38 36 LIBRARIES = RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 39 37 else … … 41 39 #LIBRARIES.os2 = RuntimeOS2Warp3GuestR0 42 40 #LIBRARIES.win = RuntimeW32NT4GuestR0 41 if1of ($(BUILD_TARGET), linux l4) ## @todo eliminate this. 42 LIBRARIES += RuntimeLnx32GuestR3 43 endif 44 ifndef VBOX_WITH_ADDITION_DRIVERS 45 if1of ($(BUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0. 46 LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES)) 47 endif 48 endif 43 49 endif 44 50 45 51 # 46 52 # Remote cross building... Will be removed unless somebody speaks up! 53 ## @todo Remove this tomorrow. 47 54 # 48 55 else ifdef VBOX_ADDITIONS_LINUX_ONLY 49 LIBRARIES = RuntimeLnx32GuestR0 RuntimeLnx32GuestR3 RuntimeGuestR3 RuntimeGuestR3Mini 56 LIBRARIES = RuntimeLnx32GuestR3 \ 57 RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini 50 58 else ifdef VBOX_ADDITIONS_WIN32_ONLY 51 59 LIBRARIES = RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 … … 61 69 endif 62 70 ifdef VBOX_WITH_ADDITIONS 63 if1of ($(BUILD_TARGET),linux l4 win) 64 ifdef VBOX_WITH_WIN32_ADDITIONS 65 LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 71 ifdef VBOX_WITH_WIN32_ADDITIONS 72 LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0 73 endif 74 ifneq ($(BUILD_TARGET),win) 75 LIBRARIES += RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini 76 #LIBRARIES.os2 = RuntimeOS2Warp3GuestR0 77 #LIBRARIES.win = RuntimeW32NT4GuestR0 78 ifdef VBOX_WITH_LINUX_ADDITIONS ## @todo eliminate this ASAP 79 LIBRARIES += RuntimeLnx32GuestR3 66 80 endif 67 ifdef VBOX_WITH_LINUX_ADDITIONS 68 LIBRARIES += RuntimeLnx32GuestR3 RuntimeGuestR3 RuntimeGuestR3Mini 69 ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0 70 LIBRARIES += RuntimeLnx32GuestR0 81 ifndef VBOX_WITH_ADDITION_DRIVERS 82 if1of ($(BUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0. 83 LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES)) 71 84 endif 72 85 endif 73 else74 LIBRARIES += RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini75 #LIBRARIES.os2 = RuntimeOS2Warp3GuestR076 86 endif 77 87 endif # VBOX_WITH_ADDITIONS … … 1067 1077 1068 1078 # 1069 # RuntimeLnx32GuestR0 - 32-bit Linux guest driver runtime.1070 #1071 ## @todo remove this and use RuntimeGuestR0.1072 RuntimeLnx32GuestR0_TEMPLATE = VBOXLNX32GUESTR01073 RuntimeLnx32GuestR0_DEFS = RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS IN_SUP_R0 \1074 MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\)1075 RuntimeLnx32GuestR0_INCS = $(RuntimeR0Drv_INCS.linux) $(RuntimeR0Drv_INCS)1076 RuntimeLnx32GuestR0_SOURCES = \1077 $(RuntimeR0Drv_SOURCES) \1078 $(RuntimeR0Drv_SOURCES.linux) \1079 VBox/logbackdoor.cpp1080 1081 1082 #1083 1079 # RuntimeGC - Guest context library. 1084 1080 #
Note:
See TracChangeset
for help on using the changeset viewer.