Skip to content

Commit

Permalink
fixup! examples/xipfs-tests: fix xipfs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GGuche-2XS-Univ-Lille committed Feb 13, 2025
1 parent 2f78141 commit 3b1d69a
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 5 deletions.
2 changes: 2 additions & 0 deletions examples/xipfs-tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ USEMODULE += ps
# Use the default file system
USEMODULE += xipfs

CFLAGS +=-DRIOT_OS

include $(RIOTBASE)/Makefile.include
2 changes: 2 additions & 0 deletions examples/xipfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ USEMODULE += ps
# Use the default file system
USEMODULE += xipfs

CFLAGS +=-DRIOT_OS

include $(RIOTBASE)/Makefile.include
11 changes: 6 additions & 5 deletions pkg/xipfs/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
PKG_NAME=xipfs
PKG_URL=https://github.com/2xs/xipfs.git
PKG_VERSION=374f4cba72018f8f3d4e62327f01d8657e6705a4
PKG_VERSION=eda8138f52a37472615297b2e46e0fab81e5b84c
PKG_LICENSE=CeCILL-2.1

include $(RIOTBASE)/pkg/pkg.mk

export RIOT_OS=1
export RIOT_INCLUDES=$(INCLUDES)
export RIOT_CFLAGS=$(CFLAGS)

all: $(BINDIR)/xipfs.a

$(BINDIR)/xipfs.a: $(PKG_SOURCE_DIR)/toolchain.mk
$(BINDIR)/xipfs.a:
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)
@cp $(PKG_SOURCE_DIR)/xipfs.a $@

$(PKG_SOURCE_DIR)/toolchain.mk:
$(PKG_SOURCE_DIR)/configure.sh --board=$(BOARD)
2 changes: 2 additions & 0 deletions pkg/xipfs/fs/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
MODULE := xipfs_fs

CFLAGS+=-DRIOT_OS

include $(RIOTBASE)/Makefile.base
2 changes: 2 additions & 0 deletions pkg/xipfs/fs/xipfs_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
#include "include/flash.h"
#include "include/fs.h"
#include "include/path.h"
#ifndef RIOT_OS
#include "include/xipfs.h"
#endif

/*
* The eXecute In Place File System only makes sense if the
Expand Down
6 changes: 6 additions & 0 deletions sys/include/fs/xipfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
#define FS_XIPFS_FS_H

#include "vfs.h"

#ifdef RIOT_OS
#include "include/xipfs.h"
#else
#include "xipfs_config.h"
#endif /* RIOT_OS */


#ifdef __cplusplus
extern "C" {
Expand Down
7 changes: 7 additions & 0 deletions sys/shell/cmds/xipfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@
#include <limits.h>

#include "fs/xipfs_fs.h"

#ifdef RIOT_OS
#include "include/xipfs.h"
#else /* RIOT_OS */
#include "xipfs_config.h"
#endif /* RIOT_OS */


#include "shell.h"

static char *execute_file_handler_args[XIPFS_EXEC_ARGC_MAX];
Expand Down

0 comments on commit 3b1d69a

Please sign in to comment.