X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2FMakefile;h=4de157b3dcdffb3b734dbd4df413639e8f9f696e;hb=c8ad610bc3d41482f620af4df502e6f07126930f;hp=d4baaeb204ab3cdfb65ebca56555c6e6c3910c1b;hpb=45acd1f8016f828cab288ccf77d88e3a9d6ab5e3;p=lttng-modules.git diff --git a/probes/Makefile b/probes/Makefile index d4baaeb2..4de157b3 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -192,14 +192,11 @@ obj-m += $(shell \ echo "lttng-probe-rcu.o" ; fi;) ifneq ($(CONFIG_REGMAP),) -regmap_dep = $(srctree)/drivers/base/regmap/trace.h $(srctree)/include/trace/events/regmap.h -ifneq ($(wildcard $(regmap_dep)),) -obj-m += $(shell \ - if [ $(VERSION) -ge 4 \ - -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 2 \) ] ; then \ - echo "lttng-probe-regmap.o" ; fi;) +regmap_dep_4_1 = $(srctree)/drivers/base/regmap/trace.h +ifneq ($(wildcard $(regmap_dep_4_1)),) +obj-m += lttng-probe-regmap.o else -$(warning Either of files { $(regmap_dep) } not found. Probe "regmap" is disabled. Use full kernel source tree to enable it.) +$(warning File $(regmap_dep_4_1) not found. Probe "regmap" is disabled. Need Linux 4.1+ kernel source tree to enable it.) endif endif