nuttx-apps/mlearning/cmsis-nn/Makefile
xinhaiteng 11519fe1ca Update third-party library version
Tflite-micro, ruy and cmsis-nn need to be updated to a new version.
Signed-off-by: xinhaiteng <xinhaiteng@xiaomi.com>
2024-10-18 09:40:17 +08:00

51 lines
No EOL
2 KiB
Makefile

############################################################################
# apps/mlearning/cmsis-nn/Makefile
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
include $(APPDIR)/Make.defs
CMSIS_NN = cmsis-nn/Source
CMSIS_NN_VER = 72e1ebf623ab1660a3e14e4e36fdcddce46f1991
cmsis-nn.zip:
$(Q) curl -L https://github.com/ARM-software/CMSIS-NN/archive/$(CMSIS_NN_VER).zip -o cmsis-nn.zip
$(Q) unzip -o cmsis-nn.zip
$(Q) mv CMSIS-NN-$(CMSIS_NN_VER) cmsis-nn
ifeq ($(wildcard cmsis-nn/.git),)
context:: cmsis-nn.zip
distclean::
$(call DELDIR, cmsis-nn)
$(call DELFILE, cmsis-nn.zip)
endif
CSRCS += $(wildcard $(CMSIS_NN)/ActivationFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/BasicMathFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/PoolingFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/ConvolutionFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/SVDFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/FullyConnectedFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/NNSupportFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/ConcatenationFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/SoftmaxFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/LSTMFunctions/*.c)
CSRCS += $(wildcard $(CMSIS_NN)/ReshapeFunctions/*.c)
include $(APPDIR)/Application.mk