1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

pkg/cmsis-dsp: update to V5.4.0 from ARM repo

Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
Dylan Laduranty 2018-12-06 14:11:08 +01:00
parent fdcac731eb
commit 514812fc7c
8 changed files with 51 additions and 8 deletions

View File

@ -1,13 +1,12 @@
PKG_NAME=cmsis-dsp
PKG_URL=https://github.com/gebart/CMSIS-DSP.git
PKG_VERSION=v1.4.5a-riot2
PKG_LICENSE=BSD-3-Clause
CFLAGS += -Wno-strict-aliasing
PKG_URL=https://github.com/ARM-software/CMSIS_5
PKG_VERSION=5.4.0
PKG_LICENSE=Apache-2.0
CFLAGS += -Wno-strict-aliasing -Wno-unused-parameter
.PHONY: all
all: git-download
"$(MAKE)" -C $(PKG_BUILDDIR)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -0,0 +1,43 @@
PKG_NAME=cmsis-dsp
# A list of all the directories to build for CMSIS-DSP
CMSIS_DIRS += \
CMSIS/DSP/Source/BasicMathFunctions \
CMSIS/DSP/Source/CommonTables \
CMSIS/DSP/Source/ComplexMathFunctions \
CMSIS/DSP/Source/ControllerFunctions \
CMSIS/DSP/Source/FastMathFunctions \
CMSIS/DSP/Source/FilteringFunctions \
CMSIS/DSP/Source/MatrixFunctions \
CMSIS/DSP/Source/StatisticsFunctions \
CMSIS/DSP/Source/SupportFunctions \
CMSIS/DSP/Source/TransformFunctions \
#
INCLUDES += -I$(CURDIR)/CMSIS/DSP/Include
CMSIS_BINDIRS = $(addprefix $(BINDIR)/$(PKG_NAME)/,$(CMSIS_DIRS))
# Override default RIOT search path for sources to include all of the CMSIS-DSP
# sources in one library instead of one library per subdirectory.
SRC := $(foreach DIR,$(CMSIS_DIRS),$(wildcard $(DIR)/*.c))
SRCXX := $(foreach DIR,$(CMSIS_DIRS),$(wildcard $(DIR)/*.cpp))
ASMSRC := $(foreach DIR,$(CMSIS_DIRS),$(wildcard $(DIR)/*.s))
ASSMSRC := $(foreach DIR,$(CMSIS_DIRS),$(wildcard $(DIR)/*.S))
OBJC := $(SRC:%.c=$(BINDIR)/$(PKG_NAME)/%.o)
OBJCXX := $(SRCXX:%.cpp=$(BINDIR)/$(PKG_NAME)/%.o)
ASMOBJ := $(ASMSRC:%.s=$(BINDIR)/$(PKG_NAME)/%.o)
ASSMOBJ := $(ASSMSRC:%.S=$(BINDIR)/$(PKG_NAME)/%.o)
OBJ = $(OBJC) $(OBJCXX) $(ASMOBJ) $(ASSMOBJ)
# Create subdirectories if they do not already exist
$(OBJ): | $(CMSIS_BINDIRS)
$(CMSIS_BINDIRS):
@mkdir -p $@
# Reset the default goal.
.DEFAULT_GOAL :=
# Include RIOT settings and recipes
include $(RIOTBASE)/Makefile.base

View File

@ -1 +1 @@
INCLUDES += -I$(PKGDIRBASE)/cmsis-dsp/include
INCLUDES += -I$(PKGDIRBASE)/cmsis-dsp/CMSIS/DSP/Include

View File

@ -1 +1,2 @@
Since there is no official public repository for the CMSIS-DSP library, we are using our own repo.
This package uses DSP ARM CMSIS header from the official
[ARM github repo](https://github.com/ARM-software/CMSIS_5)