xref: /rk3399_ARM-atf/bl2/bl2.mk (revision 4f6ad66ae9fcc8bcb3b0fcee10b7ab1ffcaf1a56)
1*4f6ad66aSAchin Gupta#
2*4f6ad66aSAchin Gupta# Copyright (c) 2013, ARM Limited. All rights reserved.
3*4f6ad66aSAchin Gupta#
4*4f6ad66aSAchin Gupta# Redistribution and use in source and binary forms, with or without
5*4f6ad66aSAchin Gupta# modification, are permitted provided that the following conditions are met:
6*4f6ad66aSAchin Gupta#
7*4f6ad66aSAchin Gupta# Redistributions of source code must retain the above copyright notice, this
8*4f6ad66aSAchin Gupta# list of conditions and the following disclaimer.
9*4f6ad66aSAchin Gupta#
10*4f6ad66aSAchin Gupta# Redistributions in binary form must reproduce the above copyright notice,
11*4f6ad66aSAchin Gupta# this list of conditions and the following disclaimer in the documentation
12*4f6ad66aSAchin Gupta# and/or other materials provided with the distribution.
13*4f6ad66aSAchin Gupta#
14*4f6ad66aSAchin Gupta# Neither the name of ARM nor the names of its contributors may be used
15*4f6ad66aSAchin Gupta# to endorse or promote products derived from this software without specific
16*4f6ad66aSAchin Gupta# prior written permission.
17*4f6ad66aSAchin Gupta#
18*4f6ad66aSAchin Gupta# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19*4f6ad66aSAchin Gupta# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*4f6ad66aSAchin Gupta# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*4f6ad66aSAchin Gupta# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22*4f6ad66aSAchin Gupta# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*4f6ad66aSAchin Gupta# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*4f6ad66aSAchin Gupta# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*4f6ad66aSAchin Gupta# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*4f6ad66aSAchin Gupta# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*4f6ad66aSAchin Gupta# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*4f6ad66aSAchin Gupta# POSSIBILITY OF SUCH DAMAGE.
29*4f6ad66aSAchin Gupta#
30*4f6ad66aSAchin Gupta
31*4f6ad66aSAchin Guptavpath			%.c	common/ drivers/arm/interconnect/cci-400/		\
32*4f6ad66aSAchin Gupta				drivers/arm/peripherals/pl011 common/ lib/ 		\
33*4f6ad66aSAchin Gupta				plat/fvp plat/fvp/${ARCH} lib/semihosting arch/aarch64/	\
34*4f6ad66aSAchin Gupta				lib/non-semihosting
35*4f6ad66aSAchin Gupta
36*4f6ad66aSAchin Guptavpath			%.S	lib/arch/aarch64					\
37*4f6ad66aSAchin Gupta				lib/semihosting/aarch64					\
38*4f6ad66aSAchin Gupta				include lib/sync/locks/exclusive
39*4f6ad66aSAchin Gupta
40*4f6ad66aSAchin GuptaBL2_ASM_OBJS		:=	bl2_entrypoint.o spinlock.o
41*4f6ad66aSAchin GuptaBL2_C_OBJS		:=	bl2_main.o bl2_plat_setup.o bl2_arch_setup.o fvp_common.o	\
42*4f6ad66aSAchin Gupta				early_exceptions.o
43*4f6ad66aSAchin GuptaBL2_ENTRY_POINT		:=	bl2_entrypoint
44*4f6ad66aSAchin GuptaBL2_MAPFILE		:=	bl2.map
45*4f6ad66aSAchin GuptaBL2_LINKERFILE		:=	bl2.ld
46*4f6ad66aSAchin Gupta
47*4f6ad66aSAchin GuptaBL2_OBJS		:= 	$(BL2_C_OBJS) $(BL2_ASM_OBJS)
48*4f6ad66aSAchin GuptaCFLAGS		        += 	$(DEFINES)
49