diff options
author | Heiko Stuebner <heiko.stuebner@theobroma-systems.com> | 2019-07-16 11:12:02 +0300 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-11-17 12:22:53 +0300 |
commit | 22b7b860051d3f18cfd3bb9750b907174b3eee2b (patch) | |
tree | 6800fb8b1a2393dea8d3fdf605c04f243c8bcb94 /scripts | |
parent | bcfacab517e9632040c44ee30e84338b71fa0366 (diff) | |
download | u-boot-22b7b860051d3f18cfd3bb9750b907174b3eee2b.tar.xz |
spl: separate SPL_FRAMEWORK config for spl and tpl
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.spl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index f8ce7da2d2..314b02ba07 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -71,7 +71,11 @@ HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makef libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/) libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/ +ifeq ($(CONFIG_TPL_BUILD),y) +libs-$(CONFIG_TPL_FRAMEWORK) += common/spl/ +else libs-$(CONFIG_SPL_FRAMEWORK) += common/spl/ +endif libs-y += common/init/ # Special handling for a few options which support SPL/TPL |