Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
b1822e6c
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,发现更多精彩内容 >>
未验证
提交
b1822e6c
编写于
5月 24, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 24, 2022
浏览文件
操作
浏览文件
下载
差异文件
!671 解决sysparam和begetutils符号一致
Merge pull request !671 from Mupceet/init0524
上级
357126b0
8f57b958
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
46 addition
and
2 deletion
+46
-2
interfaces/innerkits/BUILD.gn
interfaces/innerkits/BUILD.gn
+39
-0
interfaces/innerkits/syspara/parameter.c
interfaces/innerkits/syspara/parameter.c
+7
-2
未找到文件。
interfaces/innerkits/BUILD.gn
浏览文件 @
b1822e6c
...
@@ -297,4 +297,43 @@ if (defined(ohos_lite)) {
...
@@ -297,4 +297,43 @@ if (defined(ohos_lite)) {
part_name = "init"
part_name = "init"
}
}
ohos_static_library("libbegetutil_static") {
sources = [ "//base/startup/init_lite/services/log/init_log.c" ]
sources += syspara_sources
sources += [ "syspara/param_wrapper.cpp" ]
defines = [
"INIT_AGENT",
"INIT_FILE",
"_GNU_SOURCE",
]
if (target_cpu == "arm64") {
defines += [ "SUPPORT_64BIT" ]
}
include_dirs = [
"./include",
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/include",
"//base/startup/init_lite/services/include/param",
"//base/startup/init_lite/services/param/include",
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/interfaces/innerkits/include/syspara",
"//base/startup/init_lite/interfaces/innerkits/syspara",
]
deps = [
"//base/startup/init_lite/services/loopevent:loopevent",
"//base/startup/init_lite/services/param:param_client",
"//base/startup/init_lite/services/utils:libinit_tools",
"//base/startup/init_lite/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/openssl:libcrypto_shared",
]
external_deps = [
"hilog_native:libhilog_base",
"utils_base:utils",
]
part_name = "init"
}
}
}
interfaces/innerkits/syspara/parameter.c
浏览文件 @
b1822e6c
...
@@ -231,8 +231,13 @@ const char *GetBuildTime(void)
...
@@ -231,8 +231,13 @@ const char *GetBuildTime(void)
const
char
*
GetSerial
(
void
)
const
char
*
GetSerial
(
void
)
{
{
static
const
char
*
ohos_serial
=
NULL
;
static
char
ohos_serial
[
PARAM_VALUE_LEN_MAX
]
=
{
0
};
return
GetProperty
(
"ohos.boot.sn"
,
&
ohos_serial
);
uint32_t
len
=
PARAM_VALUE_LEN_MAX
;
int
ret
=
SystemGetParameter
(
"ohos.boot.sn"
,
ohos_serial
,
&
len
);
if
(
ret
!=
0
)
{
return
NULL
;
}
return
ohos_serial
;
}
}
int
GetDevUdid
(
char
*
udid
,
int
size
)
int
GetDevUdid
(
char
*
udid
,
int
size
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录