1# Copyright (C) 2021 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15 16LOCAL_DIR := $(GET_LOCAL_DIR) 17 18MODULEWRAPPER_ROOT := external/boringssl/src/util/fipstools/acvp/modulewrapper 19KEYMASTER_ROOT := system/keymaster 20 21MODULE := $(LOCAL_DIR) 22 23MANIFEST := $(LOCAL_DIR)/manifest.json 24 25MODULE_INCLUDES += \ 26 $(MODULEWRAPPER_ROOT) \ 27 $(KEYMASTER_ROOT)/include \ 28 $(TRUSTY_TOP)/hardware/libhardware/include \ 29 30MODULE_SRCS += \ 31 $(LOCAL_DIR)/acvp.cpp \ 32 $(LOCAL_DIR)/keymaster_ckdf.cpp \ 33 $(MODULEWRAPPER_ROOT)/modulewrapper.cc \ 34 $(KEYMASTER_ROOT)/android_keymaster/android_keymaster_utils.cpp \ 35 $(KEYMASTER_ROOT)/android_keymaster/logger.cpp \ 36 $(KEYMASTER_ROOT)/km_openssl/ckdf.cpp \ 37 $(KEYMASTER_ROOT)/km_openssl/openssl_err.cpp \ 38 39MODULE_LIBRARY_DEPS += \ 40 trusty/user/base/interface/acvp \ 41 trusty/user/base/lib/libc-trusty \ 42 trusty/user/base/lib/libstdc++-trusty \ 43 trusty/user/base/lib/tipc \ 44 external/boringssl \ 45 46include make/trusted_app.mk 47