xref: /rk3399_ARM-atf/bl32/tsp/tsp.mk (revision 7c88f3f633288856dd691dfda222e60092e4dab9)
1*7c88f3f6SAchin Gupta#
2*7c88f3f6SAchin Gupta# Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved.
3*7c88f3f6SAchin Gupta#
4*7c88f3f6SAchin Gupta# Redistribution and use in source and binary forms, with or without
5*7c88f3f6SAchin Gupta# modification, are permitted provided that the following conditions are met:
6*7c88f3f6SAchin Gupta#
7*7c88f3f6SAchin Gupta# Redistributions of source code must retain the above copyright notice, this
8*7c88f3f6SAchin Gupta# list of conditions and the following disclaimer.
9*7c88f3f6SAchin Gupta#
10*7c88f3f6SAchin Gupta# Redistributions in binary form must reproduce the above copyright notice,
11*7c88f3f6SAchin Gupta# this list of conditions and the following disclaimer in the documentation
12*7c88f3f6SAchin Gupta# and/or other materials provided with the distribution.
13*7c88f3f6SAchin Gupta#
14*7c88f3f6SAchin Gupta# Neither the name of ARM nor the names of its contributors may be used
15*7c88f3f6SAchin Gupta# to endorse or promote products derived from this software without specific
16*7c88f3f6SAchin Gupta# prior written permission.
17*7c88f3f6SAchin Gupta#
18*7c88f3f6SAchin Gupta# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19*7c88f3f6SAchin Gupta# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*7c88f3f6SAchin Gupta# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*7c88f3f6SAchin Gupta# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22*7c88f3f6SAchin Gupta# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*7c88f3f6SAchin Gupta# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*7c88f3f6SAchin Gupta# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*7c88f3f6SAchin Gupta# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*7c88f3f6SAchin Gupta# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*7c88f3f6SAchin Gupta# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*7c88f3f6SAchin Gupta# POSSIBILITY OF SUCH DAMAGE.
29*7c88f3f6SAchin Gupta#
30*7c88f3f6SAchin Gupta
31*7c88f3f6SAchin Guptavpath			%.c	common				\
32*7c88f3f6SAchin Gupta				lib				\
33*7c88f3f6SAchin Gupta				plat/${PLAT}			\
34*7c88f3f6SAchin Gupta				plat/${PLAT}/${ARCH}		\
35*7c88f3f6SAchin Gupta				arch/${ARCH}
36*7c88f3f6SAchin Gupta
37*7c88f3f6SAchin Guptavpath			%.S	lib/arch/${ARCH}		\
38*7c88f3f6SAchin Gupta				include				\
39*7c88f3f6SAchin Gupta				lib/sync/locks/exclusive
40*7c88f3f6SAchin Gupta
41*7c88f3f6SAchin GuptaBL32_OBJS		+=	tsp_entrypoint.o		\
42*7c88f3f6SAchin Gupta				tsp_main.o			\
43*7c88f3f6SAchin Gupta				tsp_request.o			\
44*7c88f3f6SAchin Gupta				spinlock.o			\
45*7c88f3f6SAchin Gupta				early_exceptions.o
46*7c88f3f6SAchin Gupta
47*7c88f3f6SAchin GuptaBL32_ENTRY_POINT	:=	tsp_entrypoint
48*7c88f3f6SAchin GuptaBL32_MAPFILE		:=	tsp.map
49*7c88f3f6SAchin GuptaBL32_LINKERFILE		:=	tsp.ld
50*7c88f3f6SAchin Gupta
51*7c88f3f6SAchin Guptavpath %.ld.S ${BL32_ROOT}
52*7c88f3f6SAchin Guptavpath %.c ${BL32_ROOT}
53*7c88f3f6SAchin Guptavpath %.c ${BL32_ROOT}/${ARCH}
54*7c88f3f6SAchin Guptavpath %.S ${BL32_ROOT}/${ARCH}
55*7c88f3f6SAchin Gupta
56*7c88f3f6SAchin Gupta# Include an optional platform-specific TSP Makefile
57*7c88f3f6SAchin Gupta-include bl32/tsp/tsp-${PLAT}.mk
58