X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=probes%2FKbuild;h=70a3d8689438793b6f0bb92aa65d03c1c6bd8eda;hb=751494f999a67abe0039a32f1c899c1663732864;hp=2f6c7c76828681cb6795354f4e084f9e3c6e75a2;hpb=bde63753668a9ad61a64046275297450c5b3e8ee;p=lttng-modules.git diff --git a/probes/Kbuild b/probes/Kbuild index 2f6c7c76..70a3d868 100644 --- a/probes/Kbuild +++ b/probes/Kbuild @@ -1,6 +1,6 @@ TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))/.. -include $(TOP_LTTNG_MODULES_DIR)/Makefile.ABI.workarounds +include $(TOP_LTTNG_MODULES_DIR)/Kbuild.common ccflags-y += -I$(TOP_LTTNG_MODULES_DIR) @@ -259,7 +259,11 @@ ifneq ($(CONFIG_KRETPROBES),) endif # CONFIG_KRETPROBES ifneq ($(CONFIG_DYNAMIC_FTRACE),) - obj-$(CONFIG_LTTNG) += lttng-ftrace.o + ifeq ($(have_ftrace_header),yes) + obj-$(CONFIG_LTTNG) += lttng-ftrace.o + else + $(warning Files $(ftrace_dep) not found. Probe "ftrace" is disabled. Use full kernel source tree to enable it.) + endif endif # CONFIG_DYNAMIC_FTRACE # vim:syntax=make