From 699f9673466e1a6537ad23cc697b79660639f260 Mon Sep 17 00:00:00 2001 From: Samu Voutilainen Date: Mon, 22 Apr 2013 13:05:05 -0400 Subject: [PATCH] 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 --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.34.1