VirtualBox

Ignore:
Timestamp:
Sep 1, 2010 3:53:42 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65467
Message:

Linux Installer/Additions: attempt to properly register the host/guest kernel modules at DKMS and use the setup function of the service script to compile the modules instead of doing this separately in the installer scripts

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
3 edited

Legend:

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

    r31900 r32183  
    9898 vboxguest-src_MODE     = a+r,u+w
    9999 vboxguest-src_SOURCES  = $(subst ",,$(FILES_VBOXGUEST_NOBIN))
    100  vboxguest-src_SOURCES += $(vboxguest-sh_0_OUTDIR)/dkms.conf
    101  vboxguest-src_CLEAN    = $(vboxguest-sh_0_OUTDIR)/dkms.conf
     100
     101 INSTALLS += vboxguest-dkms-conf
     102 vboxguest-dkms-conf_INST    = $(INST_ADDITIONS)src/
     103 vboxguest-dkms-conf_MODE    = a+r,u+w
     104 vboxguest-dkms-conf_SOURCES = $(vboxguest-sh_0_OUTDIR)/dkms.conf
     105 vboxguest-dkms-conf_CLEAN   = $(vboxguest-sh_0_OUTDIR)/dkms.conf
     106
     107 INSTALLS += vboxguest-dkms-sh
     108 vboxguest-dkms-sh_INST    = $(INST_ADDITIONS)src/
     109 vboxguest-dkms-sh_MODE    = a+rx,u+w
     110 vboxguest-dkms-sh_SOURCES = $(vboxguest-sh_0_OUTDIR)/do_dkms
     111 vboxguest-dkms-sh_CLEAN   = $(vboxguest-sh_0_OUTDIR)/do_dkms
    102112
    103113 $$(vboxguest-sh_0_OUTDIR)/dkms.conf: \
     
    106116                | $$(dir $$@)
    107117        $(call MSG_TOOL,Creating,,$@)
    108         $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" --output $@ $<
     118        $(QUIET)$(SED) \
     119                -e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
     120                --output $@ $<
     121
     122 $$(vboxguest-sh_0_OUTDIR)/do_dkms: \
     123                $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_dkms \
     124                $(VBOX_VERSION_STAMP) \
     125                | $$(dir $$@)
     126        $(call MSG_TOOL,Creating,,$@)
     127        $(QUIET)$(SED) \
     128                -e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
     129                -e "s;_MODULE_;vboxguest;g" \
     130                -e "s;_OLDMODULES_;vboxguest vboxadd vboxsf vboxvfs vboxvideo;g" \
     131                --output $@ $<
    109132
    110133 # scripts.
  • trunk/src/VBox/Additions/common/VBoxGuest/linux/Makefile

    r31518 r32183  
    55
    66#
    7 # Copyright (C) 2006-2009 Oracle Corporation
     7# Copyright (C) 2006-2010 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    222222 endif
    223223 INCL    += $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
     224 INCL    += $(addprefix -I$(KBUILD_EXTMOD)/vboxguest,/ /include /r0drv/linux)
    224225 export INCL
    225226endif
  • trunk/src/VBox/Additions/common/VBoxGuest/linux/dkms.conf

    r21118 r32183  
    1 BUILT_MODULE_NAME=vboxguest
    2 DEST_MODULE_LOCATION=/kernel/misc
    3 PACKAGE_NAME=vboxguest
     1## @file
     2# Linux DKMS config script for the VirtualBox guest kernel modules
     3#
     4
     5#
     6# Copyright (C) 2006-2010 Oracle Corporation
     7#
     8# This file is part of VirtualBox Open Source Edition (OSE), as
     9# available from http://www.virtualbox.org. This file is free software;
     10# you can redistribute it and/or modify it under the terms of the GNU
     11# General Public License (GPL) as published by the Free Software
     12# Foundation, in version 2 as it comes in the "COPYING" file of the
     13# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     14# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     15#
     16
     17PACKAGE_NAME="vboxguest"
    418PACKAGE_VERSION=_VERSION_
    519AUTOINSTALL=yes
    6 POST_BUILD="do_Module.symvers vboxguest save $dkms_tree/$module/$module_version/build/Module.symvers"
     20
     21BUILT_MODULE_NAME[0]="vboxguest"
     22BUILT_MODULE_LOCATION[0]="vboxguest"
     23DEST_MODULE_LOCATION[0]="/kernel/misc"
     24
     25BUILT_MODULE_NAME[1]="vboxsf"
     26BUILT_MODULE_LOCATION[1]="vboxsf"
     27DEST_MODULE_LOCATION[1]="/kernel/misc"
     28
     29BUILT_MODULE_NAME[2]="vboxvideo"
     30BUILT_MODULE_LOCATION[2]="vboxvideo"
     31DEST_MODULE_LOCATION[2]="/kernel/misc"
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