diff --git a/interfaces/innerkits/file/BUILD.gn b/interfaces/innerkits/file/BUILD.gn index bd6ac3086b882196ee03fe02965dd5cf6c416934..a3b69e35516439892b027be5f06f6bd0fe55f014 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 48d8744986e4951963a545ff00656d225a1e73e9..38b1a5940106e7967eb1d49d1a6e22c3342e3bf1 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 1df0035aa16aab28b42dc1ef3fa891cc289b34b4..1ece6b9e46fe350d1fc017e646b45bb754bb5b6d 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 285bbdf94bdc65d294a28f5cdf132dbedb73fa6b..cdcdb2a95b335e8bc8ec3f962fa4a53a11cdb8b4 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" }