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>
#
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