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:
parent
cd25f73b1e
commit
26f77e0565
@ -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
|
||||
|
@ -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
|
||||
|
3
pkg/spiffs/Makefile.spiffs
Normal file
3
pkg/spiffs/Makefile.spiffs
Normal file
@ -0,0 +1,3 @@
|
||||
MODULE := spiffs
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
Loading…
Reference in New Issue
Block a user