[Sound-open-firmware] [PATCH] dma-trace: add build condition for dma trace
yanwang
yan.wang at linux.intel.com
Fri Dec 22 10:50:53 CET 2017
On Fri, 2017-12-22 at 16:32 +0800, Keyon Jie wrote:
> Only compile dma-trace.c when BUILD_DMA_TRACE is true.
>
> Signed-off-by: Keyon Jie <yang.jie at linux.intel.com>
Acked-by: Yan Wang <yan.wang at linux.intel.com>
> ---
> configure.ac | 2 ++
> src/lib/Makefile.am | 6 +++++-
> 2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 353987b..f41d9f4 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -226,6 +226,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")
> +
> PLATFORM_BOOT_LDR_LDSCRIPT="boot_ldr.x"
> AC_SUBST(PLATFORM_BOOT_LDR_LDSCRIPT)
>
> diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
> index 53b99a2..a168c2c 100644
> --- a/src/lib/Makefile.am
> +++ b/src/lib/Makefile.am
> @@ -6,10 +6,14 @@ libcore_a_SOURCES = \
> work.c \
> notifier.c \
> trace.c \
> - dma-trace.c \
> schedule.c \
> interrupt.c
>
> +if BUILD_DMA_TRACE
> +libcore_a_SOURCES += \
> + dma-trace.c
> +endif
> +
> libcore_a_CFLAGS = \
> $(ARCH_CFLAGS) \
> $(ARCH_INCDIR) \
More information about the Sound-open-firmware
mailing list