xref: /rk3399_ARM-atf/bl32/tsp/tsp.mk (revision 6d55d109a31139c316b28b1b4b307a9f1ec0924d)
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
41*6d55d109SJon MedhurstBL32_SOURCES		+=	tsp_entrypoint.S		\
42*6d55d109SJon Medhurst				tsp_main.c			\
43*6d55d109SJon Medhurst				tsp_request.S			\
44*6d55d109SJon Medhurst				spinlock.S			\
45*6d55d109SJon Medhurst				early_exceptions.S
467c88f3f6SAchin Gupta
477c88f3f6SAchin GuptaBL32_ENTRY_POINT	:=	tsp_entrypoint
48*6d55d109SJon MedhurstBL32_LINKERFILE		:=	tsp.ld.S
497c88f3f6SAchin Gupta
507c88f3f6SAchin Guptavpath %.ld.S ${BL32_ROOT}
517c88f3f6SAchin Guptavpath %.c ${BL32_ROOT}
527c88f3f6SAchin Guptavpath %.c ${BL32_ROOT}/${ARCH}
537c88f3f6SAchin Guptavpath %.S ${BL32_ROOT}/${ARCH}
547c88f3f6SAchin Gupta
557c88f3f6SAchin Gupta# Include an optional platform-specific TSP Makefile
567c88f3f6SAchin Gupta-include bl32/tsp/tsp-${PLAT}.mk
57