mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 09:48:16 +00:00
22b7b86005
Right now enabling SPL_FRAMEWORK will also enable it for the TPL in all cases, making the TPL bigger. There may be cases where the TPL is really size constrained due to its underlying ram size. Therefore introduce a new TPL_FRAMEWORK option and make the relevant conditionals check for both. The default is set to "y if SPL_FRAMEWORK" to mimic the previous behaviour where the TPL would always get the SPL framework if it was enabled in SPL. Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
45 lines
844 B
Makefile
45 lines
844 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2000-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
## Build a couple of necessary functions into a private libgcc
|
|
## if the user asked for it
|
|
lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
|
|
|
|
MINIMAL=
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
ifdef CONFIG_SPL_INIT_MINIMAL
|
|
MINIMAL=y
|
|
endif
|
|
endif
|
|
|
|
ifdef MINIMAL
|
|
obj-y += cache.o time.o
|
|
ifndef CONFIG_TIMER
|
|
obj-y += ticks.o
|
|
endif
|
|
else
|
|
|
|
obj-y += ppcstring.o
|
|
|
|
obj-y += ppccache.o
|
|
ifndef CONFIG_TIMER
|
|
obj-y += ticks.o
|
|
endif
|
|
obj-y += reloc.o
|
|
|
|
obj-$(CONFIG_BAT_RW) += bat_rw.o
|
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
|
obj-y += cache.o
|
|
obj-y += extable.o
|
|
obj-y += interrupts.o
|
|
obj-$(CONFIG_CMD_KGDB) += kgdb.o
|
|
obj-y += stack.o
|
|
obj-y += time.o
|
|
endif # not minimal
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o
|
|
endif
|