• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 Huawei Technologies Co., Ltd.
2# Licensed under the Mulan PSL v2.
3# You can use this software according to the terms and conditions of the Mulan PSL v2.
4# You may obtain a copy of Mulan PSL v2 at:
5#     http://license.coscl.org.cn/MulanPSL2
6# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
7# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
8# PURPOSE.
9# See the Mulan PSL v2 for more details.
10
11import("//build/ohos.gni")
12import("//build/ohos_var.gni")
13
14ohos_executable("teecd") {
15  part_name = "tee_client"
16  subsystem_name = "tee"
17  module_install_dir = "bin"
18  install_images = [
19    "system",
20    "updater",
21  ]
22
23  sources = [
24    "../../../../frameworks/tee_file/tee_file.c",
25    "../../../authentication/tcu_authentication.c",
26    "../../../authentication/tee_auth_common.c",
27    "../../../authentication/tee_get_native_cert.c",
28    "../../src/fs_work_agent.c",
29    "../../src/late_init_agent.c",
30    "../../src/misc_work_agent.c",
31    "../../src/secfile_load_agent.c",
32    "../../src/tee_agent.c",
33    "../../src/tee_ca_auth.c",
34    "../../src/tee_ca_daemon.c",
35    "../../src/tee_load_dynamic.c",
36  ]
37
38  include_dirs = [
39    "../../../../interfaces/inner_api",
40    "../../include",
41    "../../include/standard",
42    "../../../../frameworks/include",
43    "../../../../frameworks/include/standard",
44    "../../../../frameworks/include/standard/teec_vendor",
45    "../../../../frameworks/libteec_vendor",
46    "../../../authentication",
47  ]
48
49  defines = [ "CONFIG_FSWORK_THREAD_ELEVATE_PRIO" ]
50  defines += [ "DYNAMIC_DRV_DIR=\"/vendor/bin/tee_dynamic_drv/\"" ]
51  defines += [ "DYNAMIC_SRV_DIR=\"/vendor/bin/tee_dynamic_srv/\"" ]
52  defines += [ "CONFIG_LATE_INIT" ]
53  defines += [ "ENABLE_FDSAN_CHECK" ]
54  defines += [ "DYNAMIC_SRV_FEIMA_DIR = \"/vendor/etc/passthrough/teeos/dynamic_srv\"" ]
55  defines += [ "DYNAMIC_DRV_FEIMA_DIR = \"/vendor/etc/passthrough/teeos/dynamic_drv\"" ]
56
57  external_deps = [
58    "bounds_checking_function:libsec_shared",
59    "c_utils:utils",
60    "hilog:libhilog",
61  ]
62}
63