mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
!2825 提供libbegetutil_staticj静态库
Merge pull request !2825 from 蓝色大魔王/master
This commit is contained in:
commit
0ff756d677
16
bundle.json
16
bundle.json
@ -118,6 +118,14 @@
|
||||
},
|
||||
"name": "//base/startup/init/interfaces/innerkits:libbegetutil"
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"header_base": "//base/startup/init/interfaces/innerkits/include/",
|
||||
"header_files": []
|
||||
},
|
||||
"name": "//base/startup/init/interfaces/innerkits:libbegetutil_static",
|
||||
"visibility": [ "updater" ]
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"header_base": "//base/startup/init/interfaces/innerkits/include/fs_manager/",
|
||||
@ -127,6 +135,14 @@
|
||||
},
|
||||
"name": "//base/startup/init/interfaces/innerkits/fs_manager:libfsmanager_static"
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"header_base": "//base/startup/init/interfaces/innerkits/include/fs_manager/",
|
||||
"header_files": []
|
||||
},
|
||||
"name": "//base/startup/init/interfaces/innerkits/fs_manager:libfsmanager_static_real",
|
||||
"visibility": [ "updater" ]
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"header_base": "//base/startup/init/interfaces/innerkits/include/",
|
||||
|
@ -90,6 +90,9 @@ if (defined(ohos_lite)) {
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
static_library("libbegetutil_static") {
|
||||
}
|
||||
}
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
static_library("libbegetutil") {
|
||||
@ -143,6 +146,9 @@ if (defined(ohos_lite)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static_library("libbegetutil_static") {
|
||||
}
|
||||
}
|
||||
|
||||
lite_component("parameter") {
|
||||
@ -292,7 +298,10 @@ if (defined(ohos_lite)) {
|
||||
|
||||
ohos_static_library("libbegetutil_static") {
|
||||
sources = syspara_sources
|
||||
sources += [ "syspara/param_wrapper.cpp" ]
|
||||
sources += [
|
||||
"reboot/init_reboot_innerkits.c",
|
||||
"syspara/param_wrapper.cpp",
|
||||
]
|
||||
|
||||
defines = [
|
||||
"INIT_AGENT",
|
||||
@ -307,16 +316,17 @@ if (defined(ohos_lite)) {
|
||||
deps = [
|
||||
"//base/startup/init/services/log:agent_log",
|
||||
"//base/startup/init/services/loopevent:loopevent",
|
||||
"//base/startup/init/services/modules/udid:libudidcomm",
|
||||
"//base/startup/init/services/modules/udid:libudidcomm_static",
|
||||
"//base/startup/init/services/param/linux:param_client",
|
||||
"//base/startup/init/services/utils:libinit_utils",
|
||||
]
|
||||
deps += [ "//base/startup/init/services/param/base:param_base" ]
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"c_utils:utils",
|
||||
"bounds_checking_function:libsec_static",
|
||||
"c_utils:utilsbase",
|
||||
"hilog:libhilog_base",
|
||||
]
|
||||
public_configs = [ ":exported_header_files" ]
|
||||
part_name = "init"
|
||||
subsystem_name = "startup"
|
||||
}
|
||||
|
@ -63,3 +63,45 @@ ohos_static_library("libfsmanager_static") {
|
||||
part_name = "init"
|
||||
subsystem_name = "startup"
|
||||
}
|
||||
|
||||
ohos_static_library("libfsmanager_static_real") {
|
||||
if (!defined(ohos_lite)) {
|
||||
sources = [
|
||||
"fstab.c",
|
||||
"fstab_mount.c",
|
||||
]
|
||||
include_dirs = [
|
||||
"//base/startup/init/interfaces/innerkits/include",
|
||||
"//base/startup/init/interfaces/innerkits/include/param",
|
||||
"//base/startup/init/interfaces/innerkits/init_module_engine/include",
|
||||
"//base/startup/init/services/log",
|
||||
"//base/startup/init/services/param/include",
|
||||
]
|
||||
external_deps = [ "bounds_checking_function:libsec_static" ]
|
||||
deps = [ "//base/startup/init/services/utils:libinit_utils" ]
|
||||
if (defined(global_parts_info) && defined(global_parts_info.startup_hvb)) {
|
||||
sources += [
|
||||
"dm_verity/dm_verity.c",
|
||||
"libfs_dm/fs_dm.c",
|
||||
"libfs_hvb/fs_hvb.c",
|
||||
"libfs_hvb/hvb_ops.c",
|
||||
]
|
||||
|
||||
include_dirs += [
|
||||
"//base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/include",
|
||||
"//base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/include",
|
||||
"//base/startup/init/interfaces/innerkits/fs_manager/dm_verity/include",
|
||||
"//base/startup/hvb/libhvb/include",
|
||||
"//base/startup/init/ueventd/include",
|
||||
]
|
||||
|
||||
defines = [ "SUPPORT_HVB" ]
|
||||
external_deps += [ "hvb:libhvb_static" ]
|
||||
deps += [ "//base/startup/init/ueventd:libueventd_ramdisk_static_real" ]
|
||||
}
|
||||
}
|
||||
|
||||
public_configs = [ ":libfsmanager_exported_configs" ]
|
||||
part_name = "init"
|
||||
subsystem_name = "startup"
|
||||
}
|
||||
|
@ -123,4 +123,14 @@ if (defined(ohos_lite)) {
|
||||
part_name = "init"
|
||||
subsystem_name = "startup"
|
||||
}
|
||||
|
||||
ohos_static_library("libudidcomm_static") {
|
||||
sources = [ "udid_comm.c" ]
|
||||
defines = [ "_GNU_SOURCE" ]
|
||||
include_dirs = comm_include
|
||||
external_deps = [ "bounds_checking_function:libsec_static" ]
|
||||
|
||||
part_name = "init"
|
||||
subsystem_name = "startup"
|
||||
}
|
||||
}
|
||||
|
@ -76,6 +76,11 @@ if (defined(ohos_lite)) {
|
||||
"//base/startup/init/services/utils:libinit_utils",
|
||||
]
|
||||
|
||||
service_ueventd_ramdisk_deps = [
|
||||
"//base/startup/init/interfaces/innerkits/socket:libsocket",
|
||||
"//base/startup/init/services/utils:libinit_utils",
|
||||
]
|
||||
|
||||
#
|
||||
# exported include directories
|
||||
#
|
||||
@ -101,6 +106,24 @@ if (defined(ohos_lite)) {
|
||||
subsystem_name = "startup"
|
||||
}
|
||||
|
||||
ohos_static_library("libueventd_ramdisk_static_real") {
|
||||
sources = service_ueventd_sources
|
||||
include_dirs = service_ueventd_include
|
||||
deps = service_ueventd_ramdisk_deps
|
||||
defines = [ "__RAMDISK__" ]
|
||||
external_deps = []
|
||||
cflags = []
|
||||
if (build_selinux) {
|
||||
external_deps += [ "selinux_adapter:librestorecon_static" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
external_deps += [ "selinux:libselinux_static" ]
|
||||
external_deps += [ "bounds_checking_function:libsec_static" ]
|
||||
public_configs = [ ":libueventd_exported_config" ]
|
||||
part_name = "init"
|
||||
subsystem_name = "startup"
|
||||
}
|
||||
|
||||
ohos_executable("ueventd") {
|
||||
sources = service_ueventd_sources
|
||||
sources += [
|
||||
|
Loading…
Reference in New Issue
Block a user