VirtualBox

Changeset 69090 in vbox for trunk


Ignore:
Timestamp:
Oct 13, 2017 8:25:36 PM (7 years ago)
Author:
vboxsync
Message:

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

Attempt to fix a problem with RPM percent-quoting in the last change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r69087 r69090  
    111111      --save-module-symvers /tmp/vboxdrv-Module.symvers \
    112112      --module-source `pwd`/src/vboxhost/vboxdrv \
    113       KBUILD_VERBOSE= KERN_VER=${d%%/lib/modules/} INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
     113      KBUILD_VERBOSE= KERN_VER=$(basename $d) 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_VER=${d%%/lib/modules/} INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
     118      KBUILD_VERBOSE= KERN_VER=$(basename $d) 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_VER=${d%%/lib/modules/} INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
     123      KBUILD_VERBOSE= KERN_VER=$(basename $d) 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_VER=${d%%/lib/modules/} INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
     128      KBUILD_VERBOSE= KERN_VER=$(basename $d) INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
    129129      %INSTMOD%
    130130  fi
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