blob: 2d614aec655756005a622960421747136ea789c5 [file] [log] [blame]
Andres Moralesb33c9b82015-09-08 17:56:07 -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
23LOCAL_PATH:= $(call my-dir)
24
25include $(CLEAR_VARS)
26
27###
28# trusty_keymaster is a binary used only for on-device testing. It
29# runs Trusty Keymaster through a basic set of operations with RSA
30# and ECDSA keys.
31###
32LOCAL_MODULE := trusty_keymaster_tipc
33LOCAL_SRC_FILES := \
34 trusty_keymaster_device.cpp \
Jocelyn Bohrdccc76c2017-02-09 17:06:54 -080035 trusty_keymaster_ipc.cpp \
Andres Moralesb33c9b82015-09-08 17:56:07 -070036 trusty_keymaster_main.cpp
37LOCAL_SHARED_LIBRARIES := \
38 libcrypto \
39 libcutils \
40 libkeymaster1 \
41 libtrusty \
42 libkeymaster_messages \
Jocelyn Bohr50206032017-02-09 17:52:45 -080043 libsoftkeymasterdevice \
Andres Moralesb33c9b82015-09-08 17:56:07 -070044 liblog
45
46include $(BUILD_EXECUTABLE)
47
48###
49# keystore.trusty is the HAL used by keystore on Trusty devices.
50##
51
52include $(CLEAR_VARS)
53
54LOCAL_MODULE := keystore.trusty
55LOCAL_MODULE_RELATIVE_PATH := hw
56LOCAL_SRC_FILES := module.cpp \
Jocelyn Bohrdccc76c2017-02-09 17:06:54 -080057 trusty_keymaster_ipc.cpp \
Andres Moralesb33c9b82015-09-08 17:56:07 -070058 trusty_keymaster_device.cpp
59LOCAL_CLFAGS = -fvisibility=hidden -Wall -Werror
60LOCAL_SHARED_LIBRARIES := \
61 libcrypto \
62 libkeymaster_messages \
63 libtrusty \
64 liblog \
65 libcutils
66LOCAL_MODULE_TAGS := optional
67
68include $(BUILD_SHARED_LIBRARY)