Skip to content

Commit

Permalink
lmdk: fix building system-service modules
Browse files Browse the repository at this point in the history
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 <guennadi.liakhovetski@linux.intel.com>
  • Loading branch information
lyakh committed Jan 29, 2024
1 parent a1deb74 commit 5fd23af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/module/audio/sink_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

#include <module/audio/sink_api.h>
#include <module/audio/audio_stream.h>
#ifdef __SOF_MODULE_SERVICE_BUILD__
#define EXPORT_SYMBOL(...)
#else
#include <rtos/symbol.h>
#endif

/* This file contains public sink API functions that were too large to mark is as inline. */

Expand Down
4 changes: 4 additions & 0 deletions src/module/audio/source_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

#include <module/audio/source_api.h>
#include <module/audio/audio_stream.h>
#ifdef __SOF_MODULE_SERVICE_BUILD__
#define EXPORT_SYMBOL(...)
#else
#include <rtos/symbol.h>
#endif

/* This file contains public source API functions that were too large to mark is as inline. */

Expand Down

0 comments on commit 5fd23af

Please sign in to comment.