mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-24 13:40:24 +09:00
c87f9ce227
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>
27 lines
446 B
Makefile
27 lines
446 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright 2019 Google LLC
|
|
|
|
obj-$(CONFIG_SPL_BUILD) += cpu_spl.o
|
|
obj-$(CONFIG_SPL_BUILD) += systemagent.o
|
|
obj-y += cpu_common.o
|
|
|
|
ifndef CONFIG_TPL_BUILD
|
|
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
|
|
ifndef CONFIG_SPL_BUILD
|
|
obj-y += fsp_s.o
|
|
endif
|
|
|
|
obj-y += hostbridge.o
|
|
obj-y += lpc.o
|
|
obj-y += pch.o
|
|
obj-y += pmc.o
|
|
obj-y += uart.o
|