summaryrefslogtreecommitdiff
path: root/board/sifive/unmatched
diff options
context:
space:
mode:
authorZong Li <zong.li@sifive.com>2021-07-27 12:06:58 +0300
committerLeo Yu-Chi Liang <ycliang@andestech.com>2021-08-17 14:28:37 +0300
commit87e84818857db1d710002217eea66bb3596f5571 (patch)
tree0b73b2270c6f2c16368234afbf03c3d2467cb26d /board/sifive/unmatched
parent662e300bc060205a54c7c8ba34b19af53f87fa9c (diff)
downloadu-boot-87e84818857db1d710002217eea66bb3596f5571.tar.xz
board: sifive: compile stuff only related to SPL in SPL build
As (3581811dc26f "riscv: sifive/fu540: Move SPL related functions to spl.c"), we put the SPL stuff in spl.c, we don't need to compile unleashed.c and unmatched.c in SPL build. Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'board/sifive/unmatched')
-rw-r--r--board/sifive/unmatched/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/sifive/unmatched/Makefile b/board/sifive/unmatched/Makefile
index e00b330e8c..1345330089 100644
--- a/board/sifive/unmatched/Makefile
+++ b/board/sifive/unmatched/Makefile
@@ -2,9 +2,10 @@
#
# Copyright (c) 2020-2021 SiFive, Inc
-obj-y += unmatched.o
obj-$(CONFIG_ID_EEPROM) += hifive-platform-i2c-eeprom.o
ifdef CONFIG_SPL_BUILD
obj-y += spl.o
+else
+obj-y += unmatched.o
endif