Stop build if CONFIG_TRACEPOINTS is not set
authorSamu Voutilainen <smar@smar.fi>
Mon, 22 Apr 2013 17:05:05 +0000 (13:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Apr 2013 17:05:37 +0000 (13:05 -0400)
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 <mathieu.desnoyers@efficios.com>
Makefile

index 39672afc61b29e506e8ff4fb66eb486f00fd2177..fcb14f2fcefc45710e67d50b33f887548ec459d6 100644 (file)
--- 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
This page took 0.02723 seconds and 4 git commands to generate.