pkg/spiffs: clean-up makefiles
This commit is contained in:
parent
cd25f73b1e
commit
26f77e0565
@ -1,19 +1,13 @@
|
|||||||
PKG_NAME=spiffs
|
PKG_NAME=spiffs
|
||||||
PKG_URL=https://github.com/pellepl/spiffs.git
|
PKG_URL=https://github.com/pellepl/spiffs.git
|
||||||
PKG_VERSION=287148c46587089c4543a21eef2d6e9e14b88364
|
PKG_VERSION=287148c46587089c4543a21eef2d6e9e14b88364
|
||||||
PKG_BUILDDIR ?= $(PKGDIRBASE)/$(PKG_NAME)
|
PKG_LICENSE=MIT
|
||||||
|
|
||||||
CFLAGS += -std=c11
|
CFLAGS += -std=c11
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
all: git-download
|
all: git-download
|
||||||
@mkdir -p "$(PKG_BUILDDIR)/riotbuild"
|
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.spiffs
|
||||||
@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
|
|
||||||
|
|
||||||
include $(RIOTBASE)/pkg/pkg.mk
|
include $(RIOTBASE)/pkg/pkg.mk
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
INCLUDES += -I$(RIOTPKG)/spiffs/include
|
INCLUDES += -I$(RIOTPKG)/spiffs/include
|
||||||
INCLUDES += -I$(PKGDIRBASE)/spiffs/riotbuild/
|
INCLUDES += -I$(PKGDIRBASE)/spiffs/src/
|
||||||
|
|
||||||
ifneq (,$(filter spiffs_fs,$(USEMODULE)))
|
ifneq (,$(filter spiffs_fs,$(USEMODULE)))
|
||||||
DIRS += $(RIOTBASE)/pkg/spiffs/fs
|
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…
x
Reference in New Issue
Block a user