From 3ac22ba1b2ac5b574b716490b5f9468293bea932 Mon Sep 17 00:00:00 2001 From: aaronwangjun Date: Sun, 26 Sep 2021 17:30:19 +0800 Subject: [PATCH] fixed 55bbe97 from https://gitee.com/aaronwangjun/xts_acts/pulls/761 aaron.wangjun@huawei.com Signed-off-by: aaronwangjun Change-Id: I57b89df70fcae7a533f6177727d6b233e67ab02c --- security_lite/BUILD.gn | 5 ++++- security_lite/huks/common/BUILD.gn | 6 +++++- security_lite/huks/liteos_a_adapter/BUILD.gn | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/security_lite/BUILD.gn b/security_lite/BUILD.gn index c72652bbd..99e76ab70 100644 --- a/security_lite/BUILD.gn +++ b/security_lite/BUILD.gn @@ -20,7 +20,10 @@ group("securitytest") { "//test/xts/acts/security_lite/permission_posix/pms:ActsPMSTest", ] } else if (ohos_kernel_type == "linux") { - deps = [ "//test/xts/acts/security_lite/permission_posix/pms:ActsPMSTest" ] + deps = [ + "//test/xts/acts/security_lite/huks/liteos_a_adapter:Hukslitetest", + "//test/xts/acts/security_lite/permission_posix/pms:ActsPMSTest", + ] } else if (ohos_kernel_type == "liteos_m") { deps = [ "//test/xts/acts/security_lite/huks/liteos_m_adapter:ActsHuksHalFunctionTest" ] } diff --git a/security_lite/huks/common/BUILD.gn b/security_lite/huks/common/BUILD.gn index c5fe32355..20ac185d0 100644 --- a/security_lite/huks/common/BUILD.gn +++ b/security_lite/huks/common/BUILD.gn @@ -25,6 +25,7 @@ config("hilog_lite_dir") { config("huks_test_common_dir") { include_dirs = [ "//base/security/huks/interfaces/innerkits/huks_standard/main/include", + "//third_party/bounds_checking_function/include", "include", ] } @@ -60,7 +61,10 @@ static_library("huks_test_common") { deps += [ "//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite" ] } else if (ohos_kernel_type == "liteos_a") { configs += [ ":hilog_dir" ] - deps += [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ] + deps += [ + "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", + "//third_party/bounds_checking_function:libsec_shared", + ] } } } diff --git a/security_lite/huks/liteos_a_adapter/BUILD.gn b/security_lite/huks/liteos_a_adapter/BUILD.gn index 1b440655d..0256aae59 100644 --- a/security_lite/huks/liteos_a_adapter/BUILD.gn +++ b/security_lite/huks/liteos_a_adapter/BUILD.gn @@ -48,6 +48,7 @@ hcpptest_suite("ActsHuksLiteFunctionTest") { deps = [ "//base/security/huks/interfaces/innerkits/huks_lite:huks_3.0_sdk", "//test/xts/acts/security_lite/huks/common:huks_test_common", + "//third_party/bounds_checking_function:libsec_shared", ] cflags = [ "-Wno-error" ] -- GitLab