Просмотр исходного кода

Add romfs.c in a simple folder structure

Bernard Xiong 5 лет назад
Родитель
Сommit
f0e3aa1799
1 измененных файлов с 16 добавлено и 0 удалено
  1. 16 0
      bsp/qemu-vexpress-a9/applications/romfs.c

+ 16 - 0
bsp/qemu-vexpress-a9/applications/romfs.c

@@ -0,0 +1,16 @@
+/* Generated by mkromfs. Edit with caution. */
+#include <rtthread.h>
+#include <dfs_romfs.h>
+
+
+
+
+
+static const struct romfs_dirent _romfs_root[] = {
+    {ROMFS_DIRENT_DIR, "etc", RT_NULL, 0},
+    {ROMFS_DIRENT_DIR, "mnt", RT_NULL, 0}
+};
+
+const struct romfs_dirent romfs_root = {
+    ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_romfs_root, sizeof(_romfs_root)/sizeof(_romfs_root[0])
+};