From 2cf9990ec8776d5a514e188144c57ee42428e815 Mon Sep 17 00:00:00 2001 From: Philipp Hug Date: Mon, 10 Sep 2018 19:32:23 +0200 Subject: [PATCH] soc/sifive/fu540: Makefile: include mtime_init in ramstage Fix compilation issue clint.c/mtime.c is needed as well in ramstage due to CR 28372 and 28355 Change-Id: I7c7768744a165b97978bb8f7f95acf7b32ca4aa4 Signed-off-by: Philipp Hug Reviewed-on: https://review.coreboot.org/28551 Tested-by: Patrick Georgi Reviewed-by: Patrick Georgi --- src/soc/lowrisc/lowrisc/Makefile.inc | 1 + src/soc/sifive/fu540/Makefile.inc | 1 + src/soc/ucb/riscv/Makefile.inc | 1 + 3 files changed, 3 insertions(+) diff --git a/src/soc/lowrisc/lowrisc/Makefile.inc b/src/soc/lowrisc/lowrisc/Makefile.inc index 9fc52da776..ccd9a16945 100644 --- a/src/soc/lowrisc/lowrisc/Makefile.inc +++ b/src/soc/lowrisc/lowrisc/Makefile.inc @@ -3,5 +3,6 @@ ifeq ($(CONFIG_SOC_LOWRISC_LOWRISC),y) bootblock-y += mtime.c romstage-y += cbmem.c ramstage-y += cbmem.c +ramstage-y += mtime.c endif diff --git a/src/soc/sifive/fu540/Makefile.inc b/src/soc/sifive/fu540/Makefile.inc index 12b814a6f7..b991783b6c 100644 --- a/src/soc/sifive/fu540/Makefile.inc +++ b/src/soc/sifive/fu540/Makefile.inc @@ -24,6 +24,7 @@ romstage-y += sdram.c romstage-y += otp.c ramstage-y += uart.c +ramstage-y += clint.c ramstage-y += media.c ramstage-y += sdram.c ramstage-y += cbmem.c diff --git a/src/soc/ucb/riscv/Makefile.inc b/src/soc/ucb/riscv/Makefile.inc index 16225c0968..a10f3aae4c 100644 --- a/src/soc/ucb/riscv/Makefile.inc +++ b/src/soc/ucb/riscv/Makefile.inc @@ -3,5 +3,6 @@ ifeq ($(CONFIG_SOC_UCB_RISCV),y) bootblock-y += mtime.c romstage-y += cbmem.c ramstage-y += cbmem.c +ramstage-y += mtime.c endif