Documentation: lttng-modules 2.8 supports Linux < 4.10
[lttng-modules.git] / Makefile
index 8602649a0d3b3890e30920c8437003e9a3fb82e0..93ad9e7ddf736b9cf4af498eddc1bf574af94287 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,13 @@ ifneq ($(KERNELRELEASE),)
     endif
   endif
 
+  ifneq ($(shell \
+    if [ $(VERSION) -ge 5 \
+      -o \( $(VERSION) -eq 4 -a $(PATCHLEVEL) -ge 10 \) ] ; then \
+      echo "true" ; fi;),)
+    $(warning You are entering uncharted territories adventurer! Proceed with utmost caution (also, lttng-modules 2.8 does not support Linux >= 4.10. You should upgrade to a newer lttng-modules version.))
+  endif
+
   include $(TOP_LTTNG_MODULES_DIR)/Makefile.ABI.workarounds
 
   ccflags-y += -I$(TOP_LTTNG_MODULES_DIR)
This page took 0.023125 seconds and 4 git commands to generate.