Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lmdk: fix building system-service modules #8812

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/module/audio/sink_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@

#include <module/audio/sink_api.h>
#include <module/audio/audio_stream.h>
/*
* When building native system-service modules only exported module headers can
* be included, autoconf.h isn't included either. To identify such a build we
* need any symbol that is guaranteed to be defined with any SOF build.
* CONFIG_CORE_COUNT is such a symbol, it is always defined to an integer number
*/
#ifndef CONFIG_CORE_COUNT
#define EXPORT_SYMBOL(...)
#else
#include <rtos/symbol.h>
#endif
marc-hb marked this conversation as resolved.
Show resolved Hide resolved

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

Expand Down
11 changes: 10 additions & 1 deletion src/module/audio/source_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@
* Copyright(c) 2023 Intel Corporation. All rights reserved.
*/


#include <module/audio/source_api.h>
#include <module/audio/audio_stream.h>
/*
* When building native system-service modules only exported module headers can
* be included, autoconf.h isn't included either. To identify such a build we
* need any symbol that is guaranteed to be defined with any SOF build.
* CONFIG_CORE_COUNT is such a symbol, it is always defined to an integer number
*/
#ifndef CONFIG_CORE_COUNT
#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
Loading