Skip to content

Commit 4221dd5

Browse files
committed
zephyr: only build sof_dma.h syscalls if enabled in build
The sof_dma.h syscalls are emitted to build whenever CONFIG_USERSPACE is set. Limit this so that the syscalls are emitted only if CONFIG_SOF_USERSPACE_INTERFACE_DMA is set. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent ffc2f57 commit 4221dd5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

zephyr/CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,10 @@ if(NOT DEFINED PLATFORM)
490490
endif()
491491
zephyr_include_directories(${SOF_PLATFORM_PATH}/${PLATFORM}/include)
492492

493-
zephyr_library_sources_ifdef(CONFIG_USERSPACE
494-
syscall/sof_dma.c
495-
)
496-
497-
zephyr_syscall_header(include/sof/lib/sof_dma.h)
493+
if(CONFIG_SOF_USERSPACE_INTERFACE_DMA)
494+
zephyr_library_sources(syscall/sof_dma.c)
495+
zephyr_syscall_header(include/sof/lib/sof_dma.h)
496+
endif()
498497

499498
# Mandatory Files used on all platforms.
500499
# Commented files will be added/removed as integration dictates.

0 commit comments

Comments
 (0)