dma-trace: add build condition for dma trace

Only compile dma-trace.c when BUILD_DMA_TRACE is true.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Acked-by: Yan Wang <yan.wang@linux.intel.com>
This commit is contained in:
Keyon Jie 2017-12-22 23:10:56 +08:00 committed by Liam Girdwood
parent 3318a16455
commit 1a8a653af8
2 changed files with 7 additions and 1 deletions

View File

@ -132,6 +132,8 @@ AS_IF([test "x$enable_dma_trace" != "xno"], [
AC_DEFINE([CONFIG_DMA_TRACE], [1], [Configure DMA trace])
])
AM_CONDITIONAL(BUILD_DMA_TRACE, test "x$enable_dma_trace" != "xno")
# Test after CFLAGS set othewise test of cross compiler fails.
AM_PROG_AS
AM_PROG_AR

View File

@ -6,9 +6,13 @@ libcore_a_SOURCES = \
work.c \
notifier.c \
trace.c \
dma-trace.c \
schedule.c
if BUILD_DMA_TRACE
libcore_a_SOURCES += \
dma-trace.c
endif
libcore_a_CFLAGS = \
$(ARCH_CFLAGS) \
$(ARCH_INCDIR) \