zdsp: Fix missing kconfig and no source library

Adds a missing menuconfig for the DSP library as well as fix an issue
with the zephyr library being a STATIC library and having no sources
in the case of the cmsis backend.

Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
Yuval Peress 2022-12-05 21:53:07 -07:00 committed by Fabio Baltieri
commit 0f174e5758
5 changed files with 14 additions and 6 deletions

View file

@ -19,7 +19,7 @@ add_subdirectory(random)
add_subdirectory(storage) add_subdirectory(storage)
add_subdirectory_ifdef(CONFIG_SETTINGS settings) add_subdirectory_ifdef(CONFIG_SETTINGS settings)
add_subdirectory(fb) add_subdirectory(fb)
add_subdirectory(dsp) add_subdirectory_ifdef(CONFIG_DSP dsp)
add_subdirectory(portability) add_subdirectory(portability)
add_subdirectory(pm) add_subdirectory(pm)
add_subdirectory(stats) add_subdirectory(stats)

View file

@ -1,8 +1,4 @@
# Copyright (c) 2022 Google LLC # Copyright (c) 2022 Google LLC
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
zephyr_library_named(zdsp)
add_subdirectory_ifdef(CONFIG_DSP_BACKEND_CMSIS cmsis) add_subdirectory_ifdef(CONFIG_DSP_BACKEND_CMSIS cmsis)
zephyr_link_libraries(zdsp)

View file

@ -1,6 +1,15 @@
# Copyright (c) 2022 Google LLC # Copyright (c) 2022 Google LLC
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
menuconfig DSP
bool "DSP subsystem"
help
Include the DSP (Digital Signal Processing) subsystem as a part of the
Zephyr build. This enables applications to include and call into the
<zephyr/dsp/dsp.h> header.
if DSP
config DSP_BACKEND_HAS_STATIC config DSP_BACKEND_HAS_STATIC
bool bool
@ -24,3 +33,5 @@ config DSP_BACKEND_CUSTOM
added to the 'zdsp' build target by the application or one of its modules. added to the 'zdsp' build target by the application or one of its modules.
endchoice endchoice
endif # DSP

View file

@ -1,4 +1,4 @@
# Copyright (c) 2022 Google LLC # Copyright (c) 2022 Google LLC
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(zdsp PUBLIC public) zephyr_include_directories(public)

View file

@ -1,6 +1,7 @@
CONFIG_ZTEST=y CONFIG_ZTEST=y
CONFIG_ZTEST_NEW_API=y CONFIG_ZTEST_NEW_API=y
CONFIG_NEWLIB_LIBC=y CONFIG_NEWLIB_LIBC=y
CONFIG_DSP=y
CONFIG_CMSIS_DSP=y CONFIG_CMSIS_DSP=y
CONFIG_CMSIS_DSP_BASICMATH=y CONFIG_CMSIS_DSP_BASICMATH=y
CONFIG_DSP_BACKEND_CMSIS=y CONFIG_DSP_BACKEND_CMSIS=y