[U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb

2019-11-10 Thread Adam Ford
SPL has limited available resources, and the performance between
ARM and Thumb isn't that significant.

This patch builds using Thumb instruction set to reduce the code
size by nearly 6K.

Original:
   textdata bss dec hex filename
  2652640041376   319067ca2 spl/u-boot-spl

Thumb:

   textdata bss dec hex filename
  2023240041376   25612640c spl/u-boot-spl

Signed-off-by: Adam Ford 

diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
index 9821df9884..16287a4ac2 100644
--- a/configs/omapl138_lcdk_defconfig
+++ b/configs/omapl138_lcdk_defconfig
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_SYS_THUMB_BUILD=y
 CONFIG_ARCH_DAVINCI=y
 CONFIG_SYS_TEXT_BASE=0xc108
 CONFIG_TARGET_OMAPL138_LCDK=y
-- 
2.20.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb

2019-12-05 Thread Tom Rini
On Sun, Nov 10, 2019 at 06:33:40AM -0600, Adam Ford wrote:

> SPL has limited available resources, and the performance between
> ARM and Thumb isn't that significant.
> 
> This patch builds using Thumb instruction set to reduce the code
> size by nearly 6K.
> 
> Original:
>text  data bss dec hex filename
>   26526  40041376   319067ca2 spl/u-boot-spl
> 
> Thumb:
> 
>text  data bss dec hex filename
>   20232  40041376   25612640c spl/u-boot-spl
> 
> Signed-off-by: Adam Ford 
> Tested-by: Bartosz Golaszewski 
> Reviewed-by: Bartosz Golaszewski 
> 
> diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
> index 9821df9884..16287a4ac2 100644

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Re: [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb

2019-11-13 Thread Bartosz Golaszewski
niedz., 10 lis 2019 o 13:33 Adam Ford  napisaƂ(a):
>
> SPL has limited available resources, and the performance between
> ARM and Thumb isn't that significant.
>
> This patch builds using Thumb instruction set to reduce the code
> size by nearly 6K.
>
> Original:
>textdata bss dec hex filename
>   2652640041376   319067ca2 spl/u-boot-spl
>
> Thumb:
>
>textdata bss dec hex filename
>   2023240041376   25612640c spl/u-boot-spl
>
> Signed-off-by: Adam Ford 
>
> diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
> index 9821df9884..16287a4ac2 100644
> --- a/configs/omapl138_lcdk_defconfig
> +++ b/configs/omapl138_lcdk_defconfig
> @@ -1,4 +1,5 @@
>  CONFIG_ARM=y
> +CONFIG_SYS_THUMB_BUILD=y
>  CONFIG_ARCH_DAVINCI=y
>  CONFIG_SYS_TEXT_BASE=0xc108
>  CONFIG_TARGET_OMAPL138_LCDK=y
> --
> 2.20.1
>

Tested-by: Bartosz Golaszewski 
Reviewed-by: Bartosz Golaszewski 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot