blob: 3b6867cf11a4855e0ea56d5f4eea346a4d7974eb [file] [log] [blame]
Steven Moreland8bb85bd2017-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
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.
26cc_binary {
27 name: "trusty_keymaster_tipc",
28 srcs: [
29 "trusty_keymaster_device.cpp",
30 "trusty_keymaster_ipc.cpp",
31 "trusty_keymaster_main.cpp",
32 ],
33 shared_libs: [
34 "libcrypto",
35 "libcutils",
36 "libkeymaster1",
37 "libtrusty",
38 "libkeymaster_messages",
39 "libsoftkeymasterdevice",
40 "liblog",
41 ],
42}
43
44// keystore.trusty is the HAL used by keystore on Trusty devices.
45cc_library_shared {
46 name: "keystore.trusty",
47 relative_install_path: "hw",
48 srcs: [
49 "module.cpp",
50 "trusty_keymaster_ipc.cpp",
51 "trusty_keymaster_device.cpp",
52 ],
53
54 cflags: [
55 "-fvisibility=hidden",
56 "-Wall",
57 "-Werror",
58 ],
59
60 shared_libs: [
61 "libcrypto",
62 "libkeymaster_messages",
63 "libtrusty",
64 "liblog",
65 "libcutils",
66 ],
67}