romfs.c 602 B

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