Fix: trigger build error if CONFIG_TRACEPOINTS is not set
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 11 May 2016 02:06:18 +0000 (22:06 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 11 May 2016 02:06:18 +0000 (22:06 -0400)
Fixes: #1015
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile

index 6bf4d2879a8d46d5bed3067b8b3c47f2b629fb82..8fa115d2e2358458bcc2c9d219378d3bd3e4cd7a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,10 @@
 #
 
 ifneq ($(KERNELRELEASE),)
-ifneq ($(CONFIG_TRACEPOINTS),)
+
+ifeq ($(CONFIG_TRACEPOINTS),)
+$(error The option CONFIG_TRACEPOINTS needs to be enabled in your kernel configuration)
+endif # CONFIG_TRACEPOINTS
 
 KERNELDIR = ${LTTNG_KERNELDIR}
 MAKEFILEDIR = $(shell dirname $(lastword $(MAKEFILE_LIST)))
@@ -73,8 +76,6 @@ lttng-statedump-objs := lttng-statedump-impl.o wrapper/irqdesc.o \
 obj-m += probes/
 obj-m += lib/
 
-endif # CONFIG_TRACEPOINTS
-
 else # KERNELRELEASE
        KERNELDIR ?= /lib/modules/$(shell uname -r)/build
        PWD := $(shell pwd)
This page took 0.026579 seconds and 4 git commands to generate.