1# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 2# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without modification, 5# are permitted provided that the following conditions are met: 6# 7# 1. Redistributions of source code must retain the above copyright notice, this list of 8# conditions and the following disclaimer. 9# 10# 2. Redistributions in binary form must reproduce the above copyright notice, this list 11# of conditions and the following disclaimer in the documentation and/or other materials 12# provided with the distribution. 13# 14# 3. Neither the name of the copyright holder nor the names of its contributors may be used 15# to endorse or promote products derived from this software without specific prior written 16# permission. 17# 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 20# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 25# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 27# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 28# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 30include $(LITEOSTOPDIR)/config.mk 31 32MODULE_NAME := $(notdir $(shell pwd)) 33LOCAL_SRCS := \ 34$(LITEOSTOPDIR)/fs/vfs/mount.c \ 35$(LITEOSTOPDIR)/fs/vfs/vnode.c \ 36$(LITEOSTOPDIR)/fs/vfs/path_cache.c \ 37$(LITEOSTOPDIR)/fs/vfs/vnode_hash.c \ 38$(LITEOSTOPDIR)/fs/vfs/epoll/fs_epoll.c \ 39$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_close.c \ 40$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_dup2.c \ 41$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_dup.c \ 42$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_dupfd2.c \ 43$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_dupfd.c \ 44$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_fcntl.c \ 45$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_fsync.c \ 46$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_getfilep.c \ 47$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_ioctl.c \ 48$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_lseek.c \ 49$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_lseek64.c \ 50$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_mkdir.c \ 51$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_open.c \ 52$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_poll.c \ 53$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_pread.c \ 54$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_pread64.c \ 55$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_pwrite.c \ 56$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_pwrite64.c \ 57$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_read.c \ 58$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_rename.c \ 59$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_rmdir.c \ 60$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_select.c \ 61$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_sendfile.c \ 62$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_stat.c \ 63$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_statfs.c \ 64$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_truncate.c \ 65$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_truncate64.c \ 66$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_unlink.c \ 67$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_link.c \ 68$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_readlink.c \ 69$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_symlink.c \ 70$(LITEOSTHIRDPARTY)/NuttX/fs/vfs/fs_write.c \ 71$(wildcard operation/*.c) \ 72\ 73$(LITEOSTHIRDPARTY)/NuttX/fs/inode/fs_files.c \ 74\ 75$(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_closedir.c \ 76$(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_opendir.c \ 77$(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_readdir.c \ 78$(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_rewinddir.c \ 79$(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_seekdir.c \ 80$(LITEOSTHIRDPARTY)/NuttX/fs/dirent/fs_telldir.c \ 81\ 82$(LITEOSTHIRDPARTY)/NuttX/fs/mount/fs_mount.c \ 83$(LITEOSTHIRDPARTY)/NuttX/fs/mount/fs_umount.c \ 84$(LITEOSTHIRDPARTY)/NuttX/fs/mount/fs_sync.c \ 85\ 86$(LITEOSTHIRDPARTY)/NuttX/fs/driver/fs_blockproxy.c \ 87$(LITEOSTHIRDPARTY)/NuttX/fs/mount/fs_foreachmountpoint.c \ 88$(LITEOSTHIRDPARTY)/NuttX/fs/driver/fs_findblockdriver.c \ 89$(LITEOSTHIRDPARTY)/NuttX/fs/driver/fs_openblockdriver.c \ 90$(LITEOSTHIRDPARTY)/NuttX/fs/driver/fs_closeblockdriver.c \ 91$(LITEOSTHIRDPARTY)/NuttX/fs/driver/fs_registerblockdriver.c \ 92$(LITEOSTHIRDPARTY)/NuttX/fs/driver/fs_registerdriver.c \ 93$(LITEOSTHIRDPARTY)/NuttX/fs/driver/fs_unregisterblockdriver.c \ 94$(LITEOSTHIRDPARTY)/NuttX/fs/driver/fs_unregisterdriver.c \ 95\ 96$(wildcard vfs_cmd/*.c) 97 98LOCAL_INCLUDE := \ 99 -I $(LITEOSTOPDIR)/drivers/char/bch/include\ 100 -I $(LITEOSTOPDIR)/syscall\ 101 -I $(LITEOSTOPDIR)/fs/zpfs/include 102 103LOCAL_FLAGS := $(LOCAL_INCLUDE) 104 105include $(MODULE) 106