VirtualBox

Changeset 69529 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 30, 2017 5:42:36 PM (7 years ago)
Author:
vboxsync
Message:

Linux drivers: make it easier to use different kernel headers.
bugref:4567: Linux kernel driver maintenance

With this change it is possible to pass KERN_DIR on the command line to
specify which kernel headers to do test builds of kernel modules against.
The default is now the most recent headers found, not the matching headers
for the currently running kernel.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r69528 r69529  
    364364 && "$(KBUILD_HOST_ARCH)" == "$(KBUILD_TARGET_ARCH)"
    365365
    366  $(foreach module, vboxguest-mod vboxsf-mod vboxvideo-mod, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST)))
     366 ifneq ($(KERN_DIR),)
     367  $(foreach module, vboxguest-mod vboxsf-mod vboxvideo-mod, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST)))
     368 endif
    367369
    368370endif
  • trunk/src/VBox/HostDrivers/Makefile.kmk

    r69528 r69529  
    7777 && "$(KBUILD_HOST_ARCH)" == "$(KBUILD_TARGET_ARCH)"
    7878
    79  $(foreach module, vboxdrv-mod VBoxNetFlt-src VBoxNetAdp-src VBoxPci-src, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST)))
     79 ifneq ($(KERN_DIR),)
     80  $(foreach module, vboxdrv-mod VBoxNetFlt-src VBoxNetAdp-src VBoxPci-src, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST)))
     81 endif
    8082
    8183endif
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