X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2FMakefile;h=d4baaeb204ab3cdfb65ebca56555c6e6c3910c1b;hb=45acd1f8016f828cab288ccf77d88e3a9d6ab5e3;hp=a228f8a4fb8862c2a36e1c9452a97cf3b96b010a;hpb=98e8cf689cf6a5c3f725ed0d540c10a5e687f00b;p=lttng-modules.git diff --git a/probes/Makefile b/probes/Makefile index a228f8a4..d4baaeb2 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -5,6 +5,10 @@ ifneq ($(KERNELRELEASE),) ifneq ($(CONFIG_TRACEPOINTS),) +KERNELDIR=${LTTNG_KERNELDIR} + +include $(KBUILD_EXTMOD)/Makefile.ABI.workarounds + ccflags-y += -I$(PWD)/probes obj-m += lttng-types.o @@ -20,7 +24,7 @@ obj-m += lttng-probe-statedump.o ifneq ($(CONFIG_KVM),) obj-m += lttng-probe-kvm.o ifneq ($(CONFIG_X86),) -kvm_dep = $(srctree)/virt/kvm/iodev.h +kvm_dep = $(srctree)/virt/kvm/iodev.h $(srctree)/include/kvm/iodev.h ifneq ($(wildcard $(kvm_dep)),) CFLAGS_lttng-probe-kvm-x86.o += -I$(srctree)/virt/kvm CFLAGS_lttng-probe-kvm-x86-mmu.o += -I$(srctree)/virt/kvm @@ -188,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),)