romfs.c 556 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-08-05 JasonHu first version
  9. */
  10. #include <dfs_romfs.h>
  11. static const struct romfs_dirent _romfs_root[] = {
  12. {ROMFS_DIRENT_DIR, "etc", RT_NULL, 0},
  13. {ROMFS_DIRENT_DIR, "mnt", RT_NULL, 0},
  14. {ROMFS_DIRENT_DIR, "bin", RT_NULL, 0}
  15. };
  16. const struct romfs_dirent romfs_root = {
  17. ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_romfs_root, sizeof(_romfs_root) / sizeof(_romfs_root[0])};