Skip to content
Snippets Groups Projects
Unverified Commit ddb81273 authored by Sebastian Meiling's avatar Sebastian Meiling Committed by GitHub
Browse files

Merge pull request #8600 from OTAkeys/pr/update_littlefs

pkg: update littlefs pkg to v1.3
parents 57e6f565 3b26d4ab
No related branches found
No related tags found
No related merge requests found
PKG_NAME=littlefs PKG_NAME=littlefs
PKG_URL=https://github.com/geky/littlefs.git PKG_URL=https://github.com/geky/littlefs.git
PKG_VERSION=be22d3449f23a24e7462114349ce04d751e42437 PKG_VERSION=v1.3
PKG_BUILDDIR ?= $(PKGDIRBASE)/$(PKG_NAME) PKG_LICENSE=Apache-2.0
.PHONY: all .PHONY: all
all: git-download all: git-download
@mkdir -p "$(PKG_BUILDDIR)/riotbuild" "$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.littlefs
@cp $(PKG_BUILDDIR)/*.c $(PKG_BUILDDIR)/*.h $(PKG_BUILDDIR)/riotbuild
@cp $(CURDIR)/Makefile.littlefs $(PKG_BUILDDIR)/riotbuild/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)/riotbuild
include $(RIOTBASE)/pkg/pkg.mk include $(RIOTBASE)/pkg/pkg.mk
INCLUDES += -I$(PKGDIRBASE)/littlefs/riotbuild/ INCLUDES += -I$(PKGDIRBASE)/littlefs
ifneq (,$(filter littlefs_fs,$(USEMODULE))) ifneq (,$(filter littlefs_fs,$(USEMODULE)))
DIRS += $(RIOTBASE)/pkg/littlefs/fs DIRS += $(RIOTBASE)/pkg/littlefs/fs
......
...@@ -48,6 +48,10 @@ static int littlefs_err_to_errno(ssize_t err) ...@@ -48,6 +48,10 @@ static int littlefs_err_to_errno(ssize_t err)
return -ENOTDIR; return -ENOTDIR;
case LFS_ERR_ISDIR: case LFS_ERR_ISDIR:
return -EISDIR; return -EISDIR;
case LFS_ERR_NOTEMPTY:
return -ENOTEMPTY;
case LFS_ERR_BADF:
return -EBADF;
case LFS_ERR_INVAL: case LFS_ERR_INVAL:
return -EINVAL; return -EINVAL;
case LFS_ERR_NOSPC: case LFS_ERR_NOSPC:
......
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