mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
fs/tmpfs: Add an unfinished implementation of tmpfs
This commit is contained in:
+8
-8
@@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# fs/romfs/Make.defs
|
# fs/tmpfs/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008, 2011, 2013 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -33,15 +33,15 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
ifeq ($(CONFIG_FS_ROMFS),y)
|
ifeq ($(CONFIG_FS_TMPFS),y)
|
||||||
# Files required for ROMFS file system support
|
# Files required for TMPFS file system support
|
||||||
|
|
||||||
ASRCS +=
|
ASRCS +=
|
||||||
CSRCS += fs_romfs.c fs_romfsutil.c
|
CSRCS += fs_tmpfs.c
|
||||||
|
|
||||||
# Include ROMFS build support
|
# Include TMPFS build support
|
||||||
|
|
||||||
DEPPATH += --dep-path romfs
|
DEPPATH += --dep-path tmpfs
|
||||||
VPATH += :romfs
|
VPATH += :tmpfs
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
+1284
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -129,7 +129,7 @@ struct tmpfs_file_s
|
|||||||
uint8_t tfo_data[1]; /* File data starts here */
|
uint8_t tfo_data[1]; /* File data starts here */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SIZEOF_TMPFS_DIRECTORY(n) (sizeof(struct tmpfs_file_s) + (n) - 1)
|
#define SIZEOF_TMPFS_FILE(n) (sizeof(struct tmpfs_file_s) + (n) - 1)
|
||||||
|
|
||||||
/* This structure represents one instance of a TMPFS file system */
|
/* This structure represents one instance of a TMPFS file system */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user