diff --git a/src/arch/xtensa/Kconfig b/src/arch/xtensa/Kconfig index e015a80f1e2a..3bb2d4abd80d 100644 --- a/src/arch/xtensa/Kconfig +++ b/src/arch/xtensa/Kconfig @@ -8,12 +8,3 @@ config NO_SECONDARY_CORE_ROM help Indicates that secondary core have rom, alternate reset vector is needed if not - -config WAKEUP_HOOK - bool - default n - help - Enables hook that is called and after coming back from WAITI. - This config should be selected by other platform-level configs. - Platforms that use it, have to implement hook function - platform_interrupt_on_wakeup. diff --git a/src/init/init.c b/src/init/init.c index 486ce49a2147..ddb4c604b4a6 100644 --- a/src/init/init.c +++ b/src/init/init.c @@ -90,8 +90,6 @@ static inline void lp_sram_unpack(void) #if CONFIG_MULTICORE -#ifdef __ZEPHYR__ - static bool check_restore(void) { struct idc *idc = *idc_get(); @@ -107,75 +105,11 @@ static bool check_restore(void) static inline int secondary_core_restore(void) { return 0; }; -#else - -static bool check_restore(void) -{ - struct idc *idc = *idc_get(); - struct task *task = *task_main_get(); - struct notify *notifier = *arch_notify_get(); - struct schedulers *schedulers = *arch_schedulers_get(); - - /* check whether basic core structures has been already allocated. If they - * are available in memory, it means that this is not cold boot and memory - * has not been powered off. - */ - return !!idc && !!task && !!notifier && !!schedulers; -} - -static int secondary_core_restore(void) -{ - int err; - - trace_point(TRACE_BOOT_PLATFORM_IRQ); - - /* initialize interrupts */ - platform_interrupt_init(); - - /* As the memory was not turned of in D0->D0ix and basic structures are - * already allocated, in restore process (D0ix->D0) we have only to - * register and enable required interrupts (it is done in - * schedulers_restore() and idc_restore()). - */ - - /* restore schedulers i.e. register and enable scheduler interrupts */ - trace_point(TRACE_BOOT_PLATFORM_SCHED); - err = schedulers_restore(); - if (err < 0) - return err; - - /* restore idc i.e. register and enable idc interrupts */ - trace_point(TRACE_BOOT_PLATFORM_IDC); - err = idc_restore(); - if (err < 0) - return err; - - trace_point(TRACE_BOOT_PLATFORM); - - /* In restore case (D0ix->D0 flow) we do not have to invoke here - * schedule_task(*task_main_get(), 0, UINT64_MAX) as it is done in - * cold boot process (see end of secondary_core_init() function), - * because in restore case memory has not been powered off and task_main - * is already added into scheduler list. - */ - while (1) - wait_for_interrupt(0); -} - -#endif - __cold int secondary_core_init(struct sof *sof) { int err; struct ll_schedule_domain *dma_domain; -#ifndef __ZEPHYR__ - /* init architecture */ - trace_point(TRACE_BOOT_ARCH); - err = arch_init(); - if (err < 0) - sof_panic(SOF_IPC_PANIC_ARCH); -#endif /* check whether we are in a cold boot process or not (e.g. D0->D0ix * flow when primary core disables all secondary cores). If not, we do * not have allocate basic structures like e.g. schedulers, notifier, @@ -188,13 +122,6 @@ __cold int secondary_core_init(struct sof *sof) trace_point(TRACE_BOOT_SYS_NOTIFIER); init_system_notify(sof); -#ifndef __ZEPHYR__ - /* interrupts need to be initialized before any usage */ - trace_point(TRACE_BOOT_PLATFORM_IRQ); - platform_interrupt_init(); - - scheduler_init_edf(); -#endif trace_point(TRACE_BOOT_PLATFORM_SCHED); scheduler_init_ll(timer_domain_get()); @@ -227,11 +154,6 @@ __cold int secondary_core_init(struct sof *sof) trace_point(TRACE_BOOT_PLATFORM); -#ifndef __ZEPHYR__ - /* task initialized in edf_scheduler_init */ - schedule_task(*task_main_get(), 0, UINT64_MAX); -#endif - return err; } @@ -273,20 +195,6 @@ __cold static int primary_core_init(int argc, char *argv[], struct sof *sof) sof->argc = argc; sof->argv = argv; -#ifndef __ZEPHYR__ - /* init architecture */ - trace_point(TRACE_BOOT_ARCH); - if (arch_init() < 0) - sof_panic(SOF_IPC_PANIC_ARCH); - - /* initialise system services */ - trace_point(TRACE_BOOT_SYS_HEAP); - platform_init_memmap(sof); - init_heap(sof); - - interrupt_init(sof); -#endif /* __ZEPHYR__ */ - #if defined(CONFIG_ZEPHYR_LOG) && !defined(CONFIG_LOG_MODE_MINIMAL) log_set_timestamp_func(default_get_timestamp, sys_clock_hw_cycles_per_sec()); @@ -338,27 +246,6 @@ __cold static int primary_core_init(int argc, char *argv[], struct sof *sof) return task_main_start(sof); } -#ifndef __ZEPHYR__ -int main(int argc, char *argv[]) -{ - int err = 0; - - trace_point(TRACE_BOOT_START); - - if (cpu_get_id() == PLATFORM_PRIMARY_CORE_ID) - err = primary_core_init(argc, argv, &sof); -#if CONFIG_MULTICORE - else - err = secondary_core_init(&sof); -#endif - - /* should never get here */ - sof_panic(SOF_IPC_PANIC_TASK); - return err; -} - -#else - int sof_main(int argc, char *argv[]) { trace_point(TRACE_BOOT_START); @@ -372,4 +259,3 @@ static int sof_init(void) } SYS_INIT(sof_init, POST_KERNEL, 99); -#endif diff --git a/src/lib/clk.c b/src/lib/clk.c index 779d8b76e03d..d93ab81c680b 100644 --- a/src/lib/clk.c +++ b/src/lib/clk.c @@ -83,35 +83,6 @@ void clock_low_power_mode(int clock, bool enable) clk_info->low_power_mode(clock, enable); } -#ifndef __ZEPHYR__ -uint64_t clock_ms_to_ticks(int clock, uint64_t ms) -{ - struct clock_info *clk_info = clocks_get() + clock; - uint64_t ticks; - - ticks = clk_info->freqs[clk_info->current_freq_idx].ticks_per_msec * ms; - - return ticks; -} - -uint64_t clock_us_to_ticks(int clock, uint64_t us) -{ - struct clock_info *clk_info = clocks_get() + clock; - uint64_t ticks; - - ticks = clk_info->freqs[clk_info->current_freq_idx].ticks_per_msec * us / 1000ULL; - - return ticks; -} - -uint64_t clock_ns_to_ticks(int clock, uint64_t ns) -{ - struct clock_info *clk_info = clocks_get() + clock; - - return clk_info->freqs[clk_info->current_freq_idx].ticks_per_msec * ns / 1000000ULL; -} -#endif /* __ZEPHYR__ */ - uint64_t clock_ticks_per_sample(int clock, uint32_t sample_rate) { struct clock_info *clk_info = clocks_get() + clock; diff --git a/src/lib/cpu-clk-manager.c b/src/lib/cpu-clk-manager.c index ee92196aea2e..59744063e4b9 100644 --- a/src/lib/cpu-clk-manager.c +++ b/src/lib/cpu-clk-manager.c @@ -11,9 +11,7 @@ #include #include #include -#ifdef __ZEPHYR__ #include -#endif /* __ZEPHYR__ */ static struct kcps_budget_data kcps_data; diff --git a/src/lib/pm_runtime.c b/src/lib/pm_runtime.c index 1c2e54fe2da2..53ade0ac8a01 100644 --- a/src/lib/pm_runtime.c +++ b/src/lib/pm_runtime.c @@ -20,9 +20,7 @@ #include #include -#if defined(__ZEPHYR__) #include -#endif LOG_MODULE_REGISTER(pm_runtime, CONFIG_SOF_LOG_LEVEL); @@ -132,7 +130,7 @@ bool pm_runtime_is_active(enum pm_runtime_context context, uint32_t index) { tr_dbg(&pm_tr, "pm_runtime_is_active() context %d index %d", context, index); -#if defined(__ZEPHYR__) && defined(CONFIG_PM) +#if defined(CONFIG_PM) return pm_policy_state_lock_is_active(PM_STATE_RUNTIME_IDLE, PM_ALL_SUBSTATES); #else switch (context) { diff --git a/src/platform/ace30/include/platform/lib/memory.h b/src/platform/ace30/include/platform/lib/memory.h index dab9d94c062a..8fa1f1229a59 100644 --- a/src/platform/ace30/include/platform/lib/memory.h +++ b/src/platform/ace30/include/platform/lib/memory.h @@ -11,9 +11,7 @@ #define __PLATFORM_LIB_MEMORY_H__ /* prioritize definitions in Zephyr SoC layer */ -#ifdef __ZEPHYR__ #include -#endif #include #include diff --git a/src/platform/amd/rembrandt/lib/CMakeLists.txt b/src/platform/amd/rembrandt/lib/CMakeLists.txt index 271a099cc6a9..163fe4463158 100644 --- a/src/platform/amd/rembrandt/lib/CMakeLists.txt +++ b/src/platform/amd/rembrandt/lib/CMakeLists.txt @@ -4,5 +4,4 @@ add_local_sources(sof clk.c dai.c dma.c - memory.c ) diff --git a/src/platform/amd/rembrandt/lib/memory.c b/src/platform/amd/rembrandt/lib/memory.c deleted file mode 100644 index 4d289a95c112..000000000000 --- a/src/platform/amd/rembrandt/lib/memory.c +++ /dev/null @@ -1,96 +0,0 @@ -// SPDX-License-Identifier: BSD-3-Clause -// -// Copyright 2022 AMD -// -// Author:Basavaraj Hiregoudar - -#include -#include -#include -#include -#include -#include -#ifndef __ZEPHYR__ -/* Heap blocks for system runtime */ -static SHARED_DATA struct block_hdr sys_rt_block64[HEAP_SYS_RT_COUNT64]; -static SHARED_DATA struct block_hdr sys_rt_block512[HEAP_SYS_RT_COUNT512]; -static SHARED_DATA struct block_hdr sys_rt_block1024[HEAP_SYS_RT_COUNT1024]; - -/* Heap memory for system runtime */ -static SHARED_DATA struct block_map sys_rt_heap_map[] = { - BLOCK_DEF(64, HEAP_SYS_RT_COUNT64, sys_rt_block64), - BLOCK_DEF(512, HEAP_SYS_RT_COUNT512, sys_rt_block512), - BLOCK_DEF(1024, HEAP_SYS_RT_COUNT1024, sys_rt_block1024), -}; - -/* Heap blocks for modules */ -static SHARED_DATA struct block_hdr mod_block16[HEAP_RT_COUNT16]; -static SHARED_DATA struct block_hdr mod_block32[HEAP_RT_COUNT32]; -static SHARED_DATA struct block_hdr mod_block64[HEAP_RT_COUNT64]; -static SHARED_DATA struct block_hdr mod_block128[HEAP_RT_COUNT128]; -static SHARED_DATA struct block_hdr mod_block256[HEAP_RT_COUNT256]; -static SHARED_DATA struct block_hdr mod_block512[HEAP_RT_COUNT512]; -static SHARED_DATA struct block_hdr mod_block1024[HEAP_RT_COUNT1024]; -static SHARED_DATA struct block_hdr mod_block2048[HEAP_RT_COUNT2048]; - -/* Heap memory map for modules */ -static SHARED_DATA struct block_map rt_heap_map[] = { - BLOCK_DEF(16, HEAP_RT_COUNT16, mod_block16), - BLOCK_DEF(32, HEAP_RT_COUNT32, mod_block32), - BLOCK_DEF(64, HEAP_RT_COUNT64, mod_block64), - BLOCK_DEF(128, HEAP_RT_COUNT128, mod_block128), - BLOCK_DEF(256, HEAP_RT_COUNT256, mod_block256), - BLOCK_DEF(512, HEAP_RT_COUNT512, mod_block512), - BLOCK_DEF(1024, HEAP_RT_COUNT1024, mod_block1024), - BLOCK_DEF(2048, HEAP_RT_COUNT2048, mod_block2048), -}; - -/* Heap blocks for buffers */ -static SHARED_DATA struct block_hdr buf_block[HEAP_BUFFER_COUNT]; - -/* Heap memory map for buffers */ -static SHARED_DATA struct block_map buf_heap_map[] = { - BLOCK_DEF(HEAP_BUFFER_BLOCK_SIZE, HEAP_BUFFER_COUNT, buf_block), -}; - -static SHARED_DATA struct mm memmap = { - .system[0] = { - .heap = HEAP_SYSTEM_BASE, - .size = HEAP_SYSTEM_SIZE, - .info = {.free = HEAP_SYSTEM_SIZE,}, - .caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_DMA, - }, - .system_runtime[0] = { - .blocks = ARRAY_SIZE(sys_rt_heap_map), - .map = sys_rt_heap_map, - .heap = HEAP_SYS_RUNTIME_BASE, - .size = HEAP_SYS_RUNTIME_SIZE, - .info = {.free = HEAP_SYS_RUNTIME_SIZE,}, - .caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_DMA, - }, - .runtime[0] = { - .blocks = ARRAY_SIZE(rt_heap_map), - .map = rt_heap_map, - .heap = HEAP_RUNTIME_BASE, - .size = HEAP_RUNTIME_SIZE, - .info = {.free = HEAP_RUNTIME_SIZE,}, - .caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_DMA, - }, - .buffer[0] = { - .blocks = ARRAY_SIZE(buf_heap_map), - .map = buf_heap_map, - .heap = HEAP_BUFFER_BASE, - .size = HEAP_BUFFER_SIZE, - .info = {.free = HEAP_BUFFER_SIZE,}, - .caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_DMA | SOF_MEM_CAPS_CACHE | SOF_MEM_CAPS_HP, - }, - .total = {.free = HEAP_SYSTEM_SIZE + HEAP_SYS_RUNTIME_SIZE + - HEAP_RUNTIME_SIZE + HEAP_BUFFER_SIZE,}, -}; - -void platform_init_memmap(struct sof *sof) -{ - /* memmap has been initialized statically as a part of .data */ - sof->memory_map = &memmap; -} -#endif diff --git a/src/platform/amd/rembrandt/platform.c b/src/platform/amd/rembrandt/platform.c index 23ced7356a95..6b276df5188e 100644 --- a/src/platform/amd/rembrandt/platform.c +++ b/src/platform/amd/rembrandt/platform.c @@ -123,23 +123,13 @@ const struct ext_man_windows xsram_window }, }; -#ifndef __ZEPHYR__ -static SHARED_DATA struct timer timer = { - .id = TIMER0, - .irq = IRQ_NUM_TIMER0, -}; -#endif - int platform_init(struct sof *sof) { int ret; -#ifndef __ZEPHYR__ - sof->platform_timer = &timer; - sof->cpu_timers = &timer; -#else + /* initialize cascade interrupts before any usage */ interrupt_init(sof); -#endif + /* to view system memory */ platform_interrupt_init(); platform_clock_init(sof); @@ -149,9 +139,7 @@ int platform_init(struct sof *sof) sof->platform_timer_domain = timer_domain_init(sof->platform_timer, PLATFORM_DEFAULT_CLOCK); scheduler_init_ll(sof->platform_timer_domain); -#ifndef __ZEPHYR__ - platform_timer_start(sof->platform_timer); -#endif + /*CONFIG_SYSTICK_PERIOD hardcoded as 200000*/ sa_init(sof, 200000); clock_set_freq(CLK_CPU(cpu_get_id()), CLK_MAX_CPU_HZ); @@ -202,14 +190,8 @@ int platform_boot_complete(uint32_t boot_message) clock_set_freq(CLK_CPU(cpu_get_id()), CLK_DEFAULT_CPU_HZ); return 0; } + int platform_context_save(struct sof *sof) { return 0; } - -#ifndef __ZEPHYR__ -void platform_wait_for_interrupt(int level) -{ - arch_wait_for_interrupt(level); -} -#endif diff --git a/src/platform/imx8/lib/clk.c b/src/platform/imx8/lib/clk.c index 5c21a47964e1..45edfe98461d 100644 --- a/src/platform/imx8/lib/clk.c +++ b/src/platform/imx8/lib/clk.c @@ -11,9 +11,7 @@ #include #include -#ifdef __ZEPHYR__ #include -#endif const struct freq_table platform_cpu_freq[] = { #ifdef CONFIG_IMX8 diff --git a/src/platform/imx8m/lib/clk.c b/src/platform/imx8m/lib/clk.c index dda25341fa48..37b115e507a2 100644 --- a/src/platform/imx8m/lib/clk.c +++ b/src/platform/imx8m/lib/clk.c @@ -10,9 +10,7 @@ #include #include -#ifdef __ZEPHYR__ #include -#endif const struct freq_table platform_cpu_freq[] = { { 800000000, 800000 }, diff --git a/src/platform/imx8m/platform.c b/src/platform/imx8m/platform.c index e1f956590d92..46e60a7e8608 100644 --- a/src/platform/imx8m/platform.c +++ b/src/platform/imx8m/platform.c @@ -127,13 +127,6 @@ const struct ext_man_windows xsram_window }, }; -#ifndef __ZEPHYR__ -static SHARED_DATA struct timer timer_shared = { - .id = TIMER0, /* internal timer */ - .irq = IRQ_NUM_TIMER0, -}; -#endif - int platform_boot_complete(uint32_t boot_message) { mailbox_dspbox_write(0, &ready, sizeof(ready)); @@ -154,11 +147,6 @@ int platform_init(struct sof *sof) { int ret; -#ifndef __ZEPHYR__ - sof->platform_timer = platform_shared_get(&timer_shared, sizeof(timer_shared)); - sof->cpu_timers = sof->platform_timer; -#endif - platform_interrupt_init(); platform_clock_init(sof); scheduler_init_edf(); @@ -168,10 +156,6 @@ int platform_init(struct sof *sof) timer_domain_init(sof->platform_timer, PLATFORM_DEFAULT_CLOCK); scheduler_init_ll(sof->platform_timer_domain); -#ifndef __ZEPHYR__ - platform_timer_start(sof->platform_timer); -#endif - sa_init(sof, CONFIG_SYSTICK_PERIOD); clock_set_freq(CLK_CPU(cpu_get_id()), CLK_MAX_CPU_HZ); @@ -204,10 +188,3 @@ int platform_context_save(struct sof *sof) { return 0; } - -#ifndef __ZEPHYR__ -void platform_wait_for_interrupt(int level) -{ - arch_wait_for_interrupt(level); -} -#endif diff --git a/src/platform/imx8ulp/lib/clk.c b/src/platform/imx8ulp/lib/clk.c index 29b8be6b7c6a..21d1f4166188 100644 --- a/src/platform/imx8ulp/lib/clk.c +++ b/src/platform/imx8ulp/lib/clk.c @@ -10,9 +10,7 @@ #include #include -#ifdef __ZEPHYR__ #include -#endif const struct freq_table platform_cpu_freq[] = { { 528000000, 528000 }, diff --git a/src/platform/imx8ulp/platform.c b/src/platform/imx8ulp/platform.c index a00889694f1a..88e6dfb8d56d 100644 --- a/src/platform/imx8ulp/platform.c +++ b/src/platform/imx8ulp/platform.c @@ -126,13 +126,6 @@ const struct ext_man_windows xsram_window } }; -#ifndef __ZEPHYR__ -static SHARED_DATA struct timer timer_shared = { - .id = TIMER0, /* internal timer */ - .irq = IRQ_NUM_TIMER0, -}; -#endif - int platform_boot_complete(uint32_t boot_message) { mailbox_dspbox_write(0, &ready, sizeof(ready)); @@ -153,11 +146,6 @@ int platform_init(struct sof *sof) { int ret; -#ifndef __ZEPHYR__ - sof->platform_timer = platform_shared_get(&timer_shared, sizeof(timer_shared)); - sof->cpu_timers = sof->platform_timer; -#endif - platform_interrupt_init(); platform_clock_init(sof); scheduler_init_edf(); @@ -167,9 +155,6 @@ int platform_init(struct sof *sof) timer_domain_init(sof->platform_timer, PLATFORM_DEFAULT_CLOCK); scheduler_init_ll(sof->platform_timer_domain); -#ifndef __ZEPHYR__ - platform_timer_start(sof->platform_timer); -#endif sa_init(sof, CONFIG_SYSTICK_PERIOD); clock_set_freq(CLK_CPU(cpu_get_id()), CLK_MAX_CPU_HZ); @@ -202,10 +187,3 @@ int platform_context_save(struct sof *sof) { return 0; } - -#ifndef __ZEPHYR__ -void platform_wait_for_interrupt(int level) -{ - arch_wait_for_interrupt(level); -} -#endif diff --git a/src/platform/library/lib/clk.c b/src/platform/library/lib/clk.c index 9098ec88fc48..aa7c86cd2f91 100644 --- a/src/platform/library/lib/clk.c +++ b/src/platform/library/lib/clk.c @@ -2,7 +2,6 @@ #include -#ifndef __ZEPHYR__ uint64_t clock_ms_to_ticks(int clock, uint64_t ms) { return 0; @@ -17,4 +16,3 @@ uint64_t clock_ns_to_ticks(int clock, uint64_t ns) { return 0; } -#endif /* __ZEPHYR__ */ diff --git a/src/platform/library/platform.c b/src/platform/library/platform.c index 8d54b1898d19..756c34c996f4 100644 --- a/src/platform/library/platform.c +++ b/src/platform/library/platform.c @@ -13,9 +13,7 @@ #include #include -#ifndef __ZEPHYR__ static SHARED_DATA struct timer timer = {}; -#endif /* __ZEPHYR__ */ static uint8_t mailbox[MAILBOX_DSPBOX_SIZE + MAILBOX_HOSTBOX_SIZE + @@ -38,10 +36,8 @@ int dmac_init(struct sof *sof) int platform_init(struct sof *sof) { -#ifndef __ZEPHYR__ sof->platform_timer = &timer; sof->cpu_timers = &timer; -#endif platform_clock_init(sof); @@ -70,17 +66,3 @@ int platform_context_save(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/test/cmocka/src/common_mocks.c b/test/cmocka/src/common_mocks.c index 92ba58031680..0c404747083a 100644 --- a/test/cmocka/src/common_mocks.c +++ b/test/cmocka/src/common_mocks.c @@ -33,9 +33,7 @@ /* global contexts */ WEAK struct ipc *_ipc; -#ifndef __ZEPHYR__ WEAK struct timer *platform_timer; -#endif WEAK struct schedulers *schedulers; WEAK struct sof sof; WEAK struct tr_ctx buffer_tr; @@ -152,7 +150,6 @@ volatile void * WEAK task_context_get(void) return NULL; } -#ifndef __ZEPHYR__ uint32_t WEAK _k_spin_lock_irq(struct k_spinlock *lock) { (void)lock; @@ -166,7 +163,6 @@ void WEAK _k_spin_unlock_irq(struct k_spinlock *lock, uint32_t flags, int line) (void)flags; (void)line; } -#endif uint64_t WEAK platform_timer_get(struct timer *timer) { @@ -332,7 +328,6 @@ int WEAK comp_set_state(struct comp_dev *dev, int cmd) return 0; } -#ifndef __ZEPHYR__ uint64_t WEAK clock_ms_to_ticks(int clock, uint64_t ms) { (void)clock; @@ -356,7 +351,6 @@ uint64_t WEAK clock_ns_to_ticks(int clock, uint64_t us) return 0; } -#endif /* __ZEPHYR__ */ #if CONFIG_MULTICORE && !CONFIG_LIBRARY diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 5cf47f40aab0..e4d18c2f94f8 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -4,12 +4,7 @@ # https://docs.zephyrproject.org/latest/develop/modules.html if(CONFIG_SOF) -if(CONFIG_LIBRARY) - set(PLATFORM "library") - set(ARCH host) - set(PLATFORM_HEADERS "posix") - zephyr_include_directories(../src/platform/library/include) -elseif(CONFIG_ZEPHYR_POSIX) +if(CONFIG_ZEPHYR_POSIX) set(ARCH host) set(PLATFORM "posix") set(PLATFORM_HEADERS "posix") @@ -465,12 +460,6 @@ zephyr_library_sources_ifdef(CONFIG_ZEPHYR_POSIX ${SOF_PLATFORM_PATH}/posix/fuzz.c ) -zephyr_library_sources_ifdef(CONFIG_LIBRARY - ${SOF_PLATFORM_PATH}/library/platform.c - ${SOF_PLATFORM_PATH}/library/lib/dai.c - ${SOF_DRIVERS_PATH}/host/ipc.c -) - if(NOT DEFINED PLATFORM) message(FATAL_ERROR "PLATFORM is not defined, check your Kconfiguration?") endif()