spl: separate SPL_FRAMEWORK config for spl and tpl
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Tue, 16 Jul 2019 08:12:02 +0000 (10:12 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 17 Nov 2019 09:22:53 +0000 (17:22 +0800)
commit22b7b860051d3f18cfd3bb9750b907174b3eee2b
tree6800fb8b1a2393dea8d3fdf605c04f243c8bcb94
parentbcfacab517e9632040c44ee30e84338b71fa0366
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>
arch/arm/lib/Makefile
arch/arm/lib/crt0.S
arch/arm/lib/crt0_64.S
arch/powerpc/lib/Makefile
common/spl/Kconfig
common/spl/Makefile
scripts/Makefile.spl