1# Copyright (C) 2020 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 18MODULE := $(LOCAL_DIR) 19 20MANIFEST := $(LOCAL_DIR)/manifest.json 21 22MODULE_SRCS += \ 23 $(LOCAL_DIR)/apploader.c \ 24 $(LOCAL_DIR)/app_version.cpp \ 25 $(LOCAL_DIR)/app_manifest_parser.cpp \ 26 27# Override this to provide a different policy engine 28TRUSTY_APPLOADER_POLICY_ENGINE ?= trusty/user/base/lib/sample/apploader_policy_engine 29 30MODULE_LIBRARY_DEPS += \ 31 trusty/kernel/lib/app_manifest \ 32 trusty/user/base/lib/apploader_package \ 33 trusty/user/base/lib/apploader_policy_engine \ 34 trusty/user/base/lib/libstdc++-trusty \ 35 trusty/user/base/lib/tipc \ 36 trusty/user/base/lib/storage \ 37 trusty/user/base/lib/system_state \ 38 trusty/user/base/interface/apploader \ 39 $(TRUSTY_APPLOADER_POLICY_ENGINE) \ 40 41# Enabling APPLOADER_ALLOW_NS_CONNECT will allow apploader connections from the 42# non-secure world. 43APPLOADER_ALLOW_NS_CONNECT ?= false 44ifeq (true,$(call TOBOOL,$(APPLOADER_ALLOW_NS_CONNECT))) 45MODULE_COMPILEFLAGS += -DAPPLOADER_ALLOW_NS_CONNECT 46endif 47 48# Indicate to user-tasks.mk that this build supports loadable apps 49TRUSTY_APPLOADER_ENABLED := true 50 51include make/trusted_app.mk 52