Fix: allow LTTng to be built within kernel tree
[lttng-modules.git] / probes / Makefile
index f0325c875e2cb3f233fdd1c3181794c0e20dc5dd..0314a5e2205679616f015a37dd7ec727fd3f6270 100644 (file)
@@ -5,9 +5,10 @@
 ifneq ($(KERNELRELEASE),)
 ifneq ($(CONFIG_TRACEPOINTS),)
 
-KERNELDIR=${LTTNG_KERNELDIR}
+KERNELDIR = ${LTTNG_KERNELDIR}
+MAKEFILEDIR = $(shell dirname $(lastword $(MAKEFILE_LIST)))
 
-include $(KBUILD_EXTMOD)/Makefile.ABI.workarounds
+include $(MAKEFILEDIR)/../Makefile.ABI.workarounds
 
 ccflags-y += -I$(PWD)/probes
 obj-m += lttng-types.o
This page took 0.023161 seconds and 4 git commands to generate.