X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=blobdiff_plain;f=probes%2FMakefile;h=b2dd3af4378383b27ddbd9bd6f1d9a4c9f98f44b;hp=4d38199e37c1208ac79b23addd49fce2c54755a1;hb=911f9f47ff18efe784faaf0d8476304d8435fd27;hpb=cd041d0c2077c6d64a6aea6c1e76d186c9fe6f0f diff --git a/probes/Makefile b/probes/Makefile index 4d38199e..b2dd3af4 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -192,10 +192,15 @@ 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;) +else +$(warning Either of files { $(regmap_dep) } not found. Probe "regmap" is disabled. Use full kernel source tree to enable it.) +endif endif ifneq ($(CONFIG_PM_RUNTIME),)