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 | |
| 17 | // WARNING: Everything listed here will be built on ALL platforms, |
| 18 | // including x86, the emulator, and the SDK. Modules must be uniquely |
| 19 | // named (liblights.panda), and must build everywhere, or limit themselves |
| 20 | // to only building on ARM if they include assembly. Individual makefiles |
| 21 | // are responsible for having their own logic, for fine-grained control. |
| 22 | |
| 23 | // trusty_keymaster is a binary used only for on-device testing. It |
| 24 | // runs Trusty Keymaster through a basic set of operations with RSA |
| 25 | // and ECDSA keys. |
| 26 | cc_binary { |
| 27 | name: "trusty_keymaster_tipc", |
Hung-ying Tyan | 063a3fa | 2017-07-28 19:09:33 +0800 | [diff] [blame] | 28 | vendor: true, |
Steven Moreland | c5c1937 | 2017-05-05 17:16:10 -0700 | [diff] [blame] | 29 | srcs: [ |
| 30 | "trusty_keymaster_device.cpp", |
| 31 | "trusty_keymaster_ipc.cpp", |
| 32 | "trusty_keymaster_main.cpp", |
| 33 | ], |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 34 | cflags: [ |
| 35 | "-Wall", |
| 36 | "-Werror", |
| 37 | ], |
Steven Moreland | c5c1937 | 2017-05-05 17:16:10 -0700 | [diff] [blame] | 38 | shared_libs: [ |
| 39 | "libcrypto", |
| 40 | "libcutils", |
| 41 | "libkeymaster_portable", |
| 42 | "libkeymaster_staging", |
| 43 | "libtrusty", |
| 44 | "libkeymaster_messages", |
| 45 | "libsoftkeymasterdevice", |
| 46 | "liblog", |
| 47 | ], |
| 48 | } |
| 49 | |
| 50 | // keystore.trusty is the HAL used by keystore on Trusty devices. |
| 51 | cc_library_shared { |
| 52 | name: "keystore.trusty", |
Hung-ying Tyan | 063a3fa | 2017-07-28 19:09:33 +0800 | [diff] [blame] | 53 | vendor: true, |
Steven Moreland | c5c1937 | 2017-05-05 17:16:10 -0700 | [diff] [blame] | 54 | relative_install_path: "hw", |
| 55 | srcs: [ |
| 56 | "module.cpp", |
| 57 | "trusty_keymaster_ipc.cpp", |
| 58 | "trusty_keymaster_device.cpp", |
| 59 | ], |
| 60 | |
| 61 | cflags: [ |
| 62 | "-fvisibility=hidden", |
| 63 | "-Wall", |
| 64 | "-Werror", |
| 65 | ], |
| 66 | |
| 67 | shared_libs: [ |
| 68 | "libcrypto", |
| 69 | "libkeymaster_messages", |
| 70 | "libtrusty", |
| 71 | "liblog", |
| 72 | "libcutils", |
| 73 | ], |
Hung-ying Tyan | 063a3fa | 2017-07-28 19:09:33 +0800 | [diff] [blame] | 74 | header_libs: ["libhardware_headers"], |
Steven Moreland | c5c1937 | 2017-05-05 17:16:10 -0700 | [diff] [blame] | 75 | } |