VirtualBox

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


Ignore:
Timestamp:
Oct 13, 2017 6:29:42 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118374
Message:

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.

Location:
trunk/src/VBox/Additions/linux/installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
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