Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
b6ee22cc
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
大约 1 年 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b6ee22cc
编写于
12月 24, 2021
作者:
O
openharmony_ci
提交者:
Gitee
12月 24, 2021
浏览文件
操作
浏览文件
下载
差异文件
!199 对init部件的依赖统一到libbegetutil模块
Merge pull request !199 from handy/1223
上级
bbc1c43e
0660e9db
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
96 addition
and
166 deletion
+96
-166
interfaces/innerkits/BUILD.gn
interfaces/innerkits/BUILD.gn
+71
-0
interfaces/innerkits/dynamic_service/BUILD.gn
interfaces/innerkits/dynamic_service/BUILD.gn
+0
-29
interfaces/innerkits/file/BUILD.gn
interfaces/innerkits/file/BUILD.gn
+0
-40
interfaces/innerkits/reboot/BUILD.gn
interfaces/innerkits/reboot/BUILD.gn
+0
-40
interfaces/innerkits/socket/BUILD.gn
interfaces/innerkits/socket/BUILD.gn
+0
-42
ohos.build
ohos.build
+17
-1
services/BUILD.gn
services/BUILD.gn
+1
-6
services/begetctl/BUILD.gn
services/begetctl/BUILD.gn
+1
-2
test/fuzztest/BUILD.gn
test/fuzztest/BUILD.gn
+6
-6
未找到文件。
interfaces/innerkits/
fs_manager/
BUILD.gn
→
interfaces/innerkits/BUILD.gn
浏览文件 @
b6ee22cc
...
...
@@ -11,38 +11,61 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//base/startup/init_lite/begetd.gni")
import("//build/ohos.gni")
config("exported_header_files") {
visibility = [ ":*" ]
include_dirs = [ "include/" ]
}
fs_manager_sources = [
"fs_manager_log.c",
"fstab.c",
"fstab_mount.c",
"fs_manager
/fs_manager
_log.c",
"fs
_manager/fs
tab.c",
"fs
_manager/fs
tab_mount.c",
]
fs_manager_include_dirs = [
"//base/startup/init_lite/interfaces/innerkits/include",
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/log",
"//base/startup/init_lite/services/include",
]
ohos_shared_library("libbegetutil") {
sources = [
"file/init_file.c",
"reboot/init_reboot_innerkits.c",
"socket/init_socket.c",
]
sources += fs_manager_sources
fs_manager_deps = [
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_static",
]
include_dirs = [
"./include",
"//base/startup/init_lite/services/log",
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/include",
"//base/startup/init_lite/services/include/param",
"//base/startup/syspara_lite/hals/parameter/include",
]
deps = [
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/param:param_client",
"//base/startup/init_lite/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/openssl:libcrypto_static",
"//utils/native/base:utils",
]
ohos_shared_library("libfsmanager_shared") {
sources = fs_manager_sources
deps = fs_manager_deps
include_dirs = fs_manager_include_dirs
public_configs = [ ":exported_header_files" ]
part_name = "init"
install_images = [ "system" ]
install_images = [
"system",
"updater",
]
}
# For init only
ohos_static_library("libfsmanager_static") {
sources = fs_manager_sources
deps = fs_manager_deps
include_dirs = fs_manager_include_dirs
include_dirs = [
"//base/startup/init_lite/interfaces/innerkits/include",
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/log",
"//base/startup/init_lite/services/include",
]
part_name = "init"
}
interfaces/innerkits/dynamic_service/BUILD.gn
已删除
100755 → 0
浏览文件 @
bbc1c43e
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
ohos_shared_library("dynamic_service") {
sources = [ "dynamic_service.c" ]
include_dirs = [
"//base/startup/syspara_lite/interfaces/innerkits/native/syspara/include",
"//base/startup/init_lite/interfaces/innerkits/include",
]
deps = [
"//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
install_images = [ "system" ]
part_name = "init"
}
interfaces/innerkits/file/BUILD.gn
已删除
100755 → 0
浏览文件 @
bbc1c43e
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
service_file_sources =
[ "//base/startup/init_lite/interfaces/innerkits/file/init_file.c" ]
service_file_include = [
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/services/log",
"//base/startup/init_lite/services/include",
"//third_party/bounds_checking_function/include",
]
service_file_deps = [
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_static",
]
ohos_static_library("libfile_static") {
sources = service_file_sources
include_dirs = service_file_include
deps = service_file_deps
}
ohos_shared_library("libfile") {
sources = service_file_sources
include_dirs = service_file_include
deps = service_file_deps
part_name = "init"
install_images = [ "system" ]
}
interfaces/innerkits/reboot/BUILD.gn
已删除
100755 → 0
浏览文件 @
bbc1c43e
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
service_reboot_sources = [ "//base/startup/init_lite/interfaces/innerkits/reboot/init_reboot_innerkits.c" ]
service_reboot_include = [
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/services/include/param",
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/log",
]
service_reboot_deps = [
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/param:param_client",
"//third_party/bounds_checking_function:libsec_static",
]
ohos_static_library("libreboot_static") {
sources = service_reboot_sources
include_dirs = service_reboot_include
deps = service_reboot_deps
}
ohos_shared_library("libreboot") {
sources = service_reboot_sources
include_dirs = service_reboot_include
deps = service_reboot_deps
part_name = "init"
install_images = [ "system" ]
}
interfaces/innerkits/socket/BUILD.gn
已删除
100755 → 0
浏览文件 @
bbc1c43e
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
service_socket_sources =
[ "//base/startup/init_lite/interfaces/innerkits/socket/init_socket.c" ]
service_socket_include = [
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/services/log",
"//third_party/bounds_checking_function/include",
]
service_socket_deps = [
"//base/startup/init_lite/services/log:init_log",
"//third_party/bounds_checking_function:libsec_static",
]
ohos_static_library("libsocket_static") {
sources = service_socket_sources
include_dirs = service_socket_include
deps = service_socket_deps
}
ohos_shared_library("libsocket") {
sources = service_socket_sources
include_dirs = service_socket_include
deps = service_socket_deps
part_name = "init"
install_images = [
"system",
"updater",
]
}
ohos.build
浏览文件 @
b6ee22cc
...
...
@@ -6,7 +6,23 @@
"//base/startup/init_lite/services:startup_init",
"//base/startup/init_lite/ueventd:startup_ueventd",
"//base/startup/init_lite/watchdog:watchdog",
"//base/startup/init_lite/services/begetctl:begetctl"
"//base/startup/init_lite/services/begetctl:begetctl",
"//base/startup/init_lite/interfaces/innerkits:libbegetutil"
],
"inner_kits": [{
"header": {
"header_files": [
"init_socket.h",
"dynamic_service.h",
"init_file.h",
"fs_manager/fs_manager_log.h",
"fs_manager/fs_manager.h",
"init_reboot.h"
],
"header_base": "//base/startup/init_lite/interfaces/innerkits/include/"
},
"name": "//base/startup/init_lite/interfaces/innerkits:libbegetutil"
}
],
"test_list": [
"//base/startup/init_lite/test/unittest:init_test"
...
...
services/BUILD.gn
浏览文件 @
b6ee22cc
...
...
@@ -123,7 +123,7 @@ if (defined(ohos_lite)) {
"//third_party/libuv/include",
]
deps = [
"//base/startup/init_lite/interfaces/innerkits
/fs_manager
:libfsmanager_static",
"//base/startup/init_lite/interfaces/innerkits:libfsmanager_static",
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/param:param_service",
"//base/startup/init_lite/ueventd:libueventd_static",
...
...
@@ -173,11 +173,6 @@ if (defined(ohos_lite)) {
deps = [
":init",
":init_etc",
"//base/startup/init_lite/interfaces/innerkits/dynamic_service:dynamic_service",
"//base/startup/init_lite/interfaces/innerkits/file:libfile",
"//base/startup/init_lite/interfaces/innerkits/fs_manager:libfsmanager_shared",
"//base/startup/init_lite/interfaces/innerkits/reboot:libreboot",
"//base/startup/init_lite/interfaces/innerkits/socket:libsocket",
"//base/startup/init_lite/services/param:param_client",
"//base/startup/init_lite/services/param:param_service",
]
...
...
services/begetctl/BUILD.gn
浏览文件 @
b6ee22cc
...
...
@@ -40,8 +40,7 @@ ohos_executable("begetctl") {
"//base/update/updateservice/interfaces/innerkits/include",
]
deps = [
"//base/startup/init_lite/interfaces/innerkits/fs_manager:libfsmanager_shared",
"//base/startup/init_lite/interfaces/innerkits/reboot:libreboot_static",
"//base/startup/init_lite/interfaces/innerkits:libbegetutil",
"//base/startup/init_lite/services/log:agent_log",
"//base/startup/init_lite/services/param:param_client",
"//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
...
...
test/fuzztest/BUILD.gn
浏览文件 @
b6ee22cc
...
...
@@ -33,7 +33,7 @@ ohos_fuzztest("DoRebootFuzzTest") {
include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include" ]
deps = [
"//base/startup/init_lite/interfaces/innerkits
/reboot:libreboot_static
",
"//base/startup/init_lite/interfaces/innerkits
:libbegetutil
",
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/param:param_client",
"//third_party/bounds_checking_function:libsec_static",
...
...
@@ -56,7 +56,7 @@ ohos_fuzztest("GetControlFileFuzzTest") {
include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include" ]
deps = [
"//base/startup/init_lite/interfaces/innerkits
/file:libfile
",
"//base/startup/init_lite/interfaces/innerkits
:libbegetutil
",
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_static",
...
...
@@ -79,7 +79,7 @@ ohos_fuzztest("GetControlSocketFuzzTest") {
include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include" ]
deps = [
"//base/startup/init_lite/interfaces/innerkits
/socket:libsocket
",
"//base/startup/init_lite/interfaces/innerkits
:libbegetutil
",
"//base/startup/init_lite/services/log:init_log",
"//third_party/bounds_checking_function:libsec_static",
]
...
...
@@ -104,7 +104,7 @@ ohos_fuzztest("MountAllFstabFuzzTest") {
]
deps = [
"//base/startup/init_lite/interfaces/innerkits
/fs_manager:libfsmanager_static
",
"//base/startup/init_lite/interfaces/innerkits
:libbegetutil
",
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/utils:libinit_utils",
"//base/startup/init_lite/test/fuzztest:libfuzz_utils",
...
...
@@ -152,7 +152,7 @@ ohos_fuzztest("StartDynamicProcessFuzzTest") {
include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include" ]
deps = [
"//base/startup/init_lite/interfaces/innerkits
/dynamic_service:dynamic_service
",
"//base/startup/init_lite/interfaces/innerkits
:libbegetutil
",
"//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
...
...
@@ -173,7 +173,7 @@ ohos_fuzztest("StopDynamicProcessFuzzTest") {
include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include" ]
deps = [
"//base/startup/init_lite/interfaces/innerkits
/dynamic_service:dynamic_service
",
"//base/startup/init_lite/interfaces/innerkits
:libbegetutil
",
"//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录