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 317c88f3f6SAchin Guptavpath %.c common \ 327c88f3f6SAchin Gupta lib \ 337c88f3f6SAchin Gupta plat/${PLAT} \ 347c88f3f6SAchin Gupta plat/${PLAT}/${ARCH} \ 357c88f3f6SAchin Gupta arch/${ARCH} 367c88f3f6SAchin Gupta 377c88f3f6SAchin Guptavpath %.S lib/arch/${ARCH} \ 387c88f3f6SAchin Gupta include \ 397c88f3f6SAchin Gupta lib/sync/locks/exclusive 407c88f3f6SAchin Gupta 416d55d109SJon MedhurstBL32_SOURCES += tsp_entrypoint.S \ 426d55d109SJon Medhurst tsp_main.c \ 436d55d109SJon Medhurst tsp_request.S \ 446d55d109SJon Medhurst spinlock.S \ 456d55d109SJon Medhurst early_exceptions.S 467c88f3f6SAchin Gupta 476d55d109SJon MedhurstBL32_LINKERFILE := tsp.ld.S 487c88f3f6SAchin Gupta 497c88f3f6SAchin Guptavpath %.ld.S ${BL32_ROOT} 507c88f3f6SAchin Guptavpath %.c ${BL32_ROOT} 517c88f3f6SAchin Guptavpath %.c ${BL32_ROOT}/${ARCH} 527c88f3f6SAchin Guptavpath %.S ${BL32_ROOT}/${ARCH} 537c88f3f6SAchin Gupta 54*d1466a2eSSandrine Bailleux# Include the platform-specific TSP Makefile 55*d1466a2eSSandrine Bailleux# If no platform-specific TSP Makefile exists, it means TSP is not supported 56*d1466a2eSSandrine Bailleux# on this platform. 57*d1466a2eSSandrine BailleuxTSP_PLAT_MAKEFILE := bl32/tsp/tsp-${PLAT}.mk 58*d1466a2eSSandrine Bailleuxifeq (,$(wildcard ${TSP_PLAT_MAKEFILE})) 59*d1466a2eSSandrine Bailleux $(error TSP is not supported on platform ${PLAT}) 60*d1466a2eSSandrine Bailleuxelse 61*d1466a2eSSandrine Bailleux include ${TSP_PLAT_MAKEFILE} 62*d1466a2eSSandrine Bailleuxendif 63