VirtualBox

Ignore:
Timestamp:
Aug 18, 2008 1:10:24 PM (16 years ago)
Author:
vboxsync
Message:

Linux additions: fixed rhel5/fc6/centos test when compiling the vboxvfs kernel module

File:
1 edited

Legend:

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

    r8155 r11463  
    173173             $(if $(wildcard $(inc)/linux/utsrelease.h),\
    174174               $(if $(shell if grep -q '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h;\
    175                  then echo yes; fi),-DKERNEL_FC6,),) \
     175                            then echo yes; fi),-DKERNEL_FC6,),) \
    176176             $(if $(wildcard $(inc)/linux/utsrelease.h),\
    177177               $(if $(shell if grep -q '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h;\
    178                  then echo yes; fi),-DKERNEL_FC6,),))
     178                            then echo yes; fi),-DKERNEL_FC6,),))
    179179else
    180  KFLAGS += $(filter -DKERNEL_FC6,$(patsubst 2.6.18%fc6,-DKERNEL_FC6,$(KERNELRELEASE)) \
    181                                  $(patsubst 2.6.18%el5,-DKERNEL_FC6,$(KERNELRELEASE)))
     180 KFLAGS += $(if $(shell if echo "$(KERNELRELEASE)"|grep -q '2.6.18.*fc6.*';\
     181                        then echo yes; fi),-DKERNEL_FC6,) \
     182           $(if $(shell if echo "$(KERNELRELEASE)"|grep -q '2.6.18.*el5.*';\
     183                        then echo yes; fi),-DKERNEL_FC6,)
    182184endif
    183185
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