Skip to content
Snippets Groups Projects
Commit b69941f3 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

pkg: cmsis-dsp: adapt to use pkg.mk

parent b98f97e9
No related branches found
No related tags found
No related merge requests found
PKG_NAME=cmsis-dsp PKG_NAME=cmsis-dsp
PKG_URL=https://github.com/gebart/CMSIS-DSP.git PKG_URL=https://github.com/gebart/CMSIS-DSP.git
PKG_VERSION=v1.4.5a-riot1 PKG_VERSION=v1.4.5a-riot1
PKG_DIR=$(CURDIR)/$(PKG_NAME)
ifneq ($(RIOTBASE),) ifneq ($(RIOTBASE),)
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
endif endif
.PHONY: all clean patch distclean .PHONY: all
all: $(PKG_DIR)/Makefile all: download
$(MAKE) -C $(CURDIR)/$(PKG_NAME) $(MAKE) -C $(PKG_BUILDDIR)
$(PKG_DIR)/Makefile: $(PKG_DIR)/.git/config include $(RIOTBASE)/pkg/pkg.mk
@
$(PKG_DIR)/.git/config:
test -d "$(PKG_DIR)" || $(GITCACHE) clone "$(PKG_URL)" "$(PKG_VERSION)" "$(PKG_DIR)"
clean::
@echo "Cleaning up $(PKG_NAME) package..."
@-cd "$(PKG_DIR)" 2> /dev/null > /dev/null && \
git clean -x -f && \
git am --abort && \
git reset --hard "$(PKG_VERSION)"
distclean::
rm -rf "$(PKG_DIR)"
INCLUDES += -I$(RIOTPKG)/cmsis-dsp/cmsis-dsp/include INCLUDES += -I$(BINDIR)/pkg/cmsis-dsp/include
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment