]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: sifive: compile stuff only related to SPL in SPL build
authorZong Li <zong.li@sifive.com>
Tue, 27 Jul 2021 09:06:58 +0000 (17:06 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 17 Aug 2021 11:28:37 +0000 (19:28 +0800)
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>
board/sifive/unleashed/Makefile
board/sifive/unmatched/Makefile

index 5821679dd92a2d8527a8251a6e7b3b8d02370a56..98e9111cbcc55c5f7eeb1c3bcf9a3274bf85c715 100644 (file)
@@ -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
index e00b330e8cef7f247b8d8c826f0061104e5b9e95..13453300896af1418b7d1cf1bf2a5bd1c3890ff0 100644 (file)
@@ -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