Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
6c0865dd
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
460
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
6c0865dd
编写于
1月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!779 liteos-a kernel 部件标准化
Merge pull request !779 from Hongjin Li/lihongjin/br_dev
上级
0257a0a1
1ecda9c0
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
107 addition
and
134 deletion
+107
-134
apps/mksh/BUILD.gn
apps/mksh/BUILD.gn
+2
-1
apps/toybox/BUILD.gn
apps/toybox/BUILD.gn
+2
-1
bundle.json
bundle.json
+68
-0
drivers/char/bch/BUILD.gn
drivers/char/bch/BUILD.gn
+2
-11
drivers/char/video/BUILD.gn
drivers/char/video/BUILD.gn
+3
-2
fs/fat/BUILD.gn
fs/fat/BUILD.gn
+3
-7
fs/jffs2/BUILD.gn
fs/jffs2/BUILD.gn
+3
-28
fs/nfs/BUILD.gn
fs/nfs/BUILD.gn
+2
-5
fs/ramfs/BUILD.gn
fs/ramfs/BUILD.gn
+2
-1
fs/romfs/BUILD.gn
fs/romfs/BUILD.gn
+2
-4
fs/vfs/BUILD.gn
fs/vfs/BUILD.gn
+11
-59
kernel/extended/pipes/BUILD.gn
kernel/extended/pipes/BUILD.gn
+3
-6
lib/libc/BUILD.gn
lib/libc/BUILD.gn
+2
-8
lib/libscrew/BUILD.gn
lib/libscrew/BUILD.gn
+2
-1
未找到文件。
apps/mksh/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -29,13 +29,14 @@
...
@@ -29,13 +29,14 @@
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/component/lite_component.gni")
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/mksh/mksh.gni")
group("mksh") {
group("mksh") {
deps = [ ":build_mksh" ]
deps = [ ":build_mksh" ]
}
}
copy("copy_mksh_src") {
copy("copy_mksh_src") {
sources =
[ "$LITEOSTHIRDPARTY/mksh" ]
sources =
MKSH_SRC_DIR
outputs = [ "$target_out_dir/mksh_build" ]
outputs = [ "$target_out_dir/mksh_build" ]
}
}
...
...
apps/toybox/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -29,13 +29,14 @@
...
@@ -29,13 +29,14 @@
import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/component/lite_component.gni")
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/toybox/toybox.gni")
group("toybox") {
group("toybox") {
deps = [ ":build_toybox" ]
deps = [ ":build_toybox" ]
}
}
copy("copy_toybox_src") {
copy("copy_toybox_src") {
sources =
[ "$LITEOSTHIRDPARTY/toybox" ]
sources =
TOYBOX_SRC_DIR
outputs = [ "$target_out_dir/toybox_build" ]
outputs = [ "$target_out_dir/toybox_build" ]
}
}
...
...
bundle.json
0 → 100644
浏览文件 @
6c0865dd
{
"name"
:
"@ohos/liteos_a"
,
"version"
:
"3.1.0"
,
"description"
:
"liteos-a kernel"
,
"homePage"
:
"https://gitee.com/openharmony"
,
"license"
:
"BSD 3-clause"
,
"repository"
:
"https://gitee.com/openharmony/kernel_liteos_a"
,
"domain"
:
"os"
,
"language"
:
""
,
"publishAs"
:
"code-segment"
,
"private"
:
false
,
"scripts"
:
{},
"tags"
:
[
"kernel"
],
"keywords"
:
[
"kernel"
,
"liteos-a"
],
"envs"
:
[],
"dirs"
:
[],
"author"
:
{},
"contributors"
:
[],
"segment"
:
{
"destPath"
:
"kernel/liteos_a"
},
"component"
:
{
"name"
:
"liteos_a"
,
"subsystem"
:
"kernel"
,
"syscap"
:
[
"SystemCapability.Kernel.liteos-a"
],
"features"
:
[],
"adated_system_type"
:
[
"small"
],
"rom"
:
"1.5MB"
,
"ram"
:
"2MB"
,
"deps"
:
{
"components"
:
[
],
"third_party"
:
[
"bounds_checking_function"
,
"toybox"
,
"NuttX"
,
"Linux_Kernel"
,
"FatFs"
,
"mksh"
,
"musl"
,
"mbedtls"
,
"FreeBSD"
,
"zlib"
,
"lwip"
,
"optimized-routines"
,
"googletest"
]
},
"build"
:
{
"sub_component"
:
[
"//kernel/liteos_a:liteos_a"
],
"inner_kits"
:
[],
"test"
:
[
"//kernel/liteos_a/testsuites:testsuites"
]
}
}
}
\ No newline at end of file
drivers/char/bch/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,21 +28,12 @@
...
@@ -28,21 +28,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/NuttX/NuttX.gni")
module_switch = defined(LOSCFG_FS_VFS_BLOCK_DEVICE)
module_switch = defined(LOSCFG_FS_VFS_BLOCK_DEVICE)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
kernel_module(module_name) {
sources = [
sources = NUTTX_DRIVERS_BCH_SRC_FILES
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchdev_driver.c",
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchdev_register.c",
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchdev_unregister.c",
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchlib_cache.c",
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchlib_read.c",
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchlib_sem.c",
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchlib_setup.c",
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchlib_teardown.c",
"$LITEOSTHIRDPARTY/NuttX/drivers/bch/bchlib_write.c",
]
public_configs = [ ":public" ]
public_configs = [ ":public" ]
}
}
...
...
drivers/char/video/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,15 +28,16 @@
...
@@ -28,15 +28,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/NuttX/NuttX.gni")
module_switch = defined(LOSCFG_DRIVERS_VIDEO)
module_switch = defined(LOSCFG_DRIVERS_VIDEO)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
kernel_module(module_name) {
sources =
[ "$LITEOSTHIRDPARTY/NuttX/drivers/video/fb.c" ]
sources =
NUTTX_DRIVERS_VIDEO_SRC_FILES
public_configs = [ ":public" ]
public_configs = [ ":public" ]
}
}
config("public") {
config("public") {
include_dirs =
[ "$LITEOSTHIRDPARTY/NuttX/include/nuttx/video" ]
include_dirs =
NUTTX_DRIVERS_VIDEO_INCLUDE_DIRS
}
}
fs/fat/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/FatFs/FatFs.gni")
module_switch = defined(LOSCFG_FS_FAT)
module_switch = defined(LOSCFG_FS_FAT)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
...
@@ -38,12 +39,7 @@ kernel_module(module_name) {
...
@@ -38,12 +39,7 @@ kernel_module(module_name) {
"os_adapt/format.c",
"os_adapt/format.c",
]
]
sources += [
sources += FATFS_SRC_FILES
"$LITEOSTHIRDPARTY/FatFs/source/diskio.c",
"$LITEOSTHIRDPARTY/FatFs/source/ff.c",
"$LITEOSTHIRDPARTY/FatFs/source/ffsystem.c",
"$LITEOSTHIRDPARTY/FatFs/source/ffunicode.c",
]
include_dirs = [ "os_adapt" ]
include_dirs = [ "os_adapt" ]
...
@@ -51,5 +47,5 @@ kernel_module(module_name) {
...
@@ -51,5 +47,5 @@ kernel_module(module_name) {
}
}
config("public") {
config("public") {
include_dirs =
[ "$LITEOSTHIRDPARTY/FatFs/source" ]
include_dirs =
FATFS_INCLUDE_DIRS
}
}
fs/jffs2/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/Linux_Kernel/Linux_Kernel.gni")
module_switch = defined(LOSCFG_FS_JFFS)
module_switch = defined(LOSCFG_FS_JFFS)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
...
@@ -37,35 +38,9 @@ kernel_module(module_name) {
...
@@ -37,35 +38,9 @@ kernel_module(module_name) {
"src/vfs_jffs2.c",
"src/vfs_jffs2.c",
]
]
sources += [
sources += LINUX_KERNEL_FS_JFFS2_SRC_FILES
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/background.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/build.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/compr.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/compr_rtime.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/compr_rubin.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/compr_zlib.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/debug.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/dir.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/erase.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/file.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/fs.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/gc.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/malloc.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/nodelist.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/nodemgmt.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/read.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/readinode.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/scan.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/summary.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/super.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/write.c",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2/writev.c",
]
include_dirs = [
include_dirs = LINUX_KERNEL_FS_JFFS2_INCLUDE_DIRS
"$LITEOSTHIRDPARTY/Linux_Kernel/fs/jffs2",
"$LITEOSTHIRDPARTY/Linux_Kernel/fs",
]
public_configs = [ ":public" ]
public_configs = [ ":public" ]
}
}
...
...
fs/nfs/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,13 +28,10 @@
...
@@ -28,13 +28,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/NuttX/NuttX.gni")
module_switch = defined(LOSCFG_FS_NFS)
module_switch = defined(LOSCFG_FS_NFS)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
kernel_module(module_name) {
sources = [
sources = NUTTX_FS_NFS_SRC_FILES
"$LITEOSTHIRDPARTY/NuttX/fs/nfs/nfs_adapter.c",
"$LITEOSTHIRDPARTY/NuttX/fs/nfs/nfs_util.c",
"$LITEOSTHIRDPARTY/NuttX/fs/nfs/rpc_clnt.c",
]
}
}
fs/ramfs/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,9 +28,10 @@
...
@@ -28,9 +28,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/NuttX/NuttX.gni")
module_switch = defined(LOSCFG_FS_RAMFS)
module_switch = defined(LOSCFG_FS_RAMFS)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
kernel_module(module_name) {
sources =
[ "$LITEOSTHIRDPARTY/NuttX/fs/tmpfs/fs_tmpfs.c" ]
sources =
NUTTX_FS_TMPFS_SRC_FILES
}
}
fs/romfs/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,12 +28,10 @@
...
@@ -28,12 +28,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/NuttX/NuttX.gni")
module_switch = defined(LOSCFG_FS_ROMFS)
module_switch = defined(LOSCFG_FS_ROMFS)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
kernel_module(module_name) {
sources = [
sources = NUTTX_FS_ROMFS_SRC_FILES
"$LITEOSTHIRDPARTY/NuttX/fs/romfs/fs_romfs.c",
"$LITEOSTHIRDPARTY/NuttX/fs/romfs/fs_romfsutil.c",
]
}
}
fs/vfs/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,11 +28,17 @@
...
@@ -28,11 +28,17 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/NuttX/NuttX.gni")
module_switch = defined(LOSCFG_FS_VFS)
module_switch = defined(LOSCFG_FS_VFS)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
kernel_module(module_name) {
sources = [
sources = [
"$LITEOSTOPDIR/fs/vfs/epoll/fs_epoll.c",
"$LITEOSTOPDIR/fs/vfs/mount.c",
"$LITEOSTOPDIR/fs/vfs/path_cache.c",
"$LITEOSTOPDIR/fs/vfs/vnode.c",
"$LITEOSTOPDIR/fs/vfs/vnode_hash.c",
"operation/fullpath.c",
"operation/fullpath.c",
"operation/vfs_chattr.c",
"operation/vfs_chattr.c",
"operation/vfs_check.c",
"operation/vfs_check.c",
...
@@ -51,65 +57,11 @@ kernel_module(module_name) {
...
@@ -51,65 +57,11 @@ kernel_module(module_name) {
"operation/vfs_writev.c",
"operation/vfs_writev.c",
"vfs_cmd/vfs_shellcmd.c",
"vfs_cmd/vfs_shellcmd.c",
]
]
sources += NUTTX_FS_DIRENT_SRC_FILES
sources += [
sources += NUTTX_FS_DRIVER_SRC_FILES
"$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_closedir.c",
sources += NUTTX_FS_INODE_SRC_FILES
"$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_opendir.c",
sources += NUTTX_FS_MOUNT_SRC_FILES
"$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_readdir.c",
sources += NUTTX_FS_VFS_SRC_FILES
"$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_rewinddir.c",
"$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_seekdir.c",
"$LITEOSTHIRDPARTY/NuttX/fs/dirent/fs_telldir.c",
"$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_blockproxy.c",
"$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_closeblockdriver.c",
"$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_findblockdriver.c",
"$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_openblockdriver.c",
"$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_registerblockdriver.c",
"$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_registerdriver.c",
"$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_unregisterblockdriver.c",
"$LITEOSTHIRDPARTY/NuttX/fs/driver/fs_unregisterdriver.c",
"$LITEOSTHIRDPARTY/NuttX/fs/inode/fs_files.c",
"$LITEOSTHIRDPARTY/NuttX/fs/mount/fs_foreachmountpoint.c",
"$LITEOSTHIRDPARTY/NuttX/fs/mount/fs_mount.c",
"$LITEOSTHIRDPARTY/NuttX/fs/mount/fs_sync.c",
"$LITEOSTHIRDPARTY/NuttX/fs/mount/fs_umount.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_close.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_dup.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_dup2.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_dupfd.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_dupfd2.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_fcntl.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_fsync.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_getfilep.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_ioctl.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_link.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_lseek.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_lseek64.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_mkdir.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_open.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_poll.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_pread.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_pread64.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_pwrite.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_pwrite64.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_read.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_readlink.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_rename.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_rmdir.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_select.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_sendfile.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_stat.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_statfs.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_symlink.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_truncate.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_truncate64.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_unlink.c",
"$LITEOSTHIRDPARTY/NuttX/fs/vfs/fs_write.c",
"$LITEOSTOPDIR/fs/vfs/epoll/fs_epoll.c",
"$LITEOSTOPDIR/fs/vfs/mount.c",
"$LITEOSTOPDIR/fs/vfs/path_cache.c",
"$LITEOSTOPDIR/fs/vfs/vnode.c",
"$LITEOSTOPDIR/fs/vfs/vnode_hash.c",
]
include_dirs = [
include_dirs = [
"$LITEOSTOPDIR/syscall",
"$LITEOSTOPDIR/syscall",
...
...
kernel/extended/pipes/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,19 +28,16 @@
...
@@ -28,19 +28,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/NuttX/NuttX.gni")
module_switch = defined(LOSCFG_KERNEL_PIPE)
module_switch = defined(LOSCFG_KERNEL_PIPE)
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
kernel_module(module_name) {
sources = [
sources = NUTTX_DRIVERS_PIPES_SRC_FILES
"//third_party/NuttX/drivers/pipes/fifo.c",
"//third_party/NuttX/drivers/pipes/pipe.c",
"//third_party/NuttX/drivers/pipes/pipe_common.c",
]
public_configs = [ ":public" ]
public_configs = [ ":public" ]
}
}
config("public") {
config("public") {
include_dirs =
[ "//third_party/NuttX/drivers/pipes" ]
include_dirs =
NUTTX_DRIVERS_PIPES_INCLUDE_DIRS
}
}
lib/libc/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
MUSLDIR = "$LITEOSTHIRDPARTY/musl"
MUSLDIR = "$LITEOSTHIRDPARTY/musl"
OPTRTDIR = "$LITEOSTHIRDPARTY/optimized-routines"
import("//third_party/optimized-routines/optimized-routines.gni")
import("$MUSLDIR/porting/liteos_a/kernel/musl.gni")
import("$MUSLDIR/porting/liteos_a/kernel/musl.gni")
module_switch = defined(LOSCFG_LIB_LIBC)
module_switch = defined(LOSCFG_LIB_LIBC)
...
@@ -54,13 +54,7 @@ kernel_module(module_name) {
...
@@ -54,13 +54,7 @@ kernel_module(module_name) {
"$MUSLPORTINGDIR/src/string/strcpy.c",
"$MUSLPORTINGDIR/src/string/strcpy.c",
"$MUSLPORTINGDIR/src/string/strlen.c",
"$MUSLPORTINGDIR/src/string/strlen.c",
]
]
sources += [
sources += OPTRT_STRING_ARM_SRC_FILES
"$OPTRTDIR/string/arm/memchr.S",
"$OPTRTDIR/string/arm/memcpy.S",
"$OPTRTDIR/string/arm/strcmp.S",
"$OPTRTDIR/string/arm/strcpy.c",
"$OPTRTDIR/string/arm/strlen-armv6t2.S",
]
asmflags = [
asmflags = [
"-D__strlen_armv6t2=strlen",
"-D__strlen_armv6t2=strlen",
"-D__strcmp_arm=strcmp",
"-D__strcmp_arm=strcmp",
...
...
lib/libscrew/BUILD.gn
浏览文件 @
6c0865dd
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//kernel/liteos_a/liteos.gni")
import("//kernel/liteos_a/liteos.gni")
import("//third_party/FreeBSD/FreeBSD.gni")
module_name = get_path_info(rebase_path("."), "name")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
kernel_module(module_name) {
...
@@ -38,7 +39,7 @@ kernel_module(module_name) {
...
@@ -38,7 +39,7 @@ kernel_module(module_name) {
"src/los_seq_buf.c",
"src/los_seq_buf.c",
]
]
sources +=
[ "$LITEOSTHIRDPARTY/FreeBSD/sys/libkern/crc32.c" ]
sources +=
FREEBSD_SYS_LIBKERN_SRC_FILES
public_configs = [ ":public" ]
public_configs = [ ":public" ]
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录