romfs.c 447 B

12345678910111213
  1. #include <dfs_romfs.h>
  2. static const struct romfs_dirent _romfs_root[] = {
  3. {ROMFS_DIRENT_DIR, "etc", RT_NULL, 0},
  4. {ROMFS_DIRENT_DIR, "mnt", RT_NULL, 0},
  5. {ROMFS_DIRENT_DIR, "boot", RT_NULL, 0},
  6. {ROMFS_DIRENT_DIR, "boot-resource", RT_NULL, 0},
  7. {ROMFS_DIRENT_DIR, "bin", RT_NULL, 0}
  8. };
  9. const struct romfs_dirent romfs_root = {
  10. ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_romfs_root, sizeof(_romfs_root) / sizeof(_romfs_root[0])};