1# Copyright (C) 2019 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 15ifeq (true,$(call TOBOOL,$(CONFIRMATIONUI_DISABLED))) 16$(error Trying to build DISABLED confirmationui) 17endif 18 19LOCAL_DIR := $(GET_LOCAL_DIR) 20 21MODULE := $(LOCAL_DIR) 22 23MANIFEST := $(LOCAL_DIR)/manifest.json 24 25MODULE_SRCS += \ 26 $(LOCAL_DIR)/src/main.cpp \ 27 $(LOCAL_DIR)/src/secure_input_tracker.cpp \ 28 $(LOCAL_DIR)/src/trusty_operation.cpp \ 29 $(LOCAL_DIR)/src/trusty_confirmation_ui.cpp \ 30 $(LOCAL_DIR)/src/trusty_time_stamper.cpp \ 31 32MODULE_LIBRARY_DEPS += \ 33 trusty/user/base/lib/keymaster \ 34 trusty/user/base/lib/libc-trusty \ 35 trusty/user/base/lib/libstdc++-trusty \ 36 trusty/user/base/lib/rng \ 37 trusty/user/base/lib/secure_fb \ 38 trusty/user/base/lib/teeui-stub \ 39 trusty/user/base/lib/tipc \ 40 external/boringssl \ 41 42# Enable handle prot if required 43ifeq (true,$(call TOBOOL,$(CONFIRMATIONUI_HANDLE_PROT))) 44MODULE_DEFINES += WITH_HANDLE_PROT 45MODULE_LIBRARY_DEPS += \ 46 trusty/user/whitechapel/tz/base/lib/handle_prot 47endif 48 49# Use the example layouts unless we have a vendor specific layout defined. 50ifeq ($(CONFIRMATIONUI_LAYOUTS),) 51MODULE_LIBRARY_DEPS += $(LOCAL_DIR)/examples/layouts 52else 53MODULE_LIBRARY_DEPS += $(CONFIRMATIONUI_LAYOUTS) 54endif 55 56ifeq ($(CONFIRMATIONUI_DEVICE_PARAMS),) 57MODULE_LIBRARY_DEPS += $(LOCAL_DIR)/examples/devices/emulator 58else 59MODULE_LIBRARY_DEPS += $(CONFIRMATIONUI_DEVICE_PARAMS) 60endif 61 62 63MODULE_EXPORT_INCLUDES += $(LOCAL_DIR)/include 64 65include make/trusted_app.mk 66