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