1#
2# Copyright (C) 2016-2017 The Android Open Source Project
3# Copyright 2017 NXP
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9#     http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
18LOCAL_DIR := $(GET_LOCAL_DIR)
19
20MODULE := $(LOCAL_DIR)
21
22MANIFEST := $(LOCAL_DIR)/manifest.json
23
24MODULE_CONSTANTS := \
25	$(LOCAL_DIR)/../../platform/imx/soc/$(PLATFORM_SOC)/include/nxp_hwcrypto_memmap_consts.json \
26	$(LOCAL_DIR)/nxp_hwcrypto_consts.json \
27	$(LOCAL_DIR)/nxp_hwcrypto_uuid_consts.json \
28
29MODULE_SRCS := \
30	$(LOCAL_DIR)/main.c \
31	$(LOCAL_DIR)/hwrng_srv.c \
32	$(LOCAL_DIR)/hwkey_srv.c \
33	$(LOCAL_DIR)/hwkey_srv_provider.c \
34	$(LOCAL_DIR)/hwrng_srv_provider.c \
35	$(LOCAL_DIR)/caam.c \
36
37MODULE_INCLUDES := \
38	$(LOCAL_DIR)/../../platform/imx/soc/$(PLATFORM_SOC)/include
39
40MODULE_LIBRARY_DEPS := \
41	trusty/user/base/lib/libc-trusty \
42	trusty/user/base/interface/hwrng \
43	trusty/user/base/interface/hwkey \
44	external/boringssl \
45
46include make/trusted_app.mk
47