From e111252a5f7cbd451a64a057cec13905f0de0666 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 30 Apr 2021 12:49:47 +0200 Subject: [PATCH] zephyr: move library platform code to platform.c Move logging code and static data to platform/library and declare a LOG module properly. Signed-off-by: Guennadi Liakhovetski --- src/platform/library/platform.c | 14 ++++++++++++++ zephyr/wrapper.c | 13 ------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/platform/library/platform.c b/src/platform/library/platform.c index add208dd3..2166ddd1f 100644 --- a/src/platform/library/platform.c +++ b/src/platform/library/platform.c @@ -61,3 +61,17 @@ int platform_init(struct sof *sof) return 0; } + +#ifdef __ZEPHYR__ +/* Stubs for unsupported architectures */ + +/* Platform */ +int platform_boot_complete(uint32_t boot_message) +{ + return 0; +} + +/* Logging */ +LOG_MODULE_REGISTER(sof); + +#endif diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 9bdf63bf8..786c15b3c 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -552,16 +552,3 @@ struct idc **idc_get(void) } #endif -#if CONFIG_LIBRARY -/* Dummies for unsupported architectures */ - -/* Platform */ -int platform_boot_complete(uint32_t boot_message) -{ - return 0; -} - -/* Logging */ -const struct log_source_const_data log_const_sof; - -#endif