diff mbox series

[U-Boot,v3,1/2] sunxi: Enable THUMB build for the U-Boot binary

Message ID 20171020121614.9863-2-maxime.ripard@free-electrons.com
State Accepted
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series sunxi: Fix boot of Cubietruk and al. | expand

Commit Message

Maxime Ripard Oct. 20, 2017, 12:16 p.m. UTC
We start to get to the limit of our main U-Boot binary size (with some
boards even crossing it). Enable its build using thumb2 to get some extra
room.

Suggested-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Andre Przywara Oct. 21, 2017, 9:24 p.m. UTC | #1
On 20/10/17 13:16, Maxime Ripard wrote:
> We start to get to the limit of our main U-Boot binary size (with some
> boards even crossing it). Enable its build using thumb2 to get some extra
> room.
> 
> Suggested-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

I quickly boot tested this on an OrangePi Zero and a BananaPi-M1, also
Pine64 (fwiw).
Also buildman was happy (with the whole series) on all 123 sunxi boards
(ignoring the warnings a new dtc pops up on the 64-bit boards).

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>

Thanks!
Andre

> ---
>  arch/arm/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 64e0ee43f112..83b7aa51dc2c 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -698,6 +698,7 @@ config ARCH_SUNXI
>  	select SPL_SYS_MALLOC_SIMPLE if SPL
>  	select SYS_NS16550
>  	select SPL_SYS_THUMB_BUILD if !ARM64
> +	select SYS_THUMB_BUILD if !ARM64
>  	select USB if DISTRO_DEFAULTS
>  	select USB_STORAGE if DISTRO_DEFAULTS
>  	select USB_KEYBOARD if DISTRO_DEFAULTS
>
diff mbox series

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 64e0ee43f112..83b7aa51dc2c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -698,6 +698,7 @@  config ARCH_SUNXI
 	select SPL_SYS_MALLOC_SIMPLE if SPL
 	select SYS_NS16550
 	select SPL_SYS_THUMB_BUILD if !ARM64
+	select SYS_THUMB_BUILD if !ARM64
 	select USB if DISTRO_DEFAULTS
 	select USB_STORAGE if DISTRO_DEFAULTS
 	select USB_KEYBOARD if DISTRO_DEFAULTS