modify BUILD.gn

Signed-off-by: jinling <jinling10@huawei.com>
This commit is contained in:
jinling10 2023-04-10 09:35:08 +08:00
parent d4a997f343
commit 3952826004
2 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,9 @@ declare_args() {
# whether enable upgrade key file for l1 sdk to l1 service, default as false
huks_enable_upgrade_small_to_service = false
# whether enable upgrade root key component from V1 to V2, default as true
huks_enable_upgrade_rkc_1to2 = true
# default security level supported by huks is software
huks_security_level = "software"

View File

@ -99,6 +99,10 @@ if (os_level == "standard") {
sources += [ "//base/security/huks/services/huks_standard/huks_service/main/core/src/hks_storage.c" ]
if (huks_enable_upgrade_rkc_1to2) {
sources += [ "src/hks_rkc_v1.c" ]
}
deps = [ "//base/security/huks/frameworks/huks_standard/main/common:libhuks_common_small_static" ]
if (huks_dependency_mbedtls_path != "") {
deps += [ huks_dependency_mbedtls_path ]