@ -373,6 +373,55 @@ CRTTOOL ?= ${CRTTOOLPATH}/cert_create${BIN_EXT}
FIPTOOLPATH ?= tools/fiptool
FIPTOOL ?= ${ FIPTOOLPATH } /fiptool${ BIN_EXT }
################################################################################
# Include BL specific makefiles
################################################################################
i f d e f B L 1 _ S O U R C E S
NEED_BL1 := yes
i n c l u d e b l 1 / b l 1 . m k
e n d i f
i f d e f B L 2 _ S O U R C E S
NEED_BL2 := yes
i n c l u d e b l 2 / b l 2 . m k
e n d i f
# For AArch32, BL31 is not applicable, and BL2U is not supported at present.
i f n e q ( $ { A R C H } , a a r c h 3 2 )
i f d e f B L 2 U _ S O U R C E S
NEED_BL2U := yes
i n c l u d e b l 2 u / b l 2 u . m k
e n d i f
i f d e f B L 3 1 _ S O U R C E S
# When booting an EL3 payload, there is no need to compile the BL31 image nor
# put it in the FIP.
i f n d e f E L 3 _ P A Y L O A D _ B A S E
NEED_BL31 := yes
i n c l u d e b l 3 1 / b l 3 1 . m k
e n d i f
e n d i f
e n d i f
i f e q ( $ { A R C H } , a a r c h 3 2 )
NEED_BL32 := yes
################################################################################
# Build `AARCH32_SP` as BL32 image for AArch32
################################################################################
i f n e q ( $ { A A R C H 3 2 _ S P } , n o n e )
# We expect to locate an sp.mk under the specified AARCH32_SP directory
AARCH32_SP_MAKE := $( wildcard bl32/${ AARCH32_SP } /${ AARCH32_SP } .mk)
i f e q ( $ { A A R C H 3 2 _ S P _ M A K E } , )
$( error Error: No bl32/${ AARCH32_SP } /${ AARCH32_SP } .mk located)
e n d i f
$( info Including $ {AARCH 32_SP_MAKE })
i n c l u d e $ { A A R C H 3 2 _ S P _ M A K E }
e n d i f
e n d i f
################################################################################
# Build options checks
@ -458,56 +507,6 @@ else
$( eval $( call add_define,AARCH64) )
e n d i f
################################################################################
# Include BL specific makefiles
################################################################################
i f d e f B L 1 _ S O U R C E S
NEED_BL1 := yes
i n c l u d e b l 1 / b l 1 . m k
e n d i f
i f d e f B L 2 _ S O U R C E S
NEED_BL2 := yes
i n c l u d e b l 2 / b l 2 . m k
e n d i f
# For AArch32, BL31 is not applicable, and BL2U is not supported at present.
i f n e q ( $ { A R C H } , a a r c h 3 2 )
i f d e f B L 2 U _ S O U R C E S
NEED_BL2U := yes
i n c l u d e b l 2 u / b l 2 u . m k
e n d i f
i f d e f B L 3 1 _ S O U R C E S
# When booting an EL3 payload, there is no need to compile the BL31 image nor
# put it in the FIP.
i f n d e f E L 3 _ P A Y L O A D _ B A S E
NEED_BL31 := yes
i n c l u d e b l 3 1 / b l 3 1 . m k
e n d i f
e n d i f
e n d i f
i f e q ( $ { A R C H } , a a r c h 3 2 )
NEED_BL32 := yes
################################################################################
# Build `AARCH32_SP` as BL32 image for AArch32
################################################################################
i f n e q ( $ { A A R C H 3 2 _ S P } , n o n e )
# We expect to locate an sp.mk under the specified AARCH32_SP directory
AARCH32_SP_MAKE := $( wildcard bl32/${ AARCH32_SP } /${ AARCH32_SP } .mk)
i f e q ( $ { A A R C H 3 2 _ S P _ M A K E } , )
$( error Error: No bl32/${ AARCH32_SP } /${ AARCH32_SP } .mk located)
e n d i f
$( info Including $ {AARCH 32_SP_MAKE })
i n c l u d e $ { A A R C H 3 2 _ S P _ M A K E }
e n d i f
e n d i f
################################################################################
# Build targets
################################################################################