Commit 87e84818 authored by Zong Li's avatar Zong Li Committed by Leo Yu-Chi Liang
Browse files

board: sifive: compile stuff only related to SPL in SPL build

As (3581811d

 "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: default avatarZong Li <zong.li@sifive.com>
Reviewed-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
parent 662e300b
......@@ -2,8 +2,8 @@
#
# Copyright (c) 2019 Western Digital Corporation or its affiliates.
obj-y += unleashed.o
ifdef CONFIG_SPL_BUILD
obj-y += spl.o
else
obj-y += unleashed.o
endif
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment