x86: Don't build some unused objects in TPL
authorTom Rini <trini@konsulko.com>
Fri, 26 Jun 2020 21:40:06 +0000 (17:40 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jun 2020 17:34:43 +0000 (13:34 -0400)
commitc87f9ce227380f19ca32d7523269194e1c6348c6
tree22b3665451477571cbf6dfef92df548fb50e52bd
parent8f74e659c42e419cb896e171f00b77023bd35054
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>
arch/x86/cpu/apollolake/Makefile
arch/x86/lib/Makefile