VirtualBox

Ignore:
Timestamp:
Aug 28, 2020 6:36:30 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140134
Message:

Additions/linux/Makefile, HostDrivers/linux/Makefile: Many cleanups in the Linux kernel module Makefiles, making them more uniform, and allow install of individual modules. Additionally, allow building of the kernel modules straight from the respective subdirectory (no dependencies across directories, so vboxdrv/vboxguest still needs to be built first, otherwise you end up with undefined symbols). Finally some parallelization improvements. At the top level still uses the Module.symvers copying and somewhat quirky KBUILD_EXTRA_SYMBOLS pointing to the copy, because this is backwards compatible to before KBUILD_EXTRA_SYMBOLS was invented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/Makefile.module.kms

    r82968 r85939  
    2222include $(obj)/Makefile-header.gmk
    2323VBOXDRM_DIR = $(VBOX_MODULE_SRC_DIR)
     24
     25# Allow building directly from the subdirectory without assuming the toplevel
     26# makefile has done the copying. Not the default use case, but can be handy.
     27ifndef KBUILD_EXTRA_SYMBOLS
     28KBUILD_EXTRA_SYMBOLS=$(abspath $(VBOXDRM_DIR)/../vboxguest/Module.symvers)
     29endif
    2430
    2531# We want to build on Linux 3.11 and later and on all EL 7 kernels.
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