VirtualBox

Changeset 69563 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Nov 3, 2017 2:32:12 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118912
Message:

Additions/linux/drm: better detection for EL7 variants.
bugref:4567: Linux kernel driver maintenance

r118292/r68647 was very invasive and broke Debian 9 on top. This change
refines the check for supported guests for the drm driver by checking the
kernel version string to be sure that it either starts with a supported
version (that is, not 3.10.x or older) or contains the EL7 signature.

File:
1 edited

Legend:

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

    r69500 r69563  
    2222include $(obj)/Makefile.include.header
    2323
    24 BUILD = 1
     24BUILD =
    2525
    26 # We want to build on Linux 3.11 and later, plus the 3.10 EL 7.3 and later
    27 # kernels.  This file was added in 3.11 and back-ported to the EL 7.3 kernel.
    28 ifeq ($(wildcard $(KERN_INCL)/drm/drm_rect.h),)
    29  BUILD =
     26# We want to build on Linux 3.11 and later and on all EL 7 kernels.
     27ifneq ($(filter-out 1.% 2.% 3.0.% 3.1.% 3.2.% 3.3.% 3.4.% 3.5.% 3.6.% 3.7.% \
     28                    3.8.% 3.9.% 3.10.%,$(KERN_VER)),)
     29 BUILD = 1
    3030endif
    31 
    32 # And we do not want to build on EL6, regardless of what may have been
    33 # backported.
    34 ifneq ($(wildcard /etc/redhat-release),)
    35  ifneq ($(shell grep "Enterprise.*release 6" /etc/redhat-release),)
    36   BUILD =
    37  endif
     31ifeq ($(filter-out %.el7.x86_64,$(KERN_VER)),)
     32 BUILD = 1
    3833endif
    3934
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