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