From ee94b09af65c223167e88d117e325ba7b5887399 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Mon, 29 Jan 2024 14:35:16 +0100 Subject: [PATCH] lmdk: fix building system-service modules System-service modules cannot include Zephyr headers and don't use exported symbols, they link sink_api.c and source_api.c into their images. Disable symbol exporting for them. Signed-off-by: Guennadi Liakhovetski --- src/module/audio/sink_api.c | 4 ++++ src/module/audio/source_api.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/module/audio/sink_api.c b/src/module/audio/sink_api.c index 8bdfc99fcdc1..86cbbe3e296f 100644 --- a/src/module/audio/sink_api.c +++ b/src/module/audio/sink_api.c @@ -5,7 +5,11 @@ #include #include +#ifdef MAJOR_IADSP_API_VERSION +#define EXPORT_SYMBOL(...) +#else #include +#endif /* This file contains public sink API functions that were too large to mark is as inline. */ diff --git a/src/module/audio/source_api.c b/src/module/audio/source_api.c index e36dbdf8a0ba..13d75591a0f7 100644 --- a/src/module/audio/source_api.c +++ b/src/module/audio/source_api.c @@ -3,10 +3,13 @@ * Copyright(c) 2023 Intel Corporation. All rights reserved. */ - #include #include +#ifdef MAJOR_IADSP_API_VERSION +#define EXPORT_SYMBOL(...) +#else #include +#endif /* This file contains public source API functions that were too large to mark is as inline. */