Fix: Support 4.x kernel versions in Makefile
[lttng-modules.git] / Makefile
index 812ba9ba182c20944694346dfe0529c644266c5a..283cc46ae0d530d8d9340af80c2bf0385dd784b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,7 +58,8 @@ lttng-tracer-objs += $(shell \
 endif # CONFIG_PERF_EVENTS
 
 lttng-tracer-objs += $(shell \
-       if [ $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 15 -a $(SUBLEVEL) -ge 0 ] ; then \
+       if [ $(VERSION) -ge 4 \
+               -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 15 -a $(SUBLEVEL) -ge 0 \) ] ; then \
                echo "lttng-tracepoint.o" ; fi;)
 
 obj-m += probes/
This page took 0.022633 seconds and 4 git commands to generate.