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