mirror of https://github.com/thesofproject/sof.git
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 <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
a5bdcce1e1
commit
45dc968cb2
|
@ -5,7 +5,17 @@
|
||||||
|
|
||||||
#include <module/audio/sink_api.h>
|
#include <module/audio/sink_api.h>
|
||||||
#include <module/audio/audio_stream.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>
|
#include <rtos/symbol.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This file contains public sink API functions that were too large to mark is as inline. */
|
/* This file contains public sink API functions that were too large to mark is as inline. */
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,19 @@
|
||||||
* Copyright(c) 2023 Intel Corporation. All rights reserved.
|
* Copyright(c) 2023 Intel Corporation. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <module/audio/source_api.h>
|
#include <module/audio/source_api.h>
|
||||||
#include <module/audio/audio_stream.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>
|
#include <rtos/symbol.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This file contains public source API functions that were too large to mark is as inline. */
|
/* This file contains public source API functions that were too large to mark is as inline. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue