VirtualBox

Changeset 6592 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 30, 2008 10:24:13 AM (17 years ago)
Author:
vboxsync
Message:

fixed detection of 2.6.18 fc6/rhel5

File:
1 edited

Legend:

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

    r6574 r6592  
    160160$(MODULE)-y  := $(OBJS)
    161161
    162 # detect FC6 2.6.18
    163 KFLAGS += $(foreach inc,$(KERN_INCL),\
    164             $(if $(wildcard $(inc)/linux/utsrelease.h),\
    165               $(if $(shell if grep -q '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h;\
    166                 then echo yes; fi),-DKERNEL_FC6,),))
    167 # detect rhel5 2.6.18
    168 KFLAGS += $(foreach inc,$(KERN_INCL),\
    169             $(if $(wildcard $(inc)/linux/utsrelease.h),\
    170               $(if $(shell if grep -q '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h;\
    171                 then echo yes; fi),-DKERNEL_FC6,),))
     162# special hack for FC6 2.6.18 and rhel5 2.6.18
     163ifeq ($(KERNELRELEASE),)
     164 KFLAGS += $(foreach inc,$(KERN_INCL),\
     165             $(if $(wildcard $(inc)/linux/utsrelease.h),\
     166               $(if $(shell if grep -q '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h;\
     167                 then echo yes; fi),-DKERNEL_FC6,),) \
     168             $(if $(wildcard $(inc)/linux/utsrelease.h),\
     169               $(if $(shell if grep -q '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h;\
     170                 then echo yes; fi),-DKERNEL_FC6,),))
     171else
     172 KFLAGS += $(filter -DKERNEL_FC6,$(patsubst 2.6.18%fc6,-DKERNEL_FC6,$(KERNELRELEASE)) \
     173                                 $(patsubst 2.6.18%el5,-DKERNEL_FC6,$(KERNELRELEASE)))
     174endif
    172175
    173176# build defs
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