diff options
author | Tom Rini <trini@konsulko.com> | 2020-06-26 17:40:06 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-29 13:34:43 -0400 |
commit | c87f9ce227380f19ca32d7523269194e1c6348c6 (patch) | |
tree | 22b3665451477571cbf6dfef92df548fb50e52bd /arch/x86/cpu/apollolake/Makefile | |
parent | 8f74e659c42e419cb896e171f00b77023bd35054 (diff) |
x86: Don't build some unused objects in TPL
In the future if we have separate symbols for DM_SPI_FLASH and
SPL_DM_SPI_FLASH we will not always have function declarations available
for some DM calls. This in turn leads to build warnings but not
failures as the code isn't used and is discarded at link time.
Restructure things to not build code we won't use for TPL anyways.
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/x86/cpu/apollolake/Makefile')
-rw-r--r-- | arch/x86/cpu/apollolake/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/apollolake/Makefile b/arch/x86/cpu/apollolake/Makefile index 3aa2a55676..11621256ae 100644 --- a/arch/x86/cpu/apollolake/Makefile +++ b/arch/x86/cpu/apollolake/Makefile @@ -3,7 +3,6 @@ # Copyright 2019 Google LLC obj-$(CONFIG_SPL_BUILD) += cpu_spl.o -obj-$(CONFIG_SPL_BUILD) += spl.o obj-$(CONFIG_SPL_BUILD) += systemagent.o obj-y += cpu_common.o @@ -12,6 +11,7 @@ obj-y += cpu.o obj-y += punit.o obj-y += fsp_bindings.o ifdef CONFIG_SPL_BUILD +obj-y += spl.o obj-y += fsp_m.o endif endif |