VirtualBox

Changeset 69531 in vbox


Ignore:
Timestamp:
Oct 30, 2017 5:59:26 PM (7 years ago)
Author:
vboxsync
Message:

Linux and FreeBSD drivers: use -src not -mod for all install rules.
bugref:4567: Linux kernel driver maintenance.

Location:
trunk/src/VBox
Files:
6 edited

Legend:

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

    r69308 r69531  
    211211 include $(PATH_SUB_CURRENT)/linux/files_vboxguest
    212212 # sources and stuff.
    213  INSTALLS += vboxguest-mod
    214  vboxguest-mod_INST     = $(INST_ADDITIONS)src/vboxguest/
    215  vboxguest-mod_MODE     = a+r,u+w
    216  vboxguest-mod_SOURCES  = $(subst ",,$(FILES_VBOXGUEST_NOBIN))
     213 INSTALLS += vboxguest-src
     214 vboxguest-src_INST     = $(INST_ADDITIONS)src/vboxguest/
     215 vboxguest-src_MODE     = a+r,u+w
     216 vboxguest-src_SOURCES  = $(subst ",,$(FILES_VBOXGUEST_NOBIN))
    217217
    218218 INSTALLS += vboxguest-scripts
     
    235235 include $(PATH_SUB_CURRENT)/freebsd/files_vboxguest
    236236 # sources and stuff.
    237  INSTALLS += vboxguest-mod
    238  vboxguest-mod_INST     = $(INST_ADDITIONS)src/vboxguest/
    239  vboxguest-mod_MODE     = a+r,u+w
    240  vboxguest-mod_SOURCES  = $(subst ",,$(FILES_VBOXGUEST_NOBIN))
     237 INSTALLS += vboxguest-src
     238 vboxguest-src_INST     = $(INST_ADDITIONS)src/vboxguest/
     239 vboxguest-src_MODE     = a+r,u+w
     240 vboxguest-src_SOURCES  = $(subst ",,$(FILES_VBOXGUEST_NOBIN))
    241241
    242242endif # FreeBSD
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r69529 r69531  
    365365
    366366 ifneq ($(KERN_DIR),)
    367   $(foreach module, vboxguest-mod vboxsf-mod vboxvideo-mod, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST)))
     367  $(foreach module, vboxguest-src vboxsf-src vboxvideo-src, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST)))
    368368 endif
    369369
  • trunk/src/VBox/Additions/linux/drm/Makefile.kmk

    r69111 r69531  
    2222# Populate FILES_VBOXVIDEO_DRM_NOBIN
    2323#
    24 INSTALLS += vboxvideo-mod
     24INSTALLS += vboxvideo-src
    2525include $(PATH_SUB_CURRENT)/files_vboxvideo_drv
    26 vboxvideo-mod_DEPS         = \
     26vboxvideo-src_DEPS         = \
    2727        $(PATH_ROOT)/src/VBox/Additions/linux/drm/files_vboxvideo_drv \
    2828        $(PATH_ROOT)/src/VBox/Additions/linux/drm/indent.sed
    29 vboxvideo-mod_INST         = $(INST_ADDITIONS)src/vboxvideo/
    30 vboxvideo-mod_SOURCES      = \
     29vboxvideo-src_INST         = $(INST_ADDITIONS)src/vboxvideo/
     30vboxvideo-src_SOURCES      = \
    3131        $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_NOBIN))
    32 vboxvideo-mod_EXEC_SOURCES = \
     32vboxvideo-src_EXEC_SOURCES = \
    3333        $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_BIN))
    34 vboxvideo-mod_INSTALLER = $(RM_EXT) -f -- "$2" && \
     34vboxvideo-src_INSTALLER = $(RM_EXT) -f -- "$2" && \
    3535    $(if $(filter %.c %.h,$2),$(SED) -f $(PATH_ROOT)/src/VBox/Additions/linux/drm/indent.sed \
    3636    --output "$2" "$1",$(CP_EXT) "$1" "$2") && \
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.kmk

    r69111 r69531  
    2323# Populate FILES_VBOXSF_NOBIN
    2424#
    25 INSTALLS += vboxsf-mod
     25INSTALLS += vboxsf-src
    2626include $(PATH_SUB_CURRENT)/files_vboxsf
    27 vboxsf-mod_INST         = $(INST_ADDITIONS)src/vboxsf/
    28 vboxsf-mod_SOURCES      = \
     27vboxsf-src_INST         = $(INST_ADDITIONS)src/vboxsf/
     28vboxsf-src_SOURCES      = \
    2929        $(subst $(DQUOTE),,$(FILES_VBOXSF_NOBIN))
    30 vboxsf-mod_EXEC_SOURCES = \
     30vboxsf-src_EXEC_SOURCES = \
    3131        $(subst $(DQUOTE),,$(FILES_VBOXSF_BIN))
    3232
  • trunk/src/VBox/HostDrivers/Makefile.kmk

    r69529 r69531  
    7878
    7979 ifneq ($(KERN_DIR),)
    80   $(foreach module, vboxdrv-mod VBoxNetFlt-src VBoxNetAdp-src VBoxPci-src, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST)))
     80  $(foreach module, vboxdrv-src VBoxNetFlt-src VBoxNetAdp-src VBoxPci-src, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST)))
    8181 endif
    8282
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r69111 r69531  
    5858  SYSMODS.os2     += VBoxDrv
    5959 endif
    60  INSTALLS.linux   += vboxdrv-mod
    61  INSTALLS.freebsd += vboxdrv-mod
     60 INSTALLS.linux   += vboxdrv-src
     61 INSTALLS.freebsd += vboxdrv-src
    6262
    6363 #
     
    726726 # Targets for installing the linux sources.
    727727 #
    728  vboxdrv-mod_INST    = bin/src/vboxdrv/
    729  vboxdrv-mod_SOURCES = \
     728 vboxdrv-src_INST    = bin/src/vboxdrv/
     729 vboxdrv-src_SOURCES = \
    730730        $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \
    731         $(vboxdrv-mod_0_OUTDIR)/Makefile
    732  vboxdrv-mod_EXEC_SOURCES  = \
     731        $(vboxdrv-src_0_OUTDIR)/Makefile
     732 vboxdrv-src_EXEC_SOURCES  = \
    733733        $(subst $(DQUOTE),,$(FILES_VBOXDRV_BIN))
    734  vboxdrv-mod_CLEAN   = \
    735         $(vboxdrv-mod_0_OUTDIR)/Makefile \
    736         $(PATH_TARGET)/vboxdrv-mod-1.dep \
     734 vboxdrv-src_CLEAN   = \
     735        $(vboxdrv-src_0_OUTDIR)/Makefile \
     736        $(PATH_TARGET)/vboxdrv-src-1.dep \
    737737
    738738 # Scripts needed for building the kernel modules
    739  includedep $(PATH_TARGET)/vboxdrv-mod-1.dep
    740  $$(vboxdrv-mod_0_OUTDIR)/Makefile: \
     739 includedep $(PATH_TARGET)/vboxdrv-src-1.dep
     740 $$(vboxdrv-src_0_OUTDIR)/Makefile: \
    741741                $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/Makefile \
    742742                $$(if $$(eq $$(Support/$(KBUILD_TARGET)/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
     
    748748                 , -e "s;-DVBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV;;g" -e "s;-DIPRT_WITH_EFLAGS_AC_PRESERVING;;g",) \
    749749                --output $@ $<
    750         %$(QUIET2)$(APPEND) -t '$(PATH_TARGET)/vboxdrv-mod-1.dep' \
     750        %$(QUIET2)$(APPEND) -t '$(PATH_TARGET)/vboxdrv-src-1.dep' \
    751751                'Support/$(KBUILD_TARGET)/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
    752752endif # linux freebsd
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