From 5fd23af17a77c204cfb76e0a4c5a24e26995a7ca 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 | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/module/audio/sink_api.c b/src/module/audio/sink_api.c index 8bdfc99fcdc1..e4d54d51ad12 100644 --- a/src/module/audio/sink_api.c +++ b/src/module/audio/sink_api.c @@ -5,7 +5,11 @@ #include #include +#ifdef __SOF_MODULE_SERVICE_BUILD__ +#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..1950f0c8caa9 100644 --- a/src/module/audio/source_api.c +++ b/src/module/audio/source_api.c @@ -6,7 +6,11 @@ #include #include +#ifdef __SOF_MODULE_SERVICE_BUILD__ +#define EXPORT_SYMBOL(...) +#else #include +#endif /* This file contains public source API functions that were too large to mark is as inline. */