mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
6cfafc8923
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. |
||
---|---|---|
.. | ||
mkconstfs2.py | ||
mkconstfs.py | ||
README.md |
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.