Changeset 6592 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jan 30, 2008 10:24:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module
r6574 r6592 160 160 $(MODULE)-y := $(OBJS) 161 161 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 163 ifeq ($(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,),)) 171 else 172 KFLAGS += $(filter -DKERNEL_FC6,$(patsubst 2.6.18%fc6,-DKERNEL_FC6,$(KERNELRELEASE)) \ 173 $(patsubst 2.6.18%el5,-DKERNEL_FC6,$(KERNELRELEASE))) 174 endif 172 175 173 176 # build defs
Note:
See TracChangeset
for help on using the changeset viewer.