VirtualBox

Ignore:
Timestamp:
Aug 28, 2020 6:36:30 PM (4 years ago)
Author:
vboxsync
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/HostDrivers/VBoxNetAdp/linux/Makefile

    r84947 r85939  
    2525#
    2626
    27 # Find the directory of this makefile.
    28 VBOXNETADPT_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
    29 
    3027# Linux kbuild sets this to our source directory if we are called from there
    3128obj ?= $(CURDIR)
    3229include $(obj)/Makefile-header.gmk
     30VBOXNETADP_DIR := $(VBOX_MODULE_SRC_DIR)
     31
     32# Allow building directly from the subdirectory without assuming the toplevel
     33# makefile has done the copying. Not the default use case, but can be handy.
     34ifndef KBUILD_EXTRA_SYMBOLS
     35KBUILD_EXTRA_SYMBOLS=$(abspath $(VBOXNETADP_DIR)/../vboxdrv/Module.symvers)
     36endif
    3337
    3438VBOXMOD_NAME = vboxnetadp
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