VirtualBox

Ignore:
Timestamp:
May 8, 2019 10:57:05 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130448
Message:

Installer/Linux: remove last uses of KBUILD_EXTMOD to simplify building in-tree.
Currently we use the Make variable KBUILD_EXTMOD to distinguish between builds
inside the Linux kernel kbuild system and outside of it. However, if our
kernel modules are build inside a kernel tree as part of a kernel build this
does not work, as they are no longer external modules. So replace those
checks with checks against KERNELRELEASE, and remove other uses of the
variable while we are at it. Said other uses are inside the host module
top-level Make file. I am not actually aware of any users of this file,
though if we ever build those modules as part of a kernel build it might be
useful.

File:
1 edited

Legend:

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

    r77956 r78446  
    1515#
    1616
    17 ifneq ($(KBUILD_EXTMOD),)
     17ifneq ($(KERNELRELEASE),)
    1818
    19 # Building from kBuild (make -C <kernel_directory> M=`pwd`).
    20 # KBUILD_EXTMOD is set to $(M) in this case.
     19# Building from kBuild (make -C <kernel_directory> M=`pwd`)
     20# or inside a kernel source tree.
    2121
    2222obj-m = vboxguest/ vboxsf/ vboxvideo/
    2323
    24 else # ! KBUILD_EXTMOD
     24else # ! KERNELRELEASE
    2525
    2626KBUILD_VERBOSE =
     
    108108.PHONY: vboxguest vboxsf vboxvideo all install clean check load
    109109
    110 endif # ! KBUILD_EXTMOD
     110endif # ! KERNELRELEASE
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