xref: /rk3399_ARM-atf/services/spd/tspd/tspd.mk (revision 375f538a797a89a5f49aab1be70e86df4511c05a)
1*375f538aSAchin Gupta#
2*375f538aSAchin Gupta# Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved.
3*375f538aSAchin Gupta#
4*375f538aSAchin Gupta# Redistribution and use in source and binary forms, with or without
5*375f538aSAchin Gupta# modification, are permitted provided that the following conditions are met:
6*375f538aSAchin Gupta#
7*375f538aSAchin Gupta# Redistributions of source code must retain the above copyright notice, this
8*375f538aSAchin Gupta# list of conditions and the following disclaimer.
9*375f538aSAchin Gupta#
10*375f538aSAchin Gupta# Redistributions in binary form must reproduce the above copyright notice,
11*375f538aSAchin Gupta# this list of conditions and the following disclaimer in the documentation
12*375f538aSAchin Gupta# and/or other materials provided with the distribution.
13*375f538aSAchin Gupta#
14*375f538aSAchin Gupta# Neither the name of ARM nor the names of its contributors may be used
15*375f538aSAchin Gupta# to endorse or promote products derived from this software without specific
16*375f538aSAchin Gupta# prior written permission.
17*375f538aSAchin Gupta#
18*375f538aSAchin Gupta# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19*375f538aSAchin Gupta# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*375f538aSAchin Gupta# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*375f538aSAchin Gupta# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22*375f538aSAchin Gupta# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*375f538aSAchin Gupta# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*375f538aSAchin Gupta# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*375f538aSAchin Gupta# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*375f538aSAchin Gupta# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*375f538aSAchin Gupta# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*375f538aSAchin Gupta# POSSIBILITY OF SUCH DAMAGE.
29*375f538aSAchin Gupta#
30*375f538aSAchin Gupta
31*375f538aSAchin GuptaTSPD_DIR		:=	services/spd/tspd
32*375f538aSAchin GuptaSPD_INCLUDES		:=	-Iinclude/spd/tspd	\
33*375f538aSAchin Gupta				-I${TSPD_DIR}
34*375f538aSAchin Gupta
35*375f538aSAchin GuptaSPD_OBJS		:=	tspd_common.o		\
36*375f538aSAchin Gupta				tspd_main.o		\
37*375f538aSAchin Gupta				tspd_helpers.o
38*375f538aSAchin Gupta
39*375f538aSAchin Guptavpath %.c ${TSPD_DIR}
40*375f538aSAchin Guptavpath %.S ${TSPD_DIR}
41*375f538aSAchin Gupta
42*375f538aSAchin Gupta# This dispatcher is paired with a Test Secure Payload source and we intend to
43*375f538aSAchin Gupta# build the Test Secure Payload along with this dispatcher.
44*375f538aSAchin Gupta#
45*375f538aSAchin Gupta# In cases where an associated Secure Payload lies outside this build
46*375f538aSAchin Gupta# system/source tree, the the dispatcher Makefile can either invoke an external
47*375f538aSAchin Gupta# build command or assume it pre-built
48*375f538aSAchin Gupta
49*375f538aSAchin GuptaBL32_ROOT		:=	bl32/tsp
50*375f538aSAchin Gupta
51*375f538aSAchin Gupta# Include SP's Makefile. The assumption is that the TSP's build system is
52*375f538aSAchin Gupta# compatible with that of Trusted Firmware, and it'll add and populate necessary
53*375f538aSAchin Gupta# build targets and variables
54*375f538aSAchin Guptainclude ${BL32_ROOT}/tsp.mk
55*375f538aSAchin Gupta
56*375f538aSAchin Gupta# Let the top-level Makefile know that we intend to build the SP from source
57*375f538aSAchin GuptaNEED_BL32		:=	yes
58