VirtualBox

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


Ignore:
Timestamp:
Jan 6, 2009 11:10:51 AM (16 years ago)
Author:
vboxsync
Message:

Linux guest additions: Makefile for convenience

Location:
trunk/src/VBox/Additions/linux
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/Makefile

    r15803 r15816  
    11#
    2 # Makefile for the VirtualBox Linux Host Drivers.
     2# Makefile for the VirtualBox Linux Guest Drivers.
    33#
    44
    55#
    66#
    7 # Copyright (C) 2008 Sun Microsystems, Inc.
     7# Copyright (C) 2009 Sun Microsystems, Inc.
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    2323
    2424all:
    25         @echo "*** Building 'vboxdrv' module ***"
    26         @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxdrv
    27         @cp vboxdrv/vboxdrv.ko .
     25        @echo "*** Building 'vboxadd' module ***"
     26        @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxadd
     27        @cp vboxadd/vboxadd.ko .
    2828        @echo
    29         @if [ -d vboxnetflt ]; then \
    30             if [ -f vboxdrv/Module.symvers ]; then \
    31                 cp vboxdrv/Module.symvers vboxnetflt; \
     29        @if [ -d vboxvfs ]; then \
     30            if [ -f vboxadd/Module.symvers ]; then \
     31                cp vboxadd/Module.symvers vboxvfs; \
    3232            fi; \
    33             echo "*** Building 'vboxnetflt' module ***"; \
    34             $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxnetflt; \
    35             cp vboxnetflt/vboxnetflt.ko .; \
     33            echo "*** Building 'vboxvfs' module ***"; \
     34            $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxvfs; \
     35            cp vboxvfs/vboxvfs.ko .; \
    3636        fi
    3737
    3838
    3939install:
    40         @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxdrv install
    41         @if [ -d vboxnetflt ]; then \
    42             $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxnetflt install; \
     40        @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxadd install
     41        @if [ -d vboxvfs ]; then \
     42            $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxvfs install; \
    4343        fi
    4444
    4545clean:
    46         @$(MAKE) -C vboxdrv clean
    47         @if [ -d vboxnetflt ]; then \
    48             $(MAKE) -C vboxnetflt clean; \
     46        @$(MAKE) -C vboxadd clean
     47        @if [ -d vboxvfs ]; then \
     48            $(MAKE) -C vboxvfs clean; \
    4949        fi
    50         rm -f vboxdrv.ko vboxnetflt.ko
     50        rm -f vboxadd.ko vboxvfs.ko
    5151
    5252load:
    53         @/sbin/rmmod vboxnetflt || true
    54         @/sbin/rmmod vboxdrv || true
    55         @/sbin/insmod vboxdrv.ko
    56         @if [ -f vboxnetflt.ko ]; then /sbin/insmod vboxnetflt.ko; fi
     53        @/sbin/rmmod vboxvfs || true
     54        @/sbin/rmmod vboxadd || true
     55        @/sbin/insmod vboxadd.ko
     56        @if [ -f vboxvfs.ko ]; then /sbin/insmod vboxvfs.ko; fi
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r15585 r15816  
    5555 VBOX_LNX_ADD_BIN_COPY_SYMBOLS      = objcopy -g -R .comment
    5656endif
     57
     58INSTALLS += GuestDrivers-src
     59GuestDrivers-src_INST = bin/additions/src/
     60GuestDrivers-src_MODE = a+r,u+w
     61GuestDrivers-src_SOURCES = Makefile
    5762
    5863include $(KBUILD_PATH)/subfooter.kmk
  • trunk/src/VBox/Additions/linux/module/Makefile.module

    r14218 r15816  
    132132 endif
    133133
    134  # module install dir.
     134 # module install dir, only for current kernel
    135135 ifneq ($(filter install install_rpm,$(MAKECMDGOALS)),)
    136136  ifndef MODULE_DIR
     
    174174endif
    175175
     176KBUILD_VERBOSE ?= 1
    176177
    177178#
     
    231232
    232233$(MODULE):
    233         $(MAKE) KBUILD_VERBOSE=1 -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules
     234        $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules
    234235
    235236endif
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r14655 r15816  
    165165endif
    166166
     167KBUILD_VERBOSE ?= 1
    167168
    168169#
     
    237238
    238239$(MODULE):
    239         $(MAKE) KBUILD_VERBOSE=1 -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules
     240        $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules
    240241
    241242endif
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