mirror of https://github.com/thesofproject/sof.git
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:
parent
3318a16455
commit
1a8a653af8
|
@ -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
|
||||
|
|
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue