From 0ee15da56583d97d222b970fee75ca4d56c476ed Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Wed, 23 Feb 2022 11:13:14 +0000 Subject: [PATCH] cmsis: build CMSIS support as a module CMSIS should compile as a module to provide the necessary support for the dnn test application Signed-off-by: Alin Jerpelea --- mlearning/cmsis/libcmsisdsp/Makefile | 2 +- mlearning/cmsis/libcmsisnn/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlearning/cmsis/libcmsisdsp/Makefile b/mlearning/cmsis/libcmsisdsp/Makefile index f58f80d72..902ea1d13 100644 --- a/mlearning/cmsis/libcmsisdsp/Makefile +++ b/mlearning/cmsis/libcmsisdsp/Makefile @@ -552,6 +552,6 @@ CSRCS += $(CMSIS5_DSP)/ComplexMathFunctions/arm_cmplx_mag_f32.c CFLAGS += -ffast-math -Wno-shadow -BIN := libarm_math$(LIBEXT) +MODULE = $(CONFIG_CMSIS_DSP) include $(APPDIR)/Application.mk diff --git a/mlearning/cmsis/libcmsisnn/Makefile b/mlearning/cmsis/libcmsisnn/Makefile index be30a12d9..ac7688e7a 100644 --- a/mlearning/cmsis/libcmsisnn/Makefile +++ b/mlearning/cmsis/libcmsisnn/Makefile @@ -97,6 +97,6 @@ CSRCS += $(CMSIS5_NN)/NNSupportFunctions/arm_nn_mat_mul_core_1x_s8.c CSRCS += $(CMSIS5_NN)/NNSupportFunctions/arm_nn_add_q7.c CSRCS += $(CMSIS5_NN)/NNSupportFunctions/arm_q7_to_q15_reordered_with_offset.c -BIN := libcmsis_nn$(LIBEXT) +MODULE = $(CONFIG_CMSIS_NN) include $(APPDIR)/Application.mk