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 <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-04-30 12:49:47 +02:00 committed by Liam Girdwood
parent 1e4ff1ed5b
commit e111252a5f
2 changed files with 14 additions and 13 deletions

View File

@ -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

View File

@ -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