VirtualBox

Ignore:
Timestamp:
Jul 8, 2009 9:18:57 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49791
Message:

Add,++: Switch to common addition kernel module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk

    r21118 r21412  
    118118 endif # FreeBSD
    119119
     120endif # enabled
    120121
    121  ifeq ($(KBUILD_TARGET),linux)
    122   #
    123   # Install the source files and script(s).
    124   #
    125   include $(PATH_SUB_CURRENT)/linux/files_vboxguest
    126   # sources and stuff.
    127   INSTALLS += vboxguest-src
    128   vboxguest-src_INST     = $(INST_ADDITIONS)src/vboxguest/
    129   vboxguest-src_MODE     = a+r,u+w
    130   vboxguest-src_SOURCES  = $(subst ",,$(FILES_VBOXGUEST_NOBIN))
    131   vboxguest-src_SOURCES += $(if $(VBOX_OSE),,$(vboxguest-sh_0_OUTDIR)/dkms.conf)
    132   vboxguest-src_CLEAN    = $(vboxguest-sh_0_OUTDIR)/dkms.conf
     122ifeq ($(KBUILD_TARGET),linux)
     123 #
     124 # Install the source files and script(s).
     125 #
     126 include $(PATH_SUB_CURRENT)/linux/files_vboxguest
     127 # sources and stuff.
     128 INSTALLS += vboxguest-src
     129 vboxguest-src_INST     = $(INST_ADDITIONS)src/vboxguest/
     130 vboxguest-src_MODE     = a+r,u+w
     131 vboxguest-src_SOURCES  = $(subst ",,$(FILES_VBOXGUEST_NOBIN))
     132 vboxguest-src_SOURCES += $(if $(VBOX_OSE),,$(vboxguest-sh_0_OUTDIR)/dkms.conf)
     133 vboxguest-src_CLEAN    = $(vboxguest-sh_0_OUTDIR)/dkms.conf
    133134
    134   $$(vboxguest-sh_0_OUTDIR)/dkms.conf: \
    135                 $(PATH_SUB_CURRENT)/linux/dkms.conf \
    136                 $(VBOX_VERSION_STAMP) \
    137                 | $$(dir $$@)
    138         $(call MSG_TOOL,Creating,,$@)
    139         $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" --output $@ $<
     135 $$(vboxguest-sh_0_OUTDIR)/dkms.conf: \
     136        $(PATH_SUB_CURRENT)/linux/dkms.conf \
     137        $(VBOX_VERSION_STAMP) \
     138        | $$(dir $$@)
     139       $(call MSG_TOOL,Creating,,$@)
     140       $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" --output $@ $<
    140141
    141   # scripts.
    142   INSTALLS += vboxguest-sh
    143   vboxguest-sh_INST      = $(INST_ADDITIONS)src/vboxguest/
    144   vboxguest-sh_MODE      = a+rx,u+w
    145   vboxguest-sh_SOURCES   = $(subst ",,$(FILES_VBOXGUEST_BIN))
    146   vboxguest-sh_SOURCES  += $(if $(VBOX_OSE),,$(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers)
    147   vboxguest-sh_SOURCES  += $(vboxguest-sh_0_OUTDIR)/build_in_tmp
    148   vboxguest-sh_CLEAN     = $(vboxguest-sh_0_OUTDIR)/build_in_tmp
     142 # scripts.
     143 INSTALLS += vboxguest-sh
     144 vboxguest-sh_INST      = $(INST_ADDITIONS)src/vboxguest/
     145 vboxguest-sh_MODE      = a+rx,u+w
     146 vboxguest-sh_SOURCES   = $(subst ",,$(FILES_VBOXGUEST_BIN))
     147 vboxguest-sh_SOURCES  += $(if $(VBOX_OSE),,$(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers)
     148 vboxguest-sh_SOURCES  += $(vboxguest-sh_0_OUTDIR)/build_in_tmp
     149 vboxguest-sh_CLEAN     = $(vboxguest-sh_0_OUTDIR)/build_in_tmp
    149150
    150   $$(vboxguest-sh_0_OUTDIR)/build_in_tmp: \
    151                 $(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \
    152                 $(VBOX_VERSION_STAMP) \
    153                 | $$(dir $$@)
    154         $(call MSG_TOOL,Creating,,$@)
    155         $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxguest;g" --output $@ $<
    156         $(QUIET)$(CHMOD) 0755 $@
     151 $$(vboxguest-sh_0_OUTDIR)/build_in_tmp: \
     152        $(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \
     153        $(VBOX_VERSION_STAMP) \
     154        | $$(dir $$@)
     155       $(call MSG_TOOL,Creating,,$@)
     156       $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxguest;g" --output $@ $<
     157       $(QUIET)$(CHMOD) 0755 $@
    157158
    158  endif # Linux
    159 
    160 endif # enabled
     159endif # Linux
    161160
    162161include $(KBUILD_PATH)/subfooter.kmk
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette