17c88f3f6SAchin Gupta# 27c88f3f6SAchin Gupta# Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. 37c88f3f6SAchin Gupta# 47c88f3f6SAchin Gupta# Redistribution and use in source and binary forms, with or without 57c88f3f6SAchin Gupta# modification, are permitted provided that the following conditions are met: 67c88f3f6SAchin Gupta# 77c88f3f6SAchin Gupta# Redistributions of source code must retain the above copyright notice, this 87c88f3f6SAchin Gupta# list of conditions and the following disclaimer. 97c88f3f6SAchin Gupta# 107c88f3f6SAchin Gupta# Redistributions in binary form must reproduce the above copyright notice, 117c88f3f6SAchin Gupta# this list of conditions and the following disclaimer in the documentation 127c88f3f6SAchin Gupta# and/or other materials provided with the distribution. 137c88f3f6SAchin Gupta# 147c88f3f6SAchin Gupta# Neither the name of ARM nor the names of its contributors may be used 157c88f3f6SAchin Gupta# to endorse or promote products derived from this software without specific 167c88f3f6SAchin Gupta# prior written permission. 177c88f3f6SAchin Gupta# 187c88f3f6SAchin Gupta# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 197c88f3f6SAchin Gupta# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 207c88f3f6SAchin Gupta# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 217c88f3f6SAchin Gupta# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 227c88f3f6SAchin Gupta# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 237c88f3f6SAchin Gupta# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 247c88f3f6SAchin Gupta# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 257c88f3f6SAchin Gupta# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 267c88f3f6SAchin Gupta# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 277c88f3f6SAchin Gupta# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 287c88f3f6SAchin Gupta# POSSIBILITY OF SUCH DAMAGE. 297c88f3f6SAchin Gupta# 307c88f3f6SAchin Gupta 31bee82417SDan HandleyBL32_SOURCES += bl32/tsp/tsp_main.c \ 32bee82417SDan Handley bl32/tsp/aarch64/tsp_entrypoint.S \ 33*57356e90SAchin Gupta bl32/tsp/aarch64/tsp_exceptions.S \ 34bee82417SDan Handley bl32/tsp/aarch64/tsp_request.S \ 356cf89021SAchin Gupta bl32/tsp/tsp_interrupt.c \ 366cf89021SAchin Gupta bl32/tsp/tsp_timer.c \ 37bee82417SDan Handley common/aarch64/early_exceptions.S \ 386cf89021SAchin Gupta lib/locks/exclusive/spinlock.S 397c88f3f6SAchin Gupta 40bee82417SDan HandleyBL32_LINKERFILE := bl32/tsp/tsp.ld.S 417c88f3f6SAchin Gupta 42d1466a2eSSandrine Bailleux# Include the platform-specific TSP Makefile 43d1466a2eSSandrine Bailleux# If no platform-specific TSP Makefile exists, it means TSP is not supported 44d1466a2eSSandrine Bailleux# on this platform. 45d1466a2eSSandrine BailleuxTSP_PLAT_MAKEFILE := bl32/tsp/tsp-${PLAT}.mk 46d1466a2eSSandrine Bailleuxifeq (,$(wildcard ${TSP_PLAT_MAKEFILE})) 47d1466a2eSSandrine Bailleux $(error TSP is not supported on platform ${PLAT}) 48d1466a2eSSandrine Bailleuxelse 49d1466a2eSSandrine Bailleux include ${TSP_PLAT_MAKEFILE} 50d1466a2eSSandrine Bailleuxendif 51