1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/spiffs: clean-up makefiles

This commit is contained in:
Vincent Dupont 2018-04-12 09:54:04 +02:00
parent cd25f73b1e
commit 26f77e0565
3 changed files with 6 additions and 9 deletions

View File

@ -1,19 +1,13 @@
PKG_NAME=spiffs
PKG_URL=https://github.com/pellepl/spiffs.git
PKG_VERSION=287148c46587089c4543a21eef2d6e9e14b88364
PKG_BUILDDIR ?= $(PKGDIRBASE)/$(PKG_NAME)
PKG_LICENSE=MIT
CFLAGS += -std=c11
.PHONY: all
all: git-download
@mkdir -p "$(PKG_BUILDDIR)/riotbuild"
@cp $(PKG_BUILDDIR)/src/*.c $(PKG_BUILDDIR)/src/*.h $(PKG_BUILDDIR)/riotbuild
@echo 'MODULE:=spiffs' > $(PKG_BUILDDIR)/riotbuild/Makefile
@echo 'include $$(RIOTBASE)/Makefile.base' >> $(PKG_BUILDDIR)/riotbuild/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)/riotbuild
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.spiffs
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -1,5 +1,5 @@
INCLUDES += -I$(RIOTPKG)/spiffs/include
INCLUDES += -I$(PKGDIRBASE)/spiffs/riotbuild/
INCLUDES += -I$(PKGDIRBASE)/spiffs/src/
ifneq (,$(filter spiffs_fs,$(USEMODULE)))
DIRS += $(RIOTBASE)/pkg/spiffs/fs

View File

@ -0,0 +1,3 @@
MODULE := spiffs
include $(RIOTBASE)/Makefile.base