ARM: rmobile: Shrink the TPL
Shrink the TPL by using tiny printf and tiny memset by default.
This removes the biggest symbol -- vsnprintf_internal -- from
the TPL and reduces the text segment by about 2 kiB.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
diff --git a/arch/arm/mach-rmobile/Kconfig.32 b/arch/arm/mach-rmobile/Kconfig.32
index 37e0cba..d5b00ef 100644
--- a/arch/arm/mach-rmobile/Kconfig.32
+++ b/arch/arm/mach-rmobile/Kconfig.32
@@ -73,6 +73,8 @@
select SUPPORT_TPL
select SUPPORT_SPL
select SPL_DM if SPL
+ select USE_TINY_PRINTF
+ select TPL_TINY_MEMSET
config TARGET_STOUT
bool "Stout board"
@@ -81,6 +83,8 @@
select SUPPORT_TPL
select SUPPORT_SPL
select SPL_DM if SPL
+ select USE_TINY_PRINTF
+ select TPL_TINY_MEMSET
endchoice
diff --git a/configs/porter_defconfig b/configs/porter_defconfig
index 3e0900e..3b79ac5 100644
--- a/configs/porter_defconfig
+++ b/configs/porter_defconfig
@@ -98,4 +98,3 @@
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y
-CONFIG_TPL_TINY_MEMSET=y
diff --git a/configs/stout_defconfig b/configs/stout_defconfig
index bc5c561..a839f55 100644
--- a/configs/stout_defconfig
+++ b/configs/stout_defconfig
@@ -98,4 +98,3 @@
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y
-CONFIG_TPL_TINY_MEMSET=y