Steven Moreland | c5c1937 | 2017-05-05 17:16:10 -0700 | [diff] [blame] | 1 | // |
| 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 | |
Roberto Pereira | 2426197 | 2018-07-30 14:54:58 -0700 | [diff] [blame] | 17 | cc_binary { |
| 18 | name: "android.hardware.keymaster@3.0-service.trusty", |
| 19 | defaults: ["hidl_defaults"], |
| 20 | relative_install_path: "hw", |
| 21 | vendor: true, |
| 22 | init_rc: ["3.0/android.hardware.keymaster@3.0-service.trusty.rc"], |
| 23 | srcs: [ |
| 24 | "3.0/service.cpp", |
| 25 | "3.0/TrustyKeymaster3Device.cpp", |
| 26 | "ipc/trusty_keymaster_ipc.cpp", |
| 27 | "TrustyKeymaster.cpp", |
| 28 | ], |
| 29 | |
| 30 | local_include_dirs: ["include"], |
| 31 | |
| 32 | shared_libs: [ |
| 33 | "liblog", |
| 34 | "libcutils", |
| 35 | "libdl", |
| 36 | "libbase", |
| 37 | "libutils", |
| 38 | "libhardware", |
| 39 | "libhidlbase", |
Roberto Pereira | 2426197 | 2018-07-30 14:54:58 -0700 | [diff] [blame] | 40 | "libtrusty", |
| 41 | "libkeymaster_messages", |
| 42 | "libkeymaster3device", |
| 43 | "android.hardware.keymaster@3.0" |
| 44 | ], |
| 45 | } |
Matthew Maurer | b321b41 | 2019-03-18 13:59:28 -0700 | [diff] [blame] | 46 | |
| 47 | cc_binary { |
| 48 | name: "android.hardware.keymaster@4.0-service.trusty", |
| 49 | defaults: ["hidl_defaults"], |
| 50 | relative_install_path: "hw", |
| 51 | vendor: true, |
| 52 | init_rc: ["4.0/android.hardware.keymaster@4.0-service.trusty.rc"], |
| 53 | srcs: [ |
| 54 | "4.0/service.cpp", |
| 55 | "4.0/TrustyKeymaster4Device.cpp", |
| 56 | "ipc/trusty_keymaster_ipc.cpp", |
| 57 | "TrustyKeymaster.cpp", |
| 58 | ], |
| 59 | |
| 60 | local_include_dirs: ["include"], |
| 61 | |
| 62 | shared_libs: [ |
| 63 | "liblog", |
| 64 | "libcutils", |
| 65 | "libdl", |
| 66 | "libbase", |
| 67 | "libutils", |
| 68 | "libhardware", |
| 69 | "libhidlbase", |
Matthew Maurer | b321b41 | 2019-03-18 13:59:28 -0700 | [diff] [blame] | 70 | "libtrusty", |
| 71 | "libkeymaster_messages", |
| 72 | "libkeymaster4", |
| 73 | "android.hardware.keymaster@4.0" |
| 74 | ], |
Matthew Maurer | c649ca5 | 2019-08-26 10:47:51 -0700 | [diff] [blame] | 75 | |
| 76 | vintf_fragments: ["4.0/android.hardware.keymaster@4.0-service.trusty.xml"], |
Matthew Maurer | b321b41 | 2019-03-18 13:59:28 -0700 | [diff] [blame] | 77 | } |
Arve Hjønnevåg | 0c32a25 | 2020-09-01 16:38:40 -0700 | [diff] [blame] | 78 | |
| 79 | prebuilt_etc { |
| 80 | name: "keymaster_soft_attestation_keys.xml", |
| 81 | vendor: true, |
| 82 | src: "set_attestation_key/keymaster_soft_attestation_keys.xml", |
| 83 | } |
| 84 | |
| 85 | cc_binary { |
| 86 | name: "trusty_keymaster_set_attestation_key", |
| 87 | vendor: true, |
| 88 | |
| 89 | srcs: [ |
| 90 | "set_attestation_key/set_attestation_key.cpp", |
| 91 | "ipc/trusty_keymaster_ipc.cpp", |
| 92 | ], |
| 93 | |
| 94 | local_include_dirs: ["include"], |
| 95 | |
| 96 | shared_libs: [ |
| 97 | "libc", |
| 98 | "libcrypto", |
| 99 | "liblog", |
| 100 | "libtrusty", |
| 101 | "libhardware", |
| 102 | "libkeymaster_messages", |
| 103 | "libxml2", |
| 104 | ], |
| 105 | cflags: [ |
| 106 | "-Wall", |
| 107 | "-Werror", |
| 108 | ], |
| 109 | } |
Elliott Hughes | c3a206c | 2021-02-16 20:01:20 +0000 | [diff] [blame] | 110 | |