Fix: Support 4.x kernel versions in Makefile
[lttng-modules.git] / Makefile
index eeffdfe976b6e51296373c65e59703906341da20..871ff1a71e820533b31ad85b1de13591d1c98a1d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,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.024538 seconds and 4 git commands to generate.