Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
40161568
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
接近 2 年 前同步成功
通知
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看板
未验证
提交
40161568
编写于
2月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
2月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!324 fix compiling error for qemu-arm-linux-min system
Merge pull request !324 from handy/0217
上级
bf278d08
26a2fe25
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
5 deletion
+16
-5
services/BUILD.gn
services/BUILD.gn
+6
-1
services/init/standard/init_service.c
services/init/standard/init_service.c
+6
-0
test/unittest/BUILD.gn
test/unittest/BUILD.gn
+4
-4
未找到文件。
services/BUILD.gn
浏览文件 @
40161568
...
...
@@ -151,7 +151,9 @@ if (defined(ohos_lite)) {
"//third_party/cJSON:cjson_static",
]
external_deps = [ "profiler:libhidebug" ]
if (support_jsapi) {
external_deps = [ "profiler:libhidebug" ]
}
cflags = []
...
...
@@ -186,6 +188,9 @@ if (defined(ohos_lite)) {
if (!enable_ramdisk) {
defines += [ "DISABLE_INIT_TWO_STAGES" ]
}
if (support_jsapi) {
defines += [ "SUPPORT_PROFILER_HIDEBUG" ]
}
if (defined(product_name) && product_name == "rk3568") {
defines += [ "PRODUCT_RK" ]
...
...
services/init/standard/init_service.c
浏览文件 @
40161568
...
...
@@ -19,7 +19,10 @@
#include <sys/param.h>
#include <sys/resource.h>
#ifdef SUPPORT_PROFILER_HIDEBUG
#include "hidebug_base.h"
#endif
#include "init_group_manager.h"
#include "init.h"
#include "init_log.h"
...
...
@@ -86,7 +89,10 @@ int ServiceExec(const Service *service)
}
}
INIT_CHECK_ONLY_ELOG
(
unsetenv
(
"UV_THREADPOOL_SIZE"
)
==
0
,
"set UV_THREADPOOL_SIZE error : %d."
,
errno
);
#ifdef SUPPORT_PROFILER_HIDEBUG
InitEnvironmentParam
(
service
->
name
);
#endif
// L2 Can not be reset env
if
(
service
->
extraArgs
.
argv
!=
NULL
&&
service
->
extraArgs
.
count
>
0
)
{
INIT_CHECK_ONLY_ELOG
(
execv
(
service
->
extraArgs
.
argv
[
0
],
service
->
extraArgs
.
argv
)
==
0
,
...
...
test/unittest/BUILD.gn
浏览文件 @
40161568
...
...
@@ -190,10 +190,10 @@ ohos_unittest("init_ut") {
]
defines += [ "_GNU_SOURCE" ]
external_deps = [
"hiviewdfx_hilog_native:libhilog",
"profiler:libhidebug",
]
external_deps = [
"hiviewdfx_hilog_native:libhilog" ]
if (support_jsapi) {
external_deps += [ "profiler:libhidebug" ]
}
if (param_feature_watcher) {
external_deps += [
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录