Fix: dma-fence.h appears in Linux 4.10, not 4.9
[lttng-modules.git] / src / probes / Kbuild
index aa002534ab5424e59318f8c6b86715f935a807e6..aa268607eb5a4fe6ad08e2135f03440bbb19977b 100644 (file)
@@ -97,6 +97,13 @@ endif # CONFIG_X86
 
 obj-$(CONFIG_LTTNG) += lttng-probe-signal.o
 
+ifneq ($(CONFIG_DMA_SHARED_BUFFER),)
+  obj-$(CONFIG_LTTNG) += $(shell \
+    if [ $(VERSION) -ge 5 \
+       -o \( $(VERSION) -eq 4 -a $(PATCHLEVEL) -ge 10 \) ] ; then \
+      echo "lttng-probe-dma-fence.o" ; fi;)
+endif # CONFIG_DMA_SHARED_BUFFER
+
 ifneq ($(CONFIG_BLOCK),)
   # need blk_cmd_buf_len
   ifneq ($(CONFIG_EVENT_TRACING),)
This page took 0.024035 seconds and 4 git commands to generate.