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 30import("//kernel/liteos_a/liteos.gni") 31 32module_switch = defined(LOSCFG_FS_VFS) 33module_name = get_path_info(rebase_path("."), "name") 34kernel_module(module_name) { 35 sources = [ 36 "operation/fullpath.c", 37 "operation/vfs_chattr.c", 38 "operation/vfs_check.c", 39 "operation/vfs_cloexec.c", 40 "operation/vfs_fallocate.c", 41 "operation/vfs_fallocate64.c", 42 "operation/vfs_fcntl.c", 43 "operation/vfs_force_umount.c", 44 "operation/vfs_init.c", 45 "operation/vfs_other.c", 46 "operation/vfs_preadv.c", 47 "operation/vfs_procfd.c", 48 "operation/vfs_pwritev.c", 49 "operation/vfs_readv.c", 50 "operation/vfs_utime.c", 51 "operation/vfs_writev.c", 52 "vfs_cmd/vfs_shellcmd.c", 53 ] 54 55 sources += [ 56 "$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_closedir.c", 57 "$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_opendir.c", 58 "$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_readdir.c", 59 "$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_rewinddir.c", 60 "$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_seekdir.c", 61 "$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_telldir.c", 62 "$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_blockproxy.c", 63 "$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_closeblockdriver.c", 64 "$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_findblockdriver.c", 65 "$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_openblockdriver.c", 66 "$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_registerblockdriver.c", 67 "$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_registerdriver.c", 68 "$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_unregisterblockdriver.c", 69 "$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_unregisterdriver.c", 70 "$LITEOSTHIRDPARTY/NuttX/fs/inode/fs_files.c", 71 "$LITEOSTHIRDPARTY/NuttX/fs/mount/fs_foreachmountpoint.c", 72 "$LITEOSTHIRDPARTY/NuttX/fs/mount/fs_mount.c", 73 "$LITEOSTHIRDPARTY/NuttX/fs/mount/fs_umount.c", 74 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_close.c", 75 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_dup.c", 76 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_dup2.c", 77 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_dupfd.c", 78 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_dupfd2.c", 79 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_fcntl.c", 80 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_fsync.c", 81 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_getfilep.c", 82 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_ioctl.c", 83 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_link.c", 84 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_lseek.c", 85 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_lseek64.c", 86 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_mkdir.c", 87 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_open.c", 88 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_poll.c", 89 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_pread.c", 90 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_pread64.c", 91 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_pwrite.c", 92 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_pwrite64.c", 93 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_read.c", 94 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_readlink.c", 95 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_rename.c", 96 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_rmdir.c", 97 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_select.c", 98 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_sendfile.c", 99 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_stat.c", 100 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_statfs.c", 101 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_symlink.c", 102 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_truncate.c", 103 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_truncate64.c", 104 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_unlink.c", 105 "$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_write.c", 106 "$LITEOSTOPDIR/fs/vfs/mount.c", 107 "$LITEOSTOPDIR/fs/vfs/path_cache.c", 108 "$LITEOSTOPDIR/fs/vfs/vnode.c", 109 "$LITEOSTOPDIR/fs/vfs/vnode_hash.c", 110 ] 111 112 include_dirs = [ 113 "$LITEOSTOPDIR/syscall", 114 "$LITEOSTOPDIR/fs/zpfs/include", 115 ] 116 public_configs = [ ":public" ] 117} 118 119config("public") { 120 include_dirs = [ "include" ] 121} 122