VirtualBox

vbox的更動 69086 路徑 trunk/src/VBox


忽略:
時間撮記:
2017-10-13 下午06:29:42 (7 年 以前)
作者:
vboxsync
訊息:

Linux kernel module builds: Use KERN_VER not KERN_DIR to specify a kernel.
bugref:4567: Linux kernel driver maintenance

Some time ago I changed to specifying the kernel version using KERN_VER
rather than the kernel build directory using KERN_DIR when building modules
for the non-default kernel. Some places did not get updated. This change
fixes that.

位置:
trunk/src/VBox
檔案:
修改 4 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/linux/installer/install.sh.in

    r67818 r69086  
    2121#   built matches the one loaded and 2 is returned otherwise.  E.g. VBoxClient
    2222#   running will prevent vboxguest reloading.
    23 # * If the kernel modules cannot be built (run the installer with KERN_DIR=/) or
    24 #   loaded (run with KERN_VER=<installed non-current version>) then 1 is returned.
     23# * If the kernel modules cannot be built (run the installer with KERN_VER=none)
     24#   or loaded (run with KERN_VER=<installed non-current version>) then 1 is
     25#   returned.
    2526
    2627PATH=$PATH:/bin:/sbin:/usr/sbin
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r68849 r69086  
    418418#!/bin/sh
    419419test -d "/lib/modules/\${1}/build" || exit 0
    420 KERN_DIR="/lib/modules/\${1}/build" MODULE_DIR="/lib/modules/\${1}/misc" \
    421 /sbin/rcvboxadd quicksetup
     420KERN_VER="\${1}" /sbin/rcvboxadd quicksetup
    422421exit 0
    423422EOF
  • trunk/src/VBox/Installer/linux/install.sh

    r67054 r69086  
    1919# * After successful installation, 0 is returned if the vboxdrv module version
    2020#   built matches the one loaded.
    21 # * If the kernel modules cannot be built (run the installer with KERN_DIR=/) or
    22 #   loaded (run with KERN_DIR=/lib/modules/<installed non-current version>/build)
     21# * If the kernel modules cannot be built (run the installer with KERN_VER=none)
     22#   or loaded (run with KERN_VER=<installed non-current version>)
    2323#   then 1 is returned.
    2424
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r68128 r69086  
    111111      --save-module-symvers /tmp/vboxdrv-Module.symvers \
    112112      --module-source `pwd`/src/vboxhost/vboxdrv \
    113       KBUILD_VERBOSE= KERN_DIR=$d/build MODULE_DIR=$RPM_BUILD_ROOT/$d/misc -j4 \
     113      KBUILD_VERBOSE= KERN_VER=${d%/lib/modules/} INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
    114114      %INSTMOD%
    115115    ./src/vboxhost/build_in_tmp \
    116116      --use-module-symvers /tmp/vboxdrv-Module.symvers \
    117117      --module-source `pwd`/src/vboxhost/vboxnetflt \
    118       KBUILD_VERBOSE= KERN_DIR=$d/build MODULE_DIR=$RPM_BUILD_ROOT/$d/misc -j4 \
     118      KBUILD_VERBOSE= KERN_VER=${d%/lib/modules/} INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
    119119      %INSTMOD%
    120120    ./src/vboxhost/build_in_tmp \
    121121      --use-module-symvers /tmp/vboxdrv-Module.symvers \
    122122      --module-source `pwd`/src/vboxhost/vboxnetadp \
    123       KBUILD_VERBOSE= KERN_DIR=$d/build MODULE_DIR=$RPM_BUILD_ROOT/$d/misc -j4 \
     123      KBUILD_VERBOSE= KERN_VER=${d%/lib/modules/} INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
    124124      %INSTMOD%
    125125    ./src/vboxhost/build_in_tmp \
    126126      --use-module-symvers /tmp/vboxdrv-Module.symvers \
    127127      --module-source `pwd`/src/vboxhost/vboxpci \
    128       KBUILD_VERBOSE= KERN_DIR=$d/build MODULE_DIR=$RPM_BUILD_ROOT/$d/misc -j4 \
     128      KBUILD_VERBOSE= KERN_VER=${d%/lib/modules/} INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
    129129      %INSTMOD%
    130130  fi
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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