Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
b5d2ca4a
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看板
未验证
提交
b5d2ca4a
编写于
6月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!793 适配liteos-m编译
Merge pull request !793 from Mupceet/litem
上级
07d3a7aa
c1ca968d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
36 addition
and
29 deletion
+36
-29
device_info/BUILD.gn
device_info/BUILD.gn
+5
-2
interfaces/innerkits/BUILD.gn
interfaces/innerkits/BUILD.gn
+1
-2
services/param/liteos/BUILD.gn
services/param/liteos/BUILD.gn
+23
-22
test/unittest/BUILD.gn
test/unittest/BUILD.gn
+3
-1
watchdog/BUILD.gn
watchdog/BUILD.gn
+4
-2
未找到文件。
device_info/BUILD.gn
浏览文件 @
b5d2ca4a
...
...
@@ -39,11 +39,14 @@ ohos_shared_library("deviceinfoservice") {
"//base/startup/init_lite/interfaces/innerkits/syspara",
"//base/startup/init_lite/interfaces/hals",
]
defines = [
"_GNU_SOURCE",
"USE_MBEDTLS",
]
deps = [
"//base/startup/init_lite/interfaces/innerkits:libbegetutil",
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/
openssl:libcrypto
_shared",
"//third_party/
mbedtls:mbedtls
_shared",
]
external_deps = [
...
...
interfaces/innerkits/BUILD.gn
浏览文件 @
b5d2ca4a
...
...
@@ -67,7 +67,6 @@ if (defined(ohos_lite)) {
]
deps += [
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/param/base:parameterbase",
"//base/startup/init_lite/services/utils:libinit_utils",
]
if (enable_ohos_startup_init_feature_begetctl_liteos) {
...
...
@@ -87,6 +86,7 @@ if (defined(ohos_lite)) {
defines += [ "__LINUX__" ]
deps += [
"//base/startup/init_lite/services/loopevent:loopevent",
"//base/startup/init_lite/services/param/base:parameterbase",
"//base/startup/init_lite/services/param/linux:param_client",
]
}
...
...
@@ -121,7 +121,6 @@ if (defined(ohos_lite)) {
defines += [ "USE_MBEDTLS" ]
}
deps += [
"//base/startup/init_lite/services/param/base:parameterbase",
"//base/startup/init_lite/services/param/liteos:param_client_lite",
"//base/startup/init_lite/services/utils:libinit_utils",
]
...
...
services/param/liteos/BUILD.gn
浏览文件 @
b5d2ca4a
...
...
@@ -12,11 +12,6 @@
# limitations under the License.
import("//base/startup/init_lite/begetd.gni")
param_comm_sources = [
"//base/startup/init_lite/services/param/manager/param_manager.c",
"//base/startup/init_lite/services/param/manager/param_server.c",
]
param_include_dirs = [
"//base/startup/init_lite/services/param/include",
"//base/startup/init_lite/services/param/adapter",
...
...
@@ -91,10 +86,27 @@ config("exported_header_files") {
]
}
base_sources = [
"//base/startup/init_lite/services/log/init_commlog.c",
"//base/startup/init_lite/services/param/base/param_base.c",
"//base/startup/init_lite/services/param/base/param_comm.c",
"//base/startup/init_lite/services/param/base/param_trie.c",
"//base/startup/init_lite/services/param/liteos/param_client.c",
"//base/startup/init_lite/services/param/liteos/param_litedac.c",
"//base/startup/init_lite/services/param/liteos/param_osadp.c",
"//base/startup/init_lite/services/param/manager/param_manager.c",
"//base/startup/init_lite/services/param/manager/param_persist.c",
"//base/startup/init_lite/services/utils/init_hashmap.c",
"//base/startup/init_lite/services/utils/list.c",
]
static_library("param_init_lite") {
defines = []
deps = []
sources = param_comm_sources
sources = [
"//base/startup/init_lite/services/param/manager/param_manager.c",
"//base/startup/init_lite/services/param/manager/param_server.c",
]
include_dirs = param_include_dirs
defines += param_build_defines
public_configs = [ ":exported_header_files" ]
...
...
@@ -116,18 +128,15 @@ static_library("param_init_lite") {
}
static_library("param_client_lite") {
sources =
param_comm
_sources
sources =
base
_sources
include_dirs = param_include_dirs
cflags = [ "-fPIC" ]
defines = param_build_defines
public_configs = [ ":exported_header_files" ]
if (ohos_kernel_type == "liteos_a") {
sources += [
"//base/startup/init_lite/services/param/adapter/param_persistadp.c",
"//base/startup/init_lite/services/param/liteos/param_client.c",
"//base/startup/init_lite/services/param/manager/param_persist.c",
]
sources +=
[ "//base/startup/init_lite/services/param/adapter/param_persistadp.c" ]
defines += [
"__LITEOS_A__",
"WORKSPACE_AREA_NEED_MUTEX",
...
...
@@ -135,16 +144,8 @@ static_library("param_client_lite") {
"PARAMWORKSPACE_NEED_MUTEX",
]
} else if (ohos_kernel_type == "liteos_m") {
sources += [
"//base/startup/init_lite/services/log/init_commlog.c",
"//base/startup/init_lite/services/param/base/param_base.c",
"//base/startup/init_lite/services/param/base/param_comm.c",
"//base/startup/init_lite/services/param/base/param_trie.c",
"//base/startup/init_lite/services/param/liteos/param_client.c",
"//base/startup/init_lite/services/param/manager/param_persist.c",
"//base/startup/init_lite/services/utils/init_hashmap.c",
"//base/startup/init_lite/services/utils/list.c",
]
sources +=
[ "//base/startup/init_lite/services/param/manager/param_server.c" ]
if (enable_ohos_startup_init_lite_use_posix_file_api) {
sources += [
"//base/startup/init_lite/services/param/adapter/param_persistadp.c",
...
...
test/unittest/BUILD.gn
浏览文件 @
b5d2ca4a
...
...
@@ -208,7 +208,8 @@ ohos_unittest("init_unittest") {
"//third_party/cJSON:cjson_static",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
"//third_party/openssl:libcrypto_shared",
"//third_party/mbedtls:mbedtls_shared",
"//utils/native/base:utils",
]
defines = [
...
...
@@ -219,6 +220,7 @@ ohos_unittest("init_unittest") {
"PARAM_SUPPORT_DAC",
"_GNU_SOURCE",
"PARAM_SUPPORT_TRIGGER",
"USE_MBEDTLS",
]
defines += [ "_GNU_SOURCE" ]
...
...
watchdog/BUILD.gn
浏览文件 @
b5d2ca4a
...
...
@@ -17,10 +17,12 @@ group("watchdog") {
if (defined(ohos_lite)) {
executable("watchdog_service") {
sources = [ "init_watchdog.c" ]
sources = [
"//base/startup/init_lite/services/log/init_commlog.c",
"//base/startup/init_lite/watchdog/init_watchdog.c",
]
deps = [
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/param/base:parameterbase",
"//third_party/bounds_checking_function:libsec_static",
]
defines = [
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录