Commit 473b6648 authored by Shlomi Vaknin's avatar Shlomi Vaknin Committed by Kumar Gala
Browse files

DSP: Support compiling on native posix

This commit adds support to compile cmsis-dsp
library on the host. The only definition that is
needed is `__GNUC_PYTHON__`.

When this variable is defined, all the relevant
definitions are set in the `arm_math.h` header
file. In addition, in the current commit
of cmsis library, this feature is now part
of its cmake files.
Look at: https://github.com/ARM-software/CMSIS_5/blob/659671ad826fb0a94d2b801719b1f74568378289/CMSIS/DSP/Source/configDsp.cmake



Signed-off-by: default avatarShlomi Vaknin <shlomi.39sd@gmail.com>
parent 421dcf35
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8,3 +8,5 @@ if(CONFIG_CMSIS_DSP_HELIUM OR CONFIG_CMSIS_DSP_MVEF OR CONFIG_CMSIS_DSP_SUPPORT)
endif()

add_subdirectory(Source)

zephyr_compile_definitions_ifdef(CONFIG_ARCH_POSIX __GNUC_PYTHON__)