X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=Makefile;h=9a0effcfc483d605a19547f8b488f64296772f10;hb=1d443b34028ae43e9c9ee48fd19ece3edb9ae074;hp=517d1f7502f49476be05c95c2b78b94d77d59b0c;hpb=09fec6b43d11b3e0ece36f9e9e44b9627c1b565d;p=lttng-modules.git diff --git a/Makefile b/Makefile index 517d1f75..9a0effcf 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,9 @@ ltt-relay-objs := ltt-events.o ltt-debugfs-abi.o \ lttng-context-vppid.o ifneq ($(CONFIG_PERF_EVENTS),) -ltt-relay-objs += lttng-context-perf-counters.o +ltt-relay-objs += $(shell \ + if [ $(VERSION) -ge 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 33 ] ; then \ + echo "lttng-context-perf-counters.o" ; fi;) endif obj-m += probes/