blob: fbdfbe2ad0e460caa4d5d50e601442fc9850b357 [file] [log] [blame]
Steven Morelandc5c19372017-05-05 17:16:10 -07001//
2// Copyright (C) 2015 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//
16
Bob Badour187b7d12021-02-12 17:48:16 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "system_core_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["system_core_license"],
24}
25
Roberto Pereira24261972018-07-30 14:54:58 -070026cc_binary {
27 name: "android.hardware.keymaster@3.0-service.trusty",
28 defaults: ["hidl_defaults"],
29 relative_install_path: "hw",
30 vendor: true,
31 init_rc: ["3.0/android.hardware.keymaster@3.0-service.trusty.rc"],
32 srcs: [
33 "3.0/service.cpp",
34 "3.0/TrustyKeymaster3Device.cpp",
35 "ipc/trusty_keymaster_ipc.cpp",
36 "TrustyKeymaster.cpp",
37 ],
38
39 local_include_dirs: ["include"],
40
41 shared_libs: [
42 "liblog",
43 "libcutils",
44 "libdl",
45 "libbase",
46 "libutils",
47 "libhardware",
48 "libhidlbase",
Roberto Pereira24261972018-07-30 14:54:58 -070049 "libtrusty",
50 "libkeymaster_messages",
51 "libkeymaster3device",
52 "android.hardware.keymaster@3.0"
53 ],
54}
Matthew Maurerb321b412019-03-18 13:59:28 -070055
56cc_binary {
57 name: "android.hardware.keymaster@4.0-service.trusty",
58 defaults: ["hidl_defaults"],
59 relative_install_path: "hw",
60 vendor: true,
61 init_rc: ["4.0/android.hardware.keymaster@4.0-service.trusty.rc"],
62 srcs: [
63 "4.0/service.cpp",
64 "4.0/TrustyKeymaster4Device.cpp",
65 "ipc/trusty_keymaster_ipc.cpp",
66 "TrustyKeymaster.cpp",
67 ],
68
69 local_include_dirs: ["include"],
70
71 shared_libs: [
72 "liblog",
73 "libcutils",
74 "libdl",
75 "libbase",
76 "libutils",
77 "libhardware",
78 "libhidlbase",
Matthew Maurerb321b412019-03-18 13:59:28 -070079 "libtrusty",
80 "libkeymaster_messages",
81 "libkeymaster4",
82 "android.hardware.keymaster@4.0"
83 ],
Matthew Maurerc649ca52019-08-26 10:47:51 -070084
85 vintf_fragments: ["4.0/android.hardware.keymaster@4.0-service.trusty.xml"],
Matthew Maurerb321b412019-03-18 13:59:28 -070086}
Arve Hjønnevåg0c32a252020-09-01 16:38:40 -070087
88prebuilt_etc {
89 name: "keymaster_soft_attestation_keys.xml",
90 vendor: true,
91 src: "set_attestation_key/keymaster_soft_attestation_keys.xml",
92}
93
94cc_binary {
95 name: "trusty_keymaster_set_attestation_key",
96 vendor: true,
97
98 srcs: [
99 "set_attestation_key/set_attestation_key.cpp",
100 "ipc/trusty_keymaster_ipc.cpp",
101 ],
102
103 local_include_dirs: ["include"],
104
105 shared_libs: [
106 "libc",
107 "libcrypto",
108 "liblog",
109 "libtrusty",
110 "libhardware",
111 "libkeymaster_messages",
112 "libxml2",
113 ],
114 cflags: [
115 "-Wall",
116 "-Werror",
117 ],
118}