From 2831af6395764b3d55bd817c8bec66105e204d78 Mon Sep 17 00:00:00 2001 From: Peter Bee Date: Mon, 28 Mar 2022 13:46:00 +0800 Subject: [PATCH] apps/mlearning: tweak lib makefile only one .c needed for each function group add -flax-vector-conversions to avoid build error on gcc && M55 Signed-off-by: Peter Bee --- mlearning/cmsis/libcmsisdsp/Makefile | 72 +++++++++++++++++----------- 1 file changed, 44 insertions(+), 28 deletions(-) diff --git a/mlearning/cmsis/libcmsisdsp/Makefile b/mlearning/cmsis/libcmsisdsp/Makefile index 2f4f6f0da..ca8e392d4 100644 --- a/mlearning/cmsis/libcmsisdsp/Makefile +++ b/mlearning/cmsis/libcmsisdsp/Makefile @@ -35,34 +35,50 @@ CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/mlearning/cmsis/CMSIS CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/mlearning/cmsis/CMSIS_5/CMSIS/DSP/PrivateInclude/} CMSIS5_DSP := ../CMSIS_5/CMSIS/DSP/Source -CSRCS += $(CMSIS5_DSP)/SVMFunctions/SVMFunctions.c -CSRCS += $(CMSIS5_DSP)/SVMFunctions/SVMFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/InterpolationFunctions/InterpolationFunctions.c -CSRCS += $(CMSIS5_DSP)/InterpolationFunctions/InterpolationFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/FastMathFunctions/FastMathFunctions.c -CSRCS += $(CMSIS5_DSP)/FastMathFunctions/FastMathFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/FilteringFunctions/FilteringFunctions.c -CSRCS += $(CMSIS5_DSP)/FilteringFunctions/FilteringFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/BasicMathFunctions/BasicMathFunctions.c -CSRCS += $(CMSIS5_DSP)/BasicMathFunctions/BasicMathFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/ControllerFunctions/ControllerFunctions.c -CSRCS += $(CMSIS5_DSP)/SupportFunctions/SupportFunctions.c -CSRCS += $(CMSIS5_DSP)/SupportFunctions/SupportFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/CommonTables/CommonTables.c -CSRCS += $(CMSIS5_DSP)/CommonTables/CommonTablesF16.c -CSRCS += $(CMSIS5_DSP)/DistanceFunctions/DistanceFunctions.c -CSRCS += $(CMSIS5_DSP)/DistanceFunctions/DistanceFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/StatisticsFunctions/StatisticsFunctions.c -CSRCS += $(CMSIS5_DSP)/StatisticsFunctions/StatisticsFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/MatrixFunctions/MatrixFunctions.c -CSRCS += $(CMSIS5_DSP)/MatrixFunctions/MatrixFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/QuaternionMathFunctions/QuaternionMathFunctions.c -CSRCS += $(CMSIS5_DSP)/TransformFunctions/TransformFunctions.c -CSRCS += $(CMSIS5_DSP)/TransformFunctions/TransformFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/BayesFunctions/BayesFunctions.c -CSRCS += $(CMSIS5_DSP)/BayesFunctions/BayesFunctionsF16.c -CSRCS += $(CMSIS5_DSP)/ComplexMathFunctions/ComplexMathFunctions.c -CSRCS += $(CMSIS5_DSP)/ComplexMathFunctions/ComplexMathFunctionsF16.c +CSRCS += SVMFunctions.c +CSRCS += SVMFunctionsF16.c +CSRCS += InterpolationFunctions.c +CSRCS += InterpolationFunctionsF16.c +CSRCS += FastMathFunctions.c +CSRCS += FastMathFunctionsF16.c +CSRCS += FilteringFunctions.c +CSRCS += FilteringFunctionsF16.c +CSRCS += BasicMathFunctions.c +CSRCS += BasicMathFunctionsF16.c +CSRCS += ControllerFunctions.c +CSRCS += SupportFunctions.c +CSRCS += SupportFunctionsF16.c +CSRCS += CommonTables.c +CSRCS += CommonTablesF16.c +CSRCS += DistanceFunctions.c +CSRCS += DistanceFunctionsF16.c +CSRCS += StatisticsFunctions.c +CSRCS += StatisticsFunctionsF16.c +CSRCS += MatrixFunctions.c +CSRCS += MatrixFunctionsF16.c +CSRCS += QuaternionMathFunctions.c +CSRCS += TransformFunctions.c +CSRCS += TransformFunctionsF16.c +CSRCS += BayesFunctions.c +CSRCS += BayesFunctionsF16.c +CSRCS += ComplexMathFunctions.c +CSRCS += ComplexMathFunctionsF16.c + +VPATH += $(CMSIS5_DSP)/SVMFunctions +VPATH += $(CMSIS5_DSP)/InterpolationFunctions +VPATH += $(CMSIS5_DSP)/FastMathFunctions +VPATH += $(CMSIS5_DSP)/FilteringFunctions +VPATH += $(CMSIS5_DSP)/BasicMathFunctions +VPATH += $(CMSIS5_DSP)/ControllerFunctions +VPATH += $(CMSIS5_DSP)/SupportFunctions +VPATH += $(CMSIS5_DSP)/CommonTables +VPATH += $(CMSIS5_DSP)/DistanceFunctions +VPATH += $(CMSIS5_DSP)/StatisticsFunctions +VPATH += $(CMSIS5_DSP)/MatrixFunctions +VPATH += $(CMSIS5_DSP)/QuaternionMathFunctions +VPATH += $(CMSIS5_DSP)/TransformFunctions +VPATH += $(CMSIS5_DSP)/BayesFunctions +VPATH += $(CMSIS5_DSP)/ComplexMathFunctions CFLAGS += -ffast-math -Wno-shadow -flax-vector-conversions