diff --git a/interfaces/innerkits/file/BUILD.gn b/interfaces/innerkits/file/BUILD.gn index bd6ac3086..a3b69e355 100755 --- a/interfaces/innerkits/file/BUILD.gn +++ b/interfaces/innerkits/file/BUILD.gn @@ -31,7 +31,7 @@ ohos_static_library("libfile_static") { deps = service_file_deps } -ohos_shared_library("libfile_shared") { +ohos_shared_library("libfile") { sources = service_file_sources include_dirs = service_file_include deps = service_file_deps diff --git a/interfaces/innerkits/reboot/BUILD.gn b/interfaces/innerkits/reboot/BUILD.gn index 48d874498..38b1a5940 100755 --- a/interfaces/innerkits/reboot/BUILD.gn +++ b/interfaces/innerkits/reboot/BUILD.gn @@ -25,8 +25,16 @@ service_reboot_deps = [ "//third_party/bounds_checking_function:libsec_static", ] -ohos_static_library("libreboot") { +ohos_static_library("libreboot_static") { sources = service_reboot_sources include_dirs = service_reboot_include deps = service_reboot_deps } + +ohos_shared_library("libreboot") { + sources = service_reboot_sources + include_dirs = service_reboot_include + deps = service_reboot_deps + part_name = "init" + install_images = [ "system" ] +} diff --git a/services/BUILD.gn b/services/BUILD.gn index 1df0035aa..1ece6b9e4 100755 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -167,7 +167,7 @@ if (defined(ohos_lite)) { ":init", ":init_etc", "//base/startup/init_lite/interfaces/innerkits/dynamic_service:dynamic_service", - "//base/startup/init_lite/interfaces/innerkits/file:libfile_shared", + "//base/startup/init_lite/interfaces/innerkits/file:libfile", "//base/startup/init_lite/interfaces/innerkits/fs_manager:libfsmanager_shared", "//base/startup/init_lite/interfaces/innerkits/reboot:libreboot", "//base/startup/init_lite/interfaces/innerkits/socket:libsocket", diff --git a/services/cmds/reboot/BUILD.gn b/services/cmds/reboot/BUILD.gn index 285bbdf94..cdcdb2a95 100755 --- a/services/cmds/reboot/BUILD.gn +++ b/services/cmds/reboot/BUILD.gn @@ -20,7 +20,9 @@ ohos_executable("reboot") { "//base/startup/init_lite/services/include/param/", "//third_party/bounds_checking_function/include", ] - deps = [ "//base/startup/init_lite/interfaces/innerkits/reboot:libreboot" ] + deps = [ + "//base/startup/init_lite/interfaces/innerkits/reboot:libreboot_static", + ] install_enable = true part_name = "init" }