1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/mkconstfs
Joakim Nohlgård dcc37329df sys/vfs: A virtual file system (VFS) layer for RIOT
The VFS layer provides file system abstractions to allow using a unified
interface to access files from mounted file systems.
2017-03-07 17:59:57 +01:00
..
mkconstfs.py sys/vfs: A virtual file system (VFS) layer for RIOT 2017-03-07 17:59:57 +01:00
README.md sys/vfs: A virtual file system (VFS) layer for RIOT 2017-03-07 17:59:57 +01:00

Introduction

This tool creates a .c file including all data from a local directory as data structures that can be mounted using constfs.

Usage

mkconstfs.py /path/to/files /

#include "vfs.h"
#include "fs/constfs.h"
extern const vfs_mount_t _constfs;

[...]

vfs_mount((vfs_mount_t *)&_constfs);