xref: /arm-trusted-firmware/lib/coreboot/coreboot.mk (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu#
2*91f16700Schasinglulu# Copyright (c) 2017, Arm Limited and Contributors. All rights reserved.
3*91f16700Schasinglulu#
4*91f16700Schasinglulu# SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu#
6*91f16700Schasinglulu
7*91f16700SchasingluluCOREBOOT := 0
8*91f16700Schasinglulu$(eval $(call assert_boolean,COREBOOT))
9*91f16700Schasinglulu$(eval $(call add_define,COREBOOT))
10*91f16700Schasinglulu
11*91f16700Schasingluluifeq (${COREBOOT},1)
12*91f16700Schasinglulu
13*91f16700Schasingluluifneq (${ARCH},aarch64)
14*91f16700Schasinglulu$(error "coreboot only supports Trusted Firmware on AArch64.")
15*91f16700Schasingluluendif
16*91f16700Schasinglulu
17*91f16700SchasingluluBL31_SOURCES	+=	$(addprefix lib/coreboot/,	\
18*91f16700Schasinglulu			coreboot_table.c)
19*91f16700Schasinglulu
20*91f16700SchasingluluBL31_SOURCES	+=	drivers/coreboot/cbmem_console/${ARCH}/cbmem_console.S
21*91f16700Schasinglulu
22*91f16700Schasingluluendif	# COREBOOT
23