VirtualBox

Changeset 69565 in vbox


Ignore:
Timestamp:
Nov 3, 2017 2:42:20 PM (7 years ago)
Author:
vboxsync
Message:

Linux module make files: allow overriding kernel version detection.
bugref:4567: Linux kernel driver maintenance
If we pass the KERN_DIR flag to Linux kernel module builds, we try to
extract the version from that. Allow overriding that with KERN_VER.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.include.header

    r69527 r69565  
    9595 # kernel base directory
    9696 ifdef KERN_DIR
    97   ifeq ($(filter %/build,$(KERN_DIR)),)
    98    $(error The variable KERN_DIR must be a kernel build folder and end with /build without a trailing slash)
     97  ifndef KERN_VER
     98   ifeq ($(filter %/build,$(KERN_DIR)),)
     99    $(error The variable KERN_DIR must be a kernel build folder and end with /build without a trailing slash, or KERN_VER must be set)
     100   endif
    99101  endif
    100102 endif
     
    138140ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
    139141 $(error Error: unable to find the headers of the Linux kernel to build against. \
    140           Specify KERN_VER=<version> and run Make again)
     142          Specify KERN_VER=<version> (currently $(KERN_VER)) and run Make again)
    141143endif
    142144# Kernel include folder
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