提交 950be7ea 编写于 作者: H handyohos

bugfix: optimize link libraries for init.

去掉libbegetutil对libcrypto_static的无效依赖,修改libsyspara_watcher对ipc_core的依赖为ipc_single。
Signed-off-by: Nhandyohos <zhangxiaotian@huawei.com>
Change-Id: I02d1c74154991752ff5ee98a1485ba7c6b202981
上级 fc9f339a
......@@ -46,7 +46,6 @@ ohos_shared_library("libbegetutil") {
"//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",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
......
......@@ -44,6 +44,9 @@ void MountBasicFs(void)
if (mount("tmpfs", "/dev", "tmpfs", MS_NOSUID, "mode=0755") != 0) {
INIT_LOGE("Mount tmpfs failed. %s", strerror(errno));
}
if (mount("tmpfs", "/mnt", "tmpfs", MS_NOSUID, "mode=0755") != 0) {
INIT_LOGE("Mount tmpfs failed. %s", strerror(errno));
}
if (mkdir("/dev/pts", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) != 0) {
INIT_LOGE("mkdir /dev/pts failed. %s", strerror(errno));
}
......
......@@ -51,7 +51,7 @@ ohos_shared_library("param_watcheragent") {
external_deps = [
"hiviewdfx_hilog_native:libhilog",
"ipc:ipc_core",
"ipc:ipc_single",
"safwk:system_ability_fwk",
"samgr_standard:samgr_proxy",
]
......@@ -99,7 +99,7 @@ ohos_shared_library("param_watcher") {
external_deps = [
"hiviewdfx_hilog_native:libhilog",
"ipc:ipc_core",
"ipc:ipc_single",
"safwk:system_ability_fwk",
"samgr_standard:samgr_proxy",
]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册