VirtualBox

Ignore:
Timestamp:
Mar 16, 2009 2:01:40 PM (16 years ago)
Author:
vboxsync
Message:

Additions/linux: fixed kernel detection

File:
1 edited

Legend:

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

    r17564 r17935  
    122122
    123123 # guess kernel version (24 or 26)
    124  ifeq ($(shell if grep '"2\.4\.' $(PWD)/include/linux/version.h > /dev/null; then echo yes; fi),yes)
     124 ifeq ($(shell if echo "$(VERSION).$(PATCHLEVEL)." | grep '2\.4\.' > /dev/null; then echo yes; fi),yes)
    125125  KERN_VERSION := 24
    126126 else
     
    164164
    165165# override is required by the Debian guys
    166 override MODULE = \
    167         $(if $(strip $(foreach inc,$(patsubst -I%,%,$(INCL)),\
    168                                         $(wildcard $(inc)/drm/drmP.h))),vboxvideo,)
    169 
    170 OBJS   = \
    171         $(if $(strip $(foreach inc,$(patsubst -I%,%,$(INCL)),\
    172                                         $(wildcard $(inc)/drm/drmP.h))),vboxvideo_drm.o,)
     166override MODULE = vboxvideo
     167OBJS   = vboxvideo_drm.o
    173168
    174169ifeq ($(KERN_VERSION), 24)
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