From: Samu Voutilainen Date: Mon, 22 Apr 2013 17:05:05 +0000 (-0400) Subject: Stop build if CONFIG_TRACEPOINTS is not set X-Git-Tag: v2.2.0-rc2~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=699f9673466e1a6537ad23cc697b79660639f260;p=lttng-modules.git Stop build if CONFIG_TRACEPOINTS is not set Previously it just tries to compile with zero modules, which is confusing if you thought you had configured everything correctly. Now it throws an error which tells which went wrong. Fixes #506 Signed-off-by: Mathieu Desnoyers --- diff --git a/Makefile b/Makefile index 39672afc..fcb14f2f 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,13 @@ # ifneq ($(KERNELRELEASE),) + +ifeq ($(CONFIG_TRACEPOINTS),) + +$(error You need to enable CONFIG_TRACEPOINTS in kernel!) + +endif #CONFIG_TRACEPOINTS + ifneq ($(CONFIG_TRACEPOINTS),) obj-m += lttng-ring-buffer-client-discard.o