VirtualBox

Ignore:
Timestamp:
Sep 29, 2017 1:35:18 PM (7 years ago)
Author:
vboxsync
Message:

debian/rules: adjust kernel module building to recent Make file changes.
bugref:4567:Linux kernel driver maintenance

When the Linux kernel module Make files were reworked recently we switched
from specifying the kernel to use via a build folder path to specifying
a version and deducing the path. The Debian rules file did not get updated
though, so this change does that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/debian/rules

    r68547 r68931  
    152152        for d in $(wildcard /lib/modules/*); do \
    153153            if [ -L $$d/build ]; then \
    154                 make -C $(builddir)/bin/src/vboxdrv KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
    155                 make -j4 -C $(builddir)/bin/src/vboxdrv KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all; \
    156                 make -C $(builddir)/bin/src/vboxnetflt KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
     154                make -C $(builddir)/bin/src/vboxdrv KERN_VER=$$(basename $$d) clean && \
     155                make -j4 -C $(builddir)/bin/src/vboxdrv KBUILD_VERBOSE= KERN_VER=$$(basename $$d) all; \
     156                make -C $(builddir)/bin/src/vboxnetflt KERN_VER=$$(basename $$d) clean && \
    157157                (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetflt || true) && \
    158                 make -j4 -C $(builddir)/bin/src/vboxnetflt KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all; \
    159                 make -C $(builddir)/bin/src/vboxnetadp KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
     158                make -j4 -C $(builddir)/bin/src/vboxnetflt KBUILD_VERBOSE= KERN_VER=$$(basename $$d) all; \
     159                make -C $(builddir)/bin/src/vboxnetadp KERN_VER=$$(basename $$d) clean && \
    160160                (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetadp || true) && \
    161                 make -j4 -C $(builddir)/bin/src/vboxnetadp KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all; \
    162                 make -C $(builddir)/bin/src/vboxpci KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
     161                make -j4 -C $(builddir)/bin/src/vboxnetadp KBUILD_VERBOSE= KERN_VER=$$(basename $$d) all; \
     162                make -C $(builddir)/bin/src/vboxpci KERN_VER=$$(basename $$d) clean && \
    163163                (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxpci || true) && \
    164                 make -j4 -C $(builddir)/bin/src/vboxpci KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all; \
     164                make -j4 -C $(builddir)/bin/src/vboxpci KBUILD_VERBOSE= KERN_VER=$$(basename $$d) all; \
    165165            fi; \
    166166        done
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