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 <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee 2022-03-28 13:46:00 +08:00 committed by Xiang Xiao
parent 96efff32fe
commit 2831af6395

View File

@ -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