All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: rmobile: Shrink the TPL
@ 2018-04-13 18:36 Marek Vasut
  0 siblings, 0 replies; only message in thread
From: Marek Vasut @ 2018-04-13 18:36 UTC (permalink / raw)
  To: u-boot

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>
---
 arch/arm/mach-rmobile/Kconfig.32 | 4 ++++
 configs/porter_defconfig         | 1 -
 configs/stout_defconfig          | 1 -
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-rmobile/Kconfig.32 b/arch/arm/mach-rmobile/Kconfig.32
index 37e0cbab79..d5b00ef379 100644
--- a/arch/arm/mach-rmobile/Kconfig.32
+++ b/arch/arm/mach-rmobile/Kconfig.32
@@ -73,6 +73,8 @@ config TARGET_PORTER
 	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 @@ config TARGET_STOUT
 	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 3e0900e840..3b79ac5e27 100644
--- a/configs/porter_defconfig
+++ b/configs/porter_defconfig
@@ -98,4 +98,3 @@ CONFIG_DM_USB=y
 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 bc5c561c21..a839f55ed7 100644
--- a/configs/stout_defconfig
+++ b/configs/stout_defconfig
@@ -98,4 +98,3 @@ CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
-CONFIG_TPL_TINY_MEMSET=y
-- 
2.16.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-13 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-13 18:36 [U-Boot] [PATCH] ARM: rmobile: Shrink the TPL Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.