1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/mkconstfs
Juan Carrano 6cfafc8923 tools/mkconstfs: Add an improved tool.
The new tool (mkconstfs2) features:

* more robust filename handling: no need for mangling,
  and works on Windows.
* Better output generation: nothing is written in case
  of failures.
* Allows more control over the files that are included:
 - does not traverse directories, filenames must be explicitly
   given.
 - The "root" can be explicitly given (thus the tool can get
   the same result independently of the CWD).

Thanks to MichelRottleuthner for making it work with Windows paths.
2018-07-02 10:15:56 +02:00
..
mkconstfs2.py tools/mkconstfs: Add an improved tool. 2018-07-02 10:15:56 +02:00
mkconstfs.py dist/tools/mkconstfs: fix various flake8 issues 2017-12-20 16:48:56 +01:00
README.md tools/mkconstfs: Add an improved tool. 2018-07-02 10:15:56 +02: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);

mkconstfs2

This is an alternative tool that takes a list of files instead of a whole directory.