mirror of https://github.com/thesofproject/sof.git
ipc4: logging: fix library build
Fix build with CONFIG_LIBRARY. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
deb7a097e3
commit
545ab19ff5
|
@ -8,10 +8,20 @@
|
|||
|
||||
#define SOF_IPC4_LOGGING_MTRACE_PAGE_SIZE 0x1000
|
||||
|
||||
#if CONFIG_LIBRARY
|
||||
static inline int ipc4_logging_enable_logs(bool first_block,
|
||||
bool last_block,
|
||||
uint32_t data_offset_or_size,
|
||||
const char *data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
int ipc4_logging_enable_logs(bool first_block,
|
||||
bool last_block,
|
||||
uint32_t data_offset_or_size,
|
||||
const char *data);
|
||||
#endif
|
||||
|
||||
int ipc4_logging_shutdown(void);
|
||||
|
||||
|
|
|
@ -14,9 +14,10 @@
|
|||
#include <ipc4/base_fw.h>
|
||||
#include <ipc4/error_status.h>
|
||||
#include <ipc4/logging.h>
|
||||
#if !CONFIG_LIBRARY
|
||||
#include <zephyr/logging/log_backend.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
#endif
|
||||
#if CONFIG_LOG_BACKEND_SOF_PROBE
|
||||
#include <sof/probe/probe.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue