Disable block layer tracing support for kernels < 2.6.38
[lttng-modules.git] / probes / Makefile
index 794a06993a8e0efac2a8147b6c3bf0fd8c1119ac..2b61ce5fd17c1f0aab2538e10fcbc3190a93657d 100644 (file)
@@ -19,7 +19,10 @@ endif
 
 ifneq ($(CONFIG_BLOCK),)
 ifneq ($(CONFIG_EVENT_TRACING),)       # need blk_cmd_buf_len
-obj-m += lttng-probe-block.o
+obj-m +=  $(shell \
+       if [ $(VERSION) -ge 3 \
+               -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
+               echo "lttng-probe-block.o" ; fi;)
 endif
 endif
 
This page took 0.024807 seconds and 4 git commands to generate.