From c7b9a368fd156dfef6f2933a2cdcbf82355d4858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=98=E7=BD=97=E5=AE=87?= Date: Fri, 28 Mar 2025 18:26:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=E9=93=BE=E6=8E=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 甘罗宇 --- interfaces/kits/slot_info/BUILD.gn | 8 ++++++-- updater_default_cfg.gni | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/interfaces/kits/slot_info/BUILD.gn b/interfaces/kits/slot_info/BUILD.gn index f79e5b1d..4e1946ab 100644 --- a/interfaces/kits/slot_info/BUILD.gn +++ b/interfaces/kits/slot_info/BUILD.gn @@ -27,8 +27,12 @@ ohos_static_library("libslotinfo") { deps = [ "${updater_path}/services/log:libupdaterlog" ] if (init_feature_ab_partition) { defines = [ "UPDATER_AB_SUPPORT" ] - external_deps = - [ "drivers_peripheral_partitionslot:libpartition_slot_manager" ] + external_deps = [ + "drivers_peripheral_partitionslot:libpartition_slot_manager", + "c_utils:utilsbase", + "hilog:libhilog_base", + "init:libbegetutil_static", + ] } subsystem_name = "updater" diff --git a/updater_default_cfg.gni b/updater_default_cfg.gni index e2036f20..796286a3 100644 --- a/updater_default_cfg.gni +++ b/updater_default_cfg.gni @@ -45,7 +45,7 @@ template("updater_gen") { } else { ohos_executable(target_name) { if (!is_asan && !is_emulator && target_name == "updater_binary") { - static_link = false + static_link = true } forward_variables_from(invoker, "*") -- Gitee From 669e055f1ed0b8d4593c455417b1a2ab0c916dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=98=E7=BD=97=E5=AE=87?= Date: Fri, 28 Mar 2025 18:41:53 +0800 Subject: [PATCH 2/2] fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 甘罗宇 --- interfaces/kits/slot_info/BUILD.gn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/kits/slot_info/BUILD.gn b/interfaces/kits/slot_info/BUILD.gn index 4e1946ab..e513ffb5 100644 --- a/interfaces/kits/slot_info/BUILD.gn +++ b/interfaces/kits/slot_info/BUILD.gn @@ -27,12 +27,12 @@ ohos_static_library("libslotinfo") { deps = [ "${updater_path}/services/log:libupdaterlog" ] if (init_feature_ab_partition) { defines = [ "UPDATER_AB_SUPPORT" ] - external_deps = [ - "drivers_peripheral_partitionslot:libpartition_slot_manager", + external_deps = [ "c_utils:utilsbase", + "drivers_peripheral_partitionslot:libpartition_slot_manager", "hilog:libhilog_base", "init:libbegetutil_static", - ] + ] } subsystem_name = "updater" -- Gitee