• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 The Android Open-Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_binary {
21    name: "android.hardware.security.keymint-service.remote",
22    relative_install_path: "hw",
23    init_rc: ["android.hardware.security.keymint-service.remote.rc"],
24    vintf_fragments: [
25        "android.hardware.security.keymint-service.remote.xml",
26        "android.hardware.security.sharedsecret-service.remote.xml",
27        "android.hardware.security.secureclock-service.remote.xml",
28    ],
29    vendor: true,
30    cflags: [
31        "-Wall",
32        "-Wextra",
33    ],
34    shared_libs: [
35        "android.hardware.security.keymint-V1-ndk_platform",
36        "android.hardware.security.secureclock-V1-ndk_platform",
37        "android.hardware.security.sharedsecret-V1-ndk_platform",
38        "lib_android_keymaster_keymint_utils",
39        "libbase",
40        "libbinder_ndk",
41        "libcppbor_external",
42        "libcrypto",
43        "libcuttlefish_fs",
44        "libcuttlefish_security",
45        "libhardware",
46        "libkeymaster_messages",
47        "libkeymint",
48        "liblog",
49        "libutils",
50    ],
51    srcs: [
52        "remote_keymint_device.cpp",
53        "remote_keymint_operation.cpp",
54        "remote_keymaster.cpp",
55        "remote_secure_clock.cpp",
56        "remote_shared_secret.cpp",
57        "service.cpp",
58    ],
59    defaults: [
60        "cuttlefish_guest_only",
61    ],
62}
63