fs/tmpfs: Add an unfinished implementation of tmpfs
This commit is contained in:
parent
e947ea587d
commit
e91f82b0f8
@ -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>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -33,15 +33,15 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
ifeq ($(CONFIG_FS_ROMFS),y)
|
||||
# Files required for ROMFS file system support
|
||||
ifeq ($(CONFIG_FS_TMPFS),y)
|
||||
# Files required for TMPFS file system support
|
||||
|
||||
ASRCS +=
|
||||
CSRCS += fs_romfs.c fs_romfsutil.c
|
||||
CSRCS += fs_tmpfs.c
|
||||
|
||||
# Include ROMFS build support
|
||||
# Include TMPFS build support
|
||||
|
||||
DEPPATH += --dep-path romfs
|
||||
VPATH += :romfs
|
||||
DEPPATH += --dep-path tmpfs
|
||||
VPATH += :tmpfs
|
||||
|
||||
endif
|
||||
|
1284
fs/tmpfs/fs_tmpfs.c
Normal file
1284
fs/tmpfs/fs_tmpfs.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -129,7 +129,7 @@ struct tmpfs_file_s
|
||||
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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user