VirtualBox

Changeset 21339 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Jul 7, 2009 3:19:17 PM (16 years ago)
Author:
vboxsync
Message:

linux/vboxvfs: made it build and load when using vboxguest.

Location:
trunk/src/VBox/Additions/linux/sharedfolders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.kmk

    r15589 r21339  
    5959vboxvfs_DEFS            = \
    6060        MODULE IN_RT_R0 VBOXGUEST VBOX_WITH_HGCM \
    61         KBUILD_MODNAME=KBUILD_STR\(vboxadd\) \
    62         KBUILD_BASENAME=KBUILD_STR\(vboxadd\)
     61        $(if-expr defined(VBOX_WITH_COMMON_VBOXGUEST_ON_LINUX),VBOX_WITH_COMMON_VBOXGUEST_ON_LINUX,) \
     62        KBUILD_MODNAME=KBUILD_STR\(vboxvfs\) \
     63        KBUILD_BASENAME=KBUILD_STR\(vboxvfs\)
    6364vboxvfs_INCS            = \
    6465        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib \
     
    7071        regops.c
    7172vboxvfs_LIBS            = \
    72         $(VBOX_LIB_VBGL_R0) \
    73         $(VBOX_LIB_IPRT_GUEST_R0)
     73        $(VBOX_LIB_VBGL_R0)
    7474
    7575# detect fc6 2.6.18
     
    101101                | $$(dir $$@)
    102102        $(call MSG_TOOL,Creating,,$@)
    103         $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxvfs;g" < $< > $@
     103        $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxvfs;g" --output $@ $<
    104104        $(QUIET)chmod 0755 $@
    105105
     
    109109                | $$(dir $$@)
    110110        $(call MSG_TOOL,Creating,,$@)
    111         $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" < $< > $@
     111        $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
     112                $(if-expr defined(VBOX_WITH_COMMON_VBOXGUEST_ON_LINUX), -e 's/vboxadd/vboxguest/',) \
     113                --output $@ $<
    112114
    113115include $(KBUILD_PATH)/subfooter.kmk
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r21325 r21339  
    7575        VMMDev.o \
    7676        HGCM.o \
    77         VBoxCalls.o \
     77        VBoxCalls.o
     78ifndef VBOX_WITH_COMMON_VBOXGUEST_ON_LINUX
     79OBJS  += \
    7880        r0drv/alloc-r0drv.o \
    7981        r0drv/memobj-r0drv.o \
     
    8385        r0drv/linux/process-r0drv-linux.o \
    8486        r0drv/linux/semevent-r0drv-linux.o \
    85         r0drv/linux/semfastmutex-r0drv-linux.o \
     87        r0drv/linux/semfastmutex-r0drv-linux.o
     88endif
     89ifeq ($(BUILD_TARGET_ARCH),x86)
     90OBJS  += \
    8691        divdi3.o \
    8792        moddi3.o \
     
    8994        umoddi3.o \
    9095        qdivrem.o
    91 ## @todo Use IPRT in vboxguest, the *div*/*mod* bits are x86 only.
     96endif
    9297
    9398EXTRA_CFLAGS = -fshort-wchar
     
    193198endif
    194199ifeq ($(BUILD_TYPE),debug)
    195 KFLAGS   += -DDEBUG
     200 KFLAGS  += -DDEBUG
     201endif
     202ifdef VBOX_WITH_COMMON_VBOXGUEST_ON_LINUX
     203 KFLAGS  += -DVBOX_WITH_COMMON_VBOXGUEST_ON_LINUX
    196204endif
    197205
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