Jelajahi Sumber

Add romfs.c in a simple folder structure

Bernard Xiong 5 tahun lalu
induk
melakukan
f0e3aa1799
1 mengubah file dengan 16 tambahan dan 0 penghapusan
  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])
+};