huks_enable_hdi_in_system_in_standard

Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: Ief116c746a3d0eaed4ab83f08d244835b434025c
This commit is contained in:
code4lala 2024-07-22 14:56:39 +08:00
parent d80ab80555
commit 5cce1ed188
5 changed files with 8 additions and 10 deletions

View File

@ -100,4 +100,7 @@ declare_args() {
# hap temporary skip upgrade config
huks_hap_skip_upgrade_config = "{}"
# whether enable huks hdi in system in standard
huks_enable_hdi_in_standard = true
}

View File

@ -50,7 +50,8 @@
"huks_hap_upgrade_config",
"huks_enable_skip_upgrade_key_storage_secure_level",
"huks_sa_skip_upgrade_config",
"huks_hap_skip_upgrade_config"
"huks_hap_skip_upgrade_config",
"huks_enable_hdi_in_standard"
],
"adapted_system_type": [
"standard",

View File

@ -19,7 +19,6 @@ enable_user_auth_framework = true
enable_huks_lite_hap = false
enable_bundle_framework = true
enable_interact_across_local_accounts = false
has_huks_hdi_driver = true
fuzz_module_out_path = "huks/huks"
# always set as false for upload code
@ -39,11 +38,6 @@ if (!defined(global_parts_info.useriam_user_auth_framework)) {
enable_user_auth_framework = false
}
if (!defined(global_parts_info.hdf_drivers_peripheral_huks) &&
!defined(global_parts_info.hdf_drivers_peripheral_huks_override)) {
has_huks_hdi_driver = false
}
if (os_level == "mini" && defined(global_parts_info.arkui_ace_engine_lite)) {
enable_huks_lite_hap = true
}

View File

@ -54,7 +54,7 @@ ohos_static_library("libhuks_core_hal_api_static") {
"c_utils:utils",
"hilog:libhilog",
]
if (has_huks_hdi_driver && !enable_hks_mock) {
if (huks_enable_hdi_in_standard && !enable_hks_mock) {
defines = [ "HKS_CORE_ENABLE_HDI_DRIVER" ]
external_deps += [ "drivers_interface_user_auth:libuser_auth_proxy_2.0" ]
} else {

View File

@ -34,7 +34,7 @@ if (os_level == "standard") {
"ipc/hks_service_ipc_serialization.c",
]
if (has_huks_hdi_driver) {
if (huks_enable_hdi_in_standard) {
sources += [ "passthrough/huks_hdi_access.c" ]
} else {
sources += [
@ -90,7 +90,7 @@ if (os_level == "standard") {
]
external_deps += [ "hilog:libhilog" ]
if (has_huks_hdi_driver) {
if (huks_enable_hdi_in_standard) {
external_deps += [ "drivers_interface_huks:libhuks_proxy_1.0" ]
}
}