VirtualBox

Changeset 69569 in vbox


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

Linux kernel module make files: better kernel header selection.
bugref:4567: Linux kernel driver maintenance

r118872/r69529 changed our Linux kernel module test builds to use the most
recent kernel headers found on the system. However, we used the GNU Make
sort function, which sorts alphanumerically but does not understand software
versions. As I could not find a good fix for this problem, this change
switches to using the most recent headers by modification date of the
folder. While this is likely to get it wrong sometimes too, it is much less
likely to get it badly wrong.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r69567 r69569  
    42084208 ifndef KERN_DIR
    42094209  ifndef KERN_VER
    4210    KERN_VER=$(notdir $(lastword $(sort $(wildcard /lib/modules/*))))
     4210   KERN_VER=$(notdir $(lastword $(shell LC_ALL=C ls -t /lib/modules/)))
    42114211  endif
    42124212  ifneq ($(KERN_VER),)
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