Blame view

RIOT/dist/tools/mkconstfs/README.md 326 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  # 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);