未验证 提交 ee1420e4 编写于 作者: O openharmony_ci 提交者: Gitee

!2078 FIX:部件化整改

Merge pull request !2078 from cheng_jinsong/0629_gn
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
"SystemCapability.Startup.SystemInfo" "SystemCapability.Startup.SystemInfo"
], ],
"adapted_system_type": [ "adapted_system_type": [
"mini",
"small",
"standard" "standard"
], ],
"rom": "3.9MB", "rom": "3.9MB",
...@@ -42,12 +44,20 @@ ...@@ -42,12 +44,20 @@
"access_token", "access_token",
"common", "common",
"dsoftbus", "dsoftbus",
"hvb" "hvb",
"hisysevent_native",
"profiler",
"toybox",
"mksh"
], ],
"third_party": [ "third_party": [
"cJSON",
"bounds_checking_function", "bounds_checking_function",
"selinux" "selinux",
"mbedtls",
"zlib",
"cjson",
"thirdparty_selinux",
"bounds_checking_function"
] ]
}, },
"build": { "build": {
......
...@@ -52,8 +52,7 @@ ohos_static_library("libfsmanager_static") { ...@@ -52,8 +52,7 @@ ohos_static_library("libfsmanager_static") {
] ]
defines = [ "SUPPORT_HVB" ] defines = [ "SUPPORT_HVB" ]
external_deps = [ "hvb:hvb_static" ]
public_deps = [ "//base/startup/hvb/libhvb:libhvb_static" ]
} }
public_configs = [ ":libfsmanager_exported_configs" ] public_configs = [ ":libfsmanager_exported_configs" ]
part_name = "init" part_name = "init"
......
...@@ -156,8 +156,6 @@ if (defined(ohos_lite)) { ...@@ -156,8 +156,6 @@ if (defined(ohos_lite)) {
"//third_party/bounds_checking_function:libsec_shared", "//third_party/bounds_checking_function:libsec_shared",
] ]
deps += [ "//base/startup/init/services/param/base:param_base" ]
if (build_selinux) { if (build_selinux) {
deps += [ deps += [
"//base/security/selinux:libselinux_parameter_static", "//base/security/selinux:libselinux_parameter_static",
......
...@@ -62,6 +62,7 @@ ohos_executable("init") { ...@@ -62,6 +62,7 @@ ohos_executable("init") {
] ]
deps = [ deps = [
"//base/customization/config_policy/frameworks/config_policy:configpolicy_util_for_init_static",
"//base/startup/init/interfaces/innerkits/control_fd:libcontrolfd", "//base/startup/init/interfaces/innerkits/control_fd:libcontrolfd",
"//base/startup/init/interfaces/innerkits/fd_holder:fdholder", "//base/startup/init/interfaces/innerkits/fd_holder:fdholder",
"//base/startup/init/interfaces/innerkits/fs_manager:libfsmanager_static", "//base/startup/init/interfaces/innerkits/fs_manager:libfsmanager_static",
...@@ -73,9 +74,6 @@ ohos_executable("init") { ...@@ -73,9 +74,6 @@ ohos_executable("init") {
deps += [ "//base/startup/init/services/param/base:param_base" ] deps += [ "//base/startup/init/services/param/base:param_base" ]
deps += [ deps += [
"//base/customization/config_policy/frameworks/config_policy:configpolicy_util_for_init_static",
"//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
"//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
"//base/startup/init/ueventd:libueventd_ramdisk_static", "//base/startup/init/ueventd:libueventd_ramdisk_static",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
"//third_party/cJSON:cjson_static", "//third_party/cJSON:cjson_static",
...@@ -85,7 +83,10 @@ ohos_executable("init") { ...@@ -85,7 +83,10 @@ ohos_executable("init") {
deps += [ "//base/startup/init/interfaces/innerkits/init_module_engine:init_module_engine_sources" ] deps += [ "//base/startup/init/interfaces/innerkits/init_module_engine:init_module_engine_sources" ]
deps += [ "//base/startup/init/services/modules:static_modules" ] deps += [ "//base/startup/init/services/modules:static_modules" ]
deps += [ "${FSCRYPT_PATH}/libfscrypt:libfscryptutils_static" ] deps += [ "${FSCRYPT_PATH}/libfscrypt:libfscryptutils_static" ]
external_deps = [
"access_token:libnativetoken",
"access_token:libtoken_setproc",
]
cflags = [] cflags = []
if (use_musl) { if (use_musl) {
...@@ -108,10 +109,10 @@ ohos_executable("init") { ...@@ -108,10 +109,10 @@ ohos_executable("init") {
"//third_party/selinux/libselinux/include/", "//third_party/selinux/libselinux/include/",
"//base/security/selinux/interfaces/policycoreutils/include/", "//base/security/selinux/interfaces/policycoreutils/include/",
] ]
deps += [ deps += [ "//third_party/selinux:libselinux" ]
"//base/security/selinux:libload_policy", external_deps += [
"//base/security/selinux:librestorecon", "selinux:libload_policy",
"//third_party/selinux:libselinux", "selinux:librestorecon",
] ]
cflags += [ "-DWITH_SELINUX" ] cflags += [ "-DWITH_SELINUX" ]
} }
...@@ -130,7 +131,7 @@ ohos_executable("init") { ...@@ -130,7 +131,7 @@ ohos_executable("init") {
if (defined(global_parts_info.developtools_hiprofiler)) { if (defined(global_parts_info.developtools_hiprofiler)) {
defines += [ "SUPPORT_PROFILER_HIDEBUG" ] defines += [ "SUPPORT_PROFILER_HIDEBUG" ]
external_deps = [ "hiprofiler:libhidebug_init" ] external_deps += [ "hiprofiler:libhidebug_init" ]
} }
if (asan_detector) { if (asan_detector) {
defines += [ "ASAN_DETECTOR" ] defines += [ "ASAN_DETECTOR" ]
......
...@@ -49,7 +49,7 @@ if (defined(ohos_lite)) { ...@@ -49,7 +49,7 @@ if (defined(ohos_lite)) {
public_configs = [ ":exported_header_files" ] public_configs = [ ":exported_header_files" ]
include_dirs = [ "//third_party/bounds_checking_function/include" ] include_dirs = [ "//third_party/bounds_checking_function/include" ]
part_name = "startup" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
} }
......
...@@ -23,12 +23,11 @@ ohos_shared_library("bootchart") { ...@@ -23,12 +23,11 @@ ohos_shared_library("bootchart") {
] ]
deps = [ deps = [
"//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
"//third_party/bounds_checking_function:libsec_shared", "//third_party/bounds_checking_function:libsec_shared",
"//third_party/cJSON:cjson", "//third_party/cJSON:cjson",
] ]
external_deps = [ "init:libinit_module_engine" ]
part_name = "init" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
if (target_cpu == "arm64") { if (target_cpu == "arm64") {
......
...@@ -29,7 +29,7 @@ ohos_shared_library("init_context") { ...@@ -29,7 +29,7 @@ ohos_shared_library("init_context") {
include_dirs += [ "../../init/include" ] include_dirs += [ "../../init/include" ]
external_deps = [ "init:libinit_module_engine" ] external_deps = []
defines = [ "INIT_SUPPORT_CHIPSET_INIT" ] defines = [ "INIT_SUPPORT_CHIPSET_INIT" ]
if (build_selinux) { if (build_selinux) {
...@@ -41,6 +41,7 @@ ohos_shared_library("init_context") { ...@@ -41,6 +41,7 @@ ohos_shared_library("init_context") {
} }
deps = [ deps = [
"//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
"//third_party/bounds_checking_function:libsec_shared", "//third_party/bounds_checking_function:libsec_shared",
"//third_party/selinux:libselinux", "//third_party/selinux:libselinux",
] ]
......
...@@ -28,9 +28,10 @@ ohos_shared_library("init_eng") { ...@@ -28,9 +28,10 @@ ohos_shared_library("init_eng") {
include_dirs += [ "../../init/include" ] include_dirs += [ "../../init/include" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ] deps = [
"//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
external_deps = [ "init:libinit_module_engine" ] "//third_party/bounds_checking_function:libsec_shared",
]
part_name = "init" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
......
...@@ -23,9 +23,11 @@ ohos_shared_library("rebootmodule") { ...@@ -23,9 +23,11 @@ ohos_shared_library("rebootmodule") {
"../init_hook", "../init_hook",
"//base/startup/init/services/include/param", "//base/startup/init/services/include/param",
] ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ] deps = [
"//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
"//third_party/bounds_checking_function:libsec_shared",
]
external_deps = [ "init:libinit_module_engine" ]
defines = [] defines = []
part_name = "init" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
......
...@@ -26,13 +26,15 @@ ohos_shared_library("selinuxadp") { ...@@ -26,13 +26,15 @@ ohos_shared_library("selinuxadp") {
"//base/security/selinux/interfaces/policycoreutils/include/", "//base/security/selinux/interfaces/policycoreutils/include/",
] ]
deps = [ deps = [
"//base/security/selinux:libload_policy", "//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
"//base/security/selinux:librestorecon",
"//third_party/bounds_checking_function:libsec_shared", "//third_party/bounds_checking_function:libsec_shared",
"//third_party/selinux:libselinux", "//third_party/selinux:libselinux",
] ]
external_deps = [ "init:libinit_module_engine" ] external_deps = [
"selinux:libload_policy",
"selinux:librestorecon",
]
part_name = "init" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
......
...@@ -27,13 +27,13 @@ ohos_shared_library("eventmodule") { ...@@ -27,13 +27,13 @@ ohos_shared_library("eventmodule") {
"../../include/param", "../../include/param",
] ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ] deps = [
"//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
external_deps = [ "//third_party/bounds_checking_function:libsec_shared",
"hisysevent_native:libhisysevent",
"init:libinit_module_engine",
] ]
external_deps = [ "hisysevent_native:libhisysevent" ]
part_name = "init" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
if (target_cpu == "arm64") { if (target_cpu == "arm64") {
......
...@@ -28,13 +28,12 @@ ohos_shared_library("inittrace") { ...@@ -28,13 +28,12 @@ ohos_shared_library("inittrace") {
include_dirs += [ "//third_party/zlib" ] include_dirs += [ "//third_party/zlib" ]
deps = [ deps = [
"//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
"//third_party/bounds_checking_function:libsec_shared", "//third_party/bounds_checking_function:libsec_shared",
"//third_party/cJSON:cjson", "//third_party/cJSON:cjson",
"//third_party/zlib:libz", "//third_party/zlib:libz",
] ]
external_deps = [ "init:libinit_module_engine" ]
part_name = "init" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
if (target_cpu == "arm64") { if (target_cpu == "arm64") {
......
...@@ -78,12 +78,11 @@ if (defined(ohos_lite)) { ...@@ -78,12 +78,11 @@ if (defined(ohos_lite)) {
defines = [ "_GNU_SOURCE" ] defines = [ "_GNU_SOURCE" ]
include_dirs = comm_include include_dirs = comm_include
deps = [ deps = [
"//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
"//third_party/bounds_checking_function:libsec_shared", "//third_party/bounds_checking_function:libsec_shared",
"//third_party/mbedtls:mbedtls_shared", "//third_party/mbedtls:mbedtls_shared",
] ]
external_deps = [ "init:libinit_module_engine" ]
part_name = "init" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
if (target_cpu == "arm64") { if (target_cpu == "arm64") {
......
...@@ -34,12 +34,11 @@ ohos_shared_library("libparamtestmodule") { ...@@ -34,12 +34,11 @@ ohos_shared_library("libparamtestmodule") {
deps = [ deps = [
"//base/startup/init/interfaces/innerkits:libbegetutil", "//base/startup/init/interfaces/innerkits:libbegetutil",
"//base/startup/init/interfaces/innerkits/init_module_engine:libinit_module_engine",
"//base/startup/init/services/log:agent_log", "//base/startup/init/services/log:agent_log",
"//third_party/bounds_checking_function:libsec_shared", "//third_party/bounds_checking_function:libsec_shared",
] ]
external_deps = [ "init:libinit_module_engine" ]
part_name = "init" part_name = "init"
subsystem_name = "startup" subsystem_name = "startup"
module_install_dir = "lib/init" module_install_dir = "lib/init"
......
...@@ -268,8 +268,6 @@ ohos_unittest("init_unittest") { ...@@ -268,8 +268,6 @@ ohos_unittest("init_unittest") {
deps = [ deps = [
"//base/customization/config_policy/frameworks/config_policy:configpolicy_util_for_init_static", "//base/customization/config_policy/frameworks/config_policy:configpolicy_util_for_init_static",
"//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
"//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
"//third_party/cJSON:cjson", "//third_party/cJSON:cjson",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
...@@ -304,6 +302,8 @@ ohos_unittest("init_unittest") { ...@@ -304,6 +302,8 @@ ohos_unittest("init_unittest") {
} }
external_deps = [ external_deps = [
"access_token:libnativetoken",
"access_token:libtoken_setproc",
"c_utils:utils", "c_utils:utils",
"hisysevent_native:libhisysevent", "hisysevent_native:libhisysevent",
"hiviewdfx_hilog_native:libhilog", "hiviewdfx_hilog_native:libhilog",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册