• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without modification,
4# are permitted provided that the following conditions are met:
5#
6# 1. Redistributions of source code must retain the above copyright notice, this list of
7#    conditions and the following disclaimer.
8#
9# 2. Redistributions in binary form must reproduce the above copyright notice, this list
10#    of conditions and the following disclaimer in the documentation and/or other materials
11#    provided with the distribution.
12#
13# 3. Neither the name of the copyright holder nor the names of its contributors may be used
14#    to endorse or promote products derived from this software without specific prior written
15#    permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29# Nuttx/drivers source files
30NUTTX_DRIVERS_BCH_SRC_FILES = [
31  "//third_party/NuttX/drivers/bch/bchdev_driver.c",
32  "//third_party/NuttX/drivers/bch/bchdev_register.c",
33  "//third_party/NuttX/drivers/bch/bchdev_unregister.c",
34  "//third_party/NuttX/drivers/bch/bchlib_cache.c",
35  "//third_party/NuttX/drivers/bch/bchlib_read.c",
36  "//third_party/NuttX/drivers/bch/bchlib_sem.c",
37  "//third_party/NuttX/drivers/bch/bchlib_setup.c",
38  "//third_party/NuttX/drivers/bch/bchlib_teardown.c",
39  "//third_party/NuttX/drivers/bch/bchlib_write.c",
40]
41
42NUTTX_DRIVERS_PIPES_SRC_FILES = [
43  "//third_party/NuttX/drivers/pipes/fifo.c",
44  "//third_party/NuttX/drivers/pipes/pipe.c",
45  "//third_party/NuttX/drivers/pipes/pipe_common.c",
46]
47
48NUTTX_DRIVERS_PIPES_INCLUDE_DIRS = [ "//third_party/NuttX/drivers/pipes" ]
49
50NUTTX_DRIVERS_VIDEO_SRC_FILES = [ "//third_party/NuttX/drivers/video/fb.c" ]
51
52NUTTX_DRIVERS_VIDEO_INCLUDE_DIRS = [ "//third_party/NuttX/include/nuttx/video" ]
53
54# Nuttx/fs source files for liteos-a kernel fs
55NUTTX_FS_DIRENT_SRC_FILES = [
56  "//third_party/NuttX/fs/dirent/fs_closedir.c",
57  "//third_party/NuttX/fs/dirent/fs_opendir.c",
58  "//third_party/NuttX/fs/dirent/fs_readdir.c",
59  "//third_party/NuttX/fs/dirent/fs_rewinddir.c",
60  "//third_party/NuttX/fs/dirent/fs_seekdir.c",
61  "//third_party/NuttX/fs/dirent/fs_telldir.c",
62]
63
64NUTTX_FS_DRIVER_SRC_FILES = [
65  "//third_party/NuttX/fs/driver/fs_blockproxy.c",
66  "//third_party/NuttX/fs/driver/fs_closeblockdriver.c",
67  "//third_party/NuttX/fs/driver/fs_findblockdriver.c",
68  "//third_party/NuttX/fs/driver/fs_openblockdriver.c",
69  "//third_party/NuttX/fs/driver/fs_registerblockdriver.c",
70  "//third_party/NuttX/fs/driver/fs_registerdriver.c",
71  "//third_party/NuttX/fs/driver/fs_unregisterblockdriver.c",
72  "//third_party/NuttX/fs/driver/fs_unregisterdriver.c",
73]
74
75NUTTX_FS_INODE_SRC_FILES = [ "//third_party/NuttX/fs/inode/fs_files.c" ]
76
77NUTTX_FS_MOUNT_SRC_FILES = [
78  "//third_party/NuttX/fs/mount/fs_foreachmountpoint.c",
79  "//third_party/NuttX/fs/mount/fs_mount.c",
80  "//third_party/NuttX/fs/mount/fs_sync.c",
81  "//third_party/NuttX/fs/mount/fs_umount.c",
82]
83
84NUTTX_FS_VFS_SRC_FILES = [
85  "//third_party/NuttX/fs/vfs/fs_close.c",
86  "//third_party/NuttX/fs/vfs/fs_dup.c",
87  "//third_party/NuttX/fs/vfs/fs_dup2.c",
88  "//third_party/NuttX/fs/vfs/fs_dupfd.c",
89  "//third_party/NuttX/fs/vfs/fs_dupfd2.c",
90  "//third_party/NuttX/fs/vfs/fs_fcntl.c",
91  "//third_party/NuttX/fs/vfs/fs_fsync.c",
92  "//third_party/NuttX/fs/vfs/fs_getfilep.c",
93  "//third_party/NuttX/fs/vfs/fs_ioctl.c",
94  "//third_party/NuttX/fs/vfs/fs_link.c",
95  "//third_party/NuttX/fs/vfs/fs_lseek.c",
96  "//third_party/NuttX/fs/vfs/fs_lseek64.c",
97  "//third_party/NuttX/fs/vfs/fs_mkdir.c",
98  "//third_party/NuttX/fs/vfs/fs_open.c",
99  "//third_party/NuttX/fs/vfs/fs_poll.c",
100  "//third_party/NuttX/fs/vfs/fs_pread.c",
101  "//third_party/NuttX/fs/vfs/fs_pread64.c",
102  "//third_party/NuttX/fs/vfs/fs_pwrite.c",
103  "//third_party/NuttX/fs/vfs/fs_pwrite64.c",
104  "//third_party/NuttX/fs/vfs/fs_read.c",
105  "//third_party/NuttX/fs/vfs/fs_readlink.c",
106  "//third_party/NuttX/fs/vfs/fs_rename.c",
107  "//third_party/NuttX/fs/vfs/fs_rmdir.c",
108  "//third_party/NuttX/fs/vfs/fs_select.c",
109  "//third_party/NuttX/fs/vfs/fs_sendfile.c",
110  "//third_party/NuttX/fs/vfs/fs_stat.c",
111  "//third_party/NuttX/fs/vfs/fs_statfs.c",
112  "//third_party/NuttX/fs/vfs/fs_symlink.c",
113  "//third_party/NuttX/fs/vfs/fs_truncate.c",
114  "//third_party/NuttX/fs/vfs/fs_truncate64.c",
115  "//third_party/NuttX/fs/vfs/fs_unlink.c",
116  "//third_party/NuttX/fs/vfs/fs_write.c",
117]
118
119NUTTX_FS_NFS_SRC_FILES = [
120  "//third_party/NuttX/fs/nfs/nfs_adapter.c",
121  "//third_party/NuttX/fs/nfs/nfs_util.c",
122  "//third_party/NuttX/fs/nfs/rpc_clnt.c",
123]
124
125NUTTX_FS_TMPFS_SRC_FILES = [ "//third_party/NuttX/fs/tmpfs/fs_tmpfs.c" ]
126
127NUTTX_FS_ROMFS_SRC_FILES = [
128  "//third_party/NuttX/fs/romfs/fs_romfs.c",
129  "//third_party/NuttX/fs/romfs/fs_romfsutil.c",
130]
131