Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
3b808381
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
接近 2 年 前同步成功
通知
474
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看板
提交
3b808381
编写于
11月 06, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 06, 2021
浏览文件
操作
浏览文件
下载
差异文件
!701 按照门禁要求对所有BUILD.gn脚本进行格式化
Merge pull request !701 from Caoruihong/gnformat
上级
5077b179
a2fed9a5
变更
29
隐藏空白更改
内联
并排
Showing
29 changed file
with
54 addition
and
89 deletion
+54
-89
apps/toybox/BUILD.gn
apps/toybox/BUILD.gn
+4
-1
apps/trace/BUILD.gn
apps/trace/BUILD.gn
+1
-1
kernel/base/BUILD.gn
kernel/base/BUILD.gn
+1
-1
kernel/extended/trace/BUILD.gn
kernel/extended/trace/BUILD.gn
+3
-3
lib/libc/BUILD.gn
lib/libc/BUILD.gn
+2
-2
liteos.gni
liteos.gni
+4
-2
testsuites/unittest/BUILD.gn
testsuites/unittest/BUILD.gn
+6
-8
testsuites/unittest/IPC/BUILD.gn
testsuites/unittest/IPC/BUILD.gn
+1
-2
testsuites/unittest/drivers/hid/BUILD.gn
testsuites/unittest/drivers/hid/BUILD.gn
+3
-6
testsuites/unittest/drivers/storage/BUILD.gn
testsuites/unittest/drivers/storage/BUILD.gn
+3
-6
testsuites/unittest/dynload/BUILD.gn
testsuites/unittest/dynload/BUILD.gn
+2
-3
testsuites/unittest/exc/BUILD.gn
testsuites/unittest/exc/BUILD.gn
+2
-4
testsuites/unittest/fs/proc/BUILD.gn
testsuites/unittest/fs/proc/BUILD.gn
+2
-3
testsuites/unittest/fs/vfat/BUILD.gn
testsuites/unittest/fs/vfat/BUILD.gn
+1
-3
testsuites/unittest/liteipc/BUILD.gn
testsuites/unittest/liteipc/BUILD.gn
+1
-2
testsuites/unittest/mem/shm/BUILD.gn
testsuites/unittest/mem/shm/BUILD.gn
+1
-3
testsuites/unittest/mem/vm/BUILD.gn
testsuites/unittest/mem/vm/BUILD.gn
+1
-2
testsuites/unittest/net/netdb/BUILD.gn
testsuites/unittest/net/netdb/BUILD.gn
+2
-2
testsuites/unittest/net/socket/BUILD.gn
testsuites/unittest/net/socket/BUILD.gn
+1
-2
testsuites/unittest/posix/mem/BUILD.gn
testsuites/unittest/posix/mem/BUILD.gn
+1
-2
testsuites/unittest/process/mutex/BUILD.gn
testsuites/unittest/process/mutex/BUILD.gn
+0
-1
testsuites/unittest/process/rwlock/BUILD.gn
testsuites/unittest/process/rwlock/BUILD.gn
+2
-6
testsuites/unittest/process/spinlock/BUILD.gn
testsuites/unittest/process/spinlock/BUILD.gn
+2
-5
testsuites/unittest/security/reugid/BUILD.gn
testsuites/unittest/security/reugid/BUILD.gn
+2
-5
testsuites/unittest/security/vid/BUILD.gn
testsuites/unittest/security/vid/BUILD.gn
+2
-5
testsuites/unittest/signal/BUILD.gn
testsuites/unittest/signal/BUILD.gn
+1
-2
testsuites/unittest/time/timer/BUILD.gn
testsuites/unittest/time/timer/BUILD.gn
+1
-2
testsuites/unittest/trace/BUILD.gn
testsuites/unittest/trace/BUILD.gn
+1
-2
testsuites/unittest/util/BUILD.gn
testsuites/unittest/util/BUILD.gn
+1
-3
未找到文件。
apps/toybox/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -46,7 +46,10 @@ copy("copy_toybox_config") {
}
build_ext_component("build_toybox") {
deps = [ ":copy_toybox_src", ":copy_toybox_config" ]
deps = [
":copy_toybox_config",
":copy_toybox_src",
]
deps += [ "//prebuilts/lite/sysroot" ]
exec_path = rebase_path("$target_out_dir/toybox_build")
...
...
apps/trace/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -31,4 +31,4 @@ import("//kernel/liteos_a/liteos.gni")
executable("trace") {
sources = [ "src/trace.c" ]
}
\ No newline at end of file
}
kernel/base/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -34,11 +34,11 @@ kernel_module(module_name) {
sources = [
"core/los_bitmap.c",
"core/los_process.c",
"core/los_smp.c",
"core/los_swtmr.c",
"core/los_sys.c",
"core/los_task.c",
"core/los_tick.c",
"core/los_smp.c",
"ipc/los_event.c",
"ipc/los_futex.c",
"ipc/los_ipcdebug.c",
...
...
kernel/extended/trace/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -33,8 +33,8 @@ module_switch = defined(LOSCFG_KERNEL_TRACE)
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
sources = [
"los_trace.c",
"cnv/trace_cnv.c",
"los_trace.c",
]
include_dirs = [
...
...
@@ -43,11 +43,11 @@ kernel_module(module_name) {
"pipeline",
]
if (defined(LOSCFG_RECORDER_MODE_OFFLINE)){
if (defined(LOSCFG_RECORDER_MODE_OFFLINE))
{
sources += [ "trace_offline.c" ]
}
if (defined(LOSCFG_RECORDER_MODE_ONLINE)){
if (defined(LOSCFG_RECORDER_MODE_ONLINE))
{
sources += [ "trace_online.c" ]
}
...
...
lib/libc/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -69,13 +69,13 @@ kernel_module(module_name) {
"-D__memchr_arm=memchr",
]
sources += [
"src/arch/arm/memset.S",
"src/arch/arm/memcmp.S",
"src/arch/arm/memset.S",
]
} else {
sources += [
"src/memset.c",
"src/memcmp.c",
"src/memset.c",
]
}
...
...
liteos.gni
浏览文件 @
3b808381
...
...
@@ -45,7 +45,8 @@ template("kernel_module") {
if (target_name != current_dir_name) {
build_gn = rebase_path("BUILD.gn")
cmd = "if grep -q '^\s*group\s*(\s*\"$current_dir_name\"\s*)\s*{\s*\$' $build_gn; then echo true; else echo false; fi"
has_current_dir_group = exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value")
has_current_dir_group =
exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value")
if (!has_current_dir_group) {
module_name = target_name
group(current_dir_name) {
...
...
@@ -66,7 +67,8 @@ template("kernel_module") {
template("config") {
config(target_name) {
if (defined(invoker.module_switch) && !invoker.module_switch && target_name == "public") {
if (defined(invoker.module_switch) && !invoker.module_switch &&
target_name == "public") {
not_needed(invoker, "*")
forward_variables_from(invoker, [ "configs" ])
} else {
...
...
testsuites/unittest/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -36,14 +36,13 @@ local_flags = [
"-Wno-narrowing",
"-fPIE",
]
if (LOSCFG_USER_TEST_SMP == "enable" || (LOSCFG_USER_TEST_SMP == "default" && board_name == "hispark_taurus")) {
if (LOSCFG_USER_TEST_SMP == "enable" ||
(LOSCFG_USER_TEST_SMP == "default" && board_name == "hispark_taurus")) {
local_flags += [ "-DLOSCFG_USER_TEST_SMP" ]
}
config("public_config_for_door") {
cflags = [
"-DLOSCFG_USER_TEST_SMOKE",
]
cflags = [ "-DLOSCFG_USER_TEST_SMOKE" ]
cflags += local_flags
cflags_cc = cflags
}
...
...
@@ -58,9 +57,7 @@ config("public_config_for_all") {
}
config("public_config_for_pressure") {
cflags = [
"-DLOSCFG_USER_TEST_PRESSURE",
]
cflags = [ "-DLOSCFG_USER_TEST_PRESSURE" ]
cflags += local_flags
cflags_cc = cflags
}
...
...
@@ -276,7 +273,8 @@ group("unittest") {
}
if (LOSCFG_USER_TEST_SECURITY_CAPABILITY == true) {
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
deps += [ "security/capability:liteos_a_security_capability_unittest_door" ]
deps +=
[ "security/capability:liteos_a_security_capability_unittest_door" ]
}
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
deps += [ "security/capability:liteos_a_security_capability_unittest" ]
...
...
testsuites/unittest/IPC/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,8 +41,7 @@ sources_entry = [
"ipc_test.cpp",
]
sources_smoke = [
]
sources_smoke = []
sources_full = [
"full/IPC_test_mkfifoat_001.cpp",
...
...
testsuites/unittest/drivers/hid/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,12 +41,9 @@ sources_entry = [
"drivers_hid_test.cpp",
]
sources_smoke = [
"smoke/hid_test_001.cpp",
]
sources_smoke = [ "smoke/hid_test_001.cpp" ]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_drivers_hid_unittest_door") {
...
...
@@ -73,4 +70,4 @@ if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
configs = [ "../..:public_config_for_all" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
\ No newline at end of file
}
testsuites/unittest/drivers/storage/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,12 +41,9 @@ sources_entry = [
"drivers_storage_test.cpp",
]
sources_smoke = [
"smoke/storage_test_001.cpp",
]
sources_smoke = [ "smoke/storage_test_001.cpp" ]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_drivers_storage_unittest_door") {
...
...
@@ -73,4 +70,4 @@ if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
configs = [ "../..:public_config_for_all" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
\ No newline at end of file
}
testsuites/unittest/dynload/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -46,8 +46,7 @@ sources_smoke = [
"smoke/dynload_test_004.cpp",
]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_dynload_unittest_door") {
...
...
@@ -74,4 +73,4 @@ if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
configs = [ "..:public_config_for_all" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
\ No newline at end of file
}
testsuites/unittest/exc/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -49,9 +49,7 @@ sources_smoke = [
"smoke/it_test_exc_005.cpp",
]
sources_full = [
"full/it_test_fexecve_001.cpp",
]
sources_full = [ "full/it_test_fexecve_001.cpp" ]
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_exc_unittest_door") {
...
...
@@ -78,4 +76,4 @@ if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
configs = [ "..:public_config_for_all" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
\ No newline at end of file
}
testsuites/unittest/fs/proc/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,8 +41,7 @@ sources_entry = [
"It_vfs_proc.cpp",
]
sources_smoke = [
]
sources_smoke = []
sources_full = [
"full/It_vfs_proc_001.cpp",
...
...
@@ -78,4 +77,4 @@ if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_MIDDLE) {
configs = [ "../..:public_config_for_all" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
}
}
\ No newline at end of file
}
testsuites/unittest/fs/vfat/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -42,9 +42,7 @@ sources_entry = [
"VfsFatTest.cpp",
]
sources_smoke = [
"smoke/It_vfs_fat_026.cpp",
]
sources_smoke = [ "smoke/It_vfs_fat_026.cpp" ]
sources_pressure = [
"pressure/It_fs_fat_performance_001.cpp",
...
...
testsuites/unittest/liteipc/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -47,8 +47,7 @@ sources_smoke = [
"smoke/liteipc_test_002.cpp",
]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_liteipc_unittest_door") {
...
...
testsuites/unittest/mem/shm/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,9 +41,7 @@ sources_entry = [
"mem_shm_test.cpp",
]
sources_smoke = [
"smoke/shm_test_011.cpp",
]
sources_smoke = [ "smoke/shm_test_011.cpp" ]
sources_full = [
"full/shm_test_001.cpp",
...
...
testsuites/unittest/mem/vm/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -59,8 +59,7 @@ sources_smoke = [
"smoke/user_copy_test_001.cpp",
]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_mem_vm_unittest_door") {
...
...
testsuites/unittest/net/netdb/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -44,8 +44,8 @@ common_include_dirs = [
]
sources_entry = [
"../../common/osTest.cpp",
"net_netdb_test.cpp",
"../../common/osTest.cpp",
"net_netdb_test.cpp",
]
sources_smoke = [
...
...
testsuites/unittest/net/socket/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -64,8 +64,7 @@ sources_smoke = [
"smoke/net_socket_test_013.cpp",
]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_net_socket_unittest_door") {
...
...
testsuites/unittest/posix/mem/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -46,8 +46,7 @@ sources_smoke = [
"smoke/It_posix_mem_003.cpp",
]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_posix_mem_unittest_door") {
...
...
testsuites/unittest/process/mutex/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -70,7 +70,6 @@ sources_full = [
"full/pthread_mutex_test_023.cpp",
"full/pthread_mutex_test_024.cpp",
"full/pthread_mutex_test_025.cpp",
]
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
...
...
testsuites/unittest/process/rwlock/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,13 +41,9 @@ sources_entry = [
"process_rwlock_test.cpp",
]
sources_smoke = [
"smoke/pthread_rwlock_test_001.cpp",
]
sources_smoke = [ "smoke/pthread_rwlock_test_001.cpp" ]
sources_full = [
"full/pthread_rwlock_test_002.cpp",
]
sources_full = [ "full/pthread_rwlock_test_002.cpp" ]
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_rwlock_unittest_door") {
...
...
testsuites/unittest/process/spinlock/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,12 +41,9 @@ sources_entry = [
"process_spinlock_test.cpp",
]
sources_smoke = [
"smoke/pthread_spinlock_test_001.cpp",
]
sources_smoke = [ "smoke/pthread_spinlock_test_001.cpp" ]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_spinlock_unittest_door") {
...
...
testsuites/unittest/security/reugid/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,12 +41,9 @@ sources_entry = [
"security_reugid_test.cpp",
]
sources_smoke = [
"smoke/reugid_test_001.cpp",
]
sources_smoke = [ "smoke/reugid_test_001.cpp" ]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_security_reugid_unittest_door") {
...
...
testsuites/unittest/security/vid/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -41,12 +41,9 @@ sources_entry = [
"security_vid_test.cpp",
]
sources_smoke = [
"smoke/vid_test_001.cpp",
]
sources_smoke = [ "smoke/vid_test_001.cpp" ]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_security_vid_unittest_door") {
...
...
testsuites/unittest/signal/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -51,7 +51,7 @@ sources_smoke = [
"smoke/mkfifo_test_002.cpp",
"smoke/pipe_test_002.cpp",
"smoke/pipe_test_004.cpp",
"smoke/signal_test_002.cpp",
"smoke/signal_test_009.cpp",
"smoke/signal_test_013.cpp",
...
...
@@ -109,7 +109,6 @@ sources_full = [
"full/pipe_test_003.cpp",
"full/pipe_test_005.cpp",
"full/pipe_test_006.cpp",
]
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
...
...
testsuites/unittest/time/timer/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -51,8 +51,7 @@ sources_smoke = [
"smoke/timer_test_tzset_002.cpp",
]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_time_timer_unittest_door") {
...
...
testsuites/unittest/trace/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -48,8 +48,7 @@ sources_smoke = [
"smoke/trace_test_004.cpp",
]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_trace_unittest_door") {
...
...
testsuites/unittest/util/BUILD.gn
浏览文件 @
3b808381
...
...
@@ -30,7 +30,6 @@
import("//build/lite/config/test.gni")
import("../config.gni")
common_include_dirs = [
"//third_party/googletest/googletest/include",
"../common/include",
...
...
@@ -55,8 +54,7 @@ sources_smoke = [
"smoke/util_test_007.cpp",
]
sources_full = [
]
sources_full = []
if (LOSCFG_USER_TEST_LEVEL >= TEST_LEVEL_LOW) {
unittest("liteos_a_util_unittest_door") {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录