Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
b3f7b290
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,发现更多精彩内容 >>
提交
b3f7b290
编写于
11月 28, 2022
作者:
C
cheng_jinsong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add feature for parambase
Signed-off-by:
N
cheng_jinsong
<
chengjinsong2@huawei.com
>
上级
6c61f22f
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
34 addition
and
35 deletion
+34
-35
begetd.gni
begetd.gni
+5
-0
interfaces/innerkits/BUILD.gn
interfaces/innerkits/BUILD.gn
+3
-11
services/begetctl/BUILD.gn
services/begetctl/BUILD.gn
+1
-5
services/init/lite/BUILD.gn
services/init/lite/BUILD.gn
+2
-1
services/init/standard/BUILD.gn
services/init/standard/BUILD.gn
+1
-5
services/param/BUILD.gn
services/param/BUILD.gn
+2
-2
services/param/base/BUILD.gn
services/param/base/BUILD.gn
+17
-5
ueventd/BUILD.gn
ueventd/BUILD.gn
+3
-6
未找到文件。
begetd.gni
浏览文件 @
b3f7b290
...
...
@@ -29,4 +29,9 @@ declare_args() {
config_ohos_startup_init_lite_data_path = "/"
# boot_kernel_extended_cmdline for extend cmdline
startup_init_with_param_base = false
if (!use_musl) {
startup_init_with_param_base = true
}
}
interfaces/innerkits/BUILD.gn
浏览文件 @
b3f7b290
...
...
@@ -85,7 +85,7 @@ if (defined(ohos_lite)) {
defines += [ "__LINUX__" ]
deps += [
"//base/startup/init/services/loopevent:loopevent",
"//base/startup/init/services/param/base:param
eter
base",
"//base/startup/init/services/param/base:param
_
base",
"//base/startup/init/services/param/linux:param_client",
]
}
...
...
@@ -194,11 +194,7 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/mbedtls:mbedtls_shared",
]
if (use_musl == false) {
deps += [ "//base/startup/init/services/param/base:parameterbase" ]
} else {
deps += [ "//base/startup/init/services/param/base:parameterbase_ext" ]
}
deps += [ "//base/startup/init/services/param/base:param_base" ]
external_deps = [
"c_utils:utils",
"hilog_native:libhilog_base",
...
...
@@ -291,11 +287,7 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/mbedtls:mbedtls_shared",
]
if (use_musl == false) {
deps += [ "//base/startup/init/services/param/base:parameterbase" ]
} else {
deps += [ "//base/startup/init/services/param/base:parameterbase_ext" ]
}
deps += [ "//base/startup/init/services/param/base:param_base" ]
external_deps = [
"c_utils:utils",
"hilog_native:libhilog_base",
...
...
services/begetctl/BUILD.gn
浏览文件 @
b3f7b290
...
...
@@ -187,11 +187,7 @@ if (defined(ohos_lite)) {
"//base/startup/init/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_static",
]
if (use_musl == false) {
deps += [ "//base/startup/init/services/param/base:parameterbase" ]
} else {
deps += [ "//base/startup/init/services/param/base:parameterbase_ext" ]
}
deps += [ "//base/startup/init/services/param/base:param_base" ]
external_deps = [
"c_utils:utils",
"hilog_native:libhilog_base",
...
...
services/init/lite/BUILD.gn
浏览文件 @
b3f7b290
...
...
@@ -49,6 +49,7 @@ executable("init") {
include_dirs = [
"//base/startup/init/interfaces/innerkits/include",
"//base/startup/init/interfaces/innerkits/fd_holder",
"//base/startup/init/services/include/param",
"//base/startup/init/services/init/include",
"//third_party/cJSON",
"//third_party/bounds_checking_function/include",
...
...
@@ -61,7 +62,7 @@ executable("init") {
"//base/startup/init/services/log:init_log",
"//base/startup/init/services/loopevent:loopevent",
"//base/startup/init/services/modules/init_hook:inithook",
"//base/startup/init/services/param/base:param
eter
base",
"//base/startup/init/services/param/base:param
_
base",
"//base/startup/init/services/utils:libinit_utils",
"//build/lite/config/component/cJSON:cjson_static",
"//third_party/bounds_checking_function:libsec_static",
...
...
services/init/standard/BUILD.gn
浏览文件 @
b3f7b290
...
...
@@ -69,11 +69,7 @@ ohos_executable("init") {
"//base/startup/init/services/sandbox:sandbox",
"//base/startup/init/services/utils:libinit_utils",
]
if (use_musl == false) {
deps += [ "//base/startup/init/services/param/base:parameterbase" ]
} else {
deps += [ "//base/startup/init/services/param/base:parameterbase_ext" ]
}
deps += [ "//base/startup/init/services/param/base:param_base" ]
deps += [
"//base/customization/config_policy/frameworks/config_policy:configpolicy_util_for_init_static",
...
...
services/param/BUILD.gn
浏览文件 @
b3f7b290
...
...
@@ -19,7 +19,7 @@ group("parameter") {
if (defined(ohos_lite)) {
if (ohos_kernel_type == "linux") {
deps += [
"base:param
eter
base",
"base:param
_
base",
"linux:param_client",
"linux:param_init",
]
...
...
@@ -31,7 +31,7 @@ group("parameter") {
}
} else {
deps += [
"base:param
eter
base",
"base:param
_
base",
"linux:param_client",
"linux:param_init",
]
...
...
services/param/base/BUILD.gn
浏览文件 @
b3f7b290
...
...
@@ -71,7 +71,7 @@ if (defined(ohos_lite)) {
}
}
} else {
if (
use_musl
) {
if (
!startup_init_with_param_base
) {
inherited_configs = [
"//build/config/compiler:afdo",
"//build/config/compiler:afdo_optimize_size",
...
...
@@ -109,13 +109,13 @@ if (defined(ohos_lite)) {
deps = []
if (use_musl) {
defines += [ "__MUSL__" ]
}
if (!startup_init_with_param_base) {
ldflags = [ "-nostdlib" ]
configs -= inherited_configs
configs += [ "//build/config/compiler:compiler" ]
defines += [
"PARAM_BASE",
"__MUSL__",
]
defines += [ "PARAM_BASE" ]
} else {
include_dirs += [ "//third_party/bounds_checking_function/include" ]
sources += [ "//base/startup/init/services/log/init_commlog.c" ]
...
...
@@ -170,3 +170,15 @@ if (defined(ohos_lite)) {
subsystem_name = "startup"
}
}
group("param_base") {
if (defined(ohos_lite)) {
deps = [ ":parameterbase" ]
} else {
if (startup_init_with_param_base) {
deps = [ ":parameterbase" ]
} else {
deps = [ ":parameterbase_ext" ]
}
}
}
ueventd/BUILD.gn
浏览文件 @
b3f7b290
...
...
@@ -10,13 +10,14 @@
# 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("//base/startup/init/begetd.gni")
if (defined(ohos_lite)) {
if (ohos_kernel_type == "linux") {
service_ueventd_deps = [
"//base/startup/init/interfaces/innerkits/socket:libsocket",
"//base/startup/init/services/log:init_log",
"//base/startup/init/services/param/base:param
eter
base",
"//base/startup/init/services/param/base:param
_
base",
"//base/startup/init/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_static",
]
...
...
@@ -113,11 +114,7 @@ if (defined(ohos_lite)) {
deps = service_ueventd_deps
deps += [ "//base/startup/init/services/param/linux:param_client" ]
cflags = []
if (use_musl == false) {
deps += [ "//base/startup/init/services/param/base:parameterbase" ]
} else {
deps += [ "//base/startup/init/services/param/base:parameterbase_ext" ]
}
deps += [ "//base/startup/init/services/param/base:param_base" ]
if (build_selinux) {
external_deps = [ "selinux:librestorecon" ]
cflags += [ "-DWITH_SELINUX" ]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录