xref: /rk3399_ARM-atf/lib/coreboot/coreboot.mk (revision 61f72a34250d063da67f4fc2b0eb8c3fda3376be)
1#
2# Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7COREBOOT := 0
8$(eval $(call assert_boolean,COREBOOT))
9$(eval $(call add_define,COREBOOT))
10
11ifeq (${COREBOOT},1)
12
13ifneq (${ARCH},aarch64)
14$(error "coreboot only supports Trusted Firmware on AArch64.")
15endif
16
17BL31_SOURCES	+=	$(addprefix lib/coreboot/,	\
18			coreboot_table.c)
19
20BL31_SOURCES	+=	drivers/coreboot/cbmem_console/${ARCH}/cbmem_console.S
21
22INCLUDES	+=	-Iinclude/drivers/coreboot
23
24endif	# COREBOOT
25