[U-Boot] [linux-sunxi] [PATCH v2 1/6] sunxi: disable Pine A64 model detection code on other boards

Jagan Teki jagan at amarulasolutions.com
Fri Oct 26 05:56:53 UTC 2018


On Thu, Oct 25, 2018 at 2:53 PM Icenowy Zheng <icenowy at aosc.io> wrote:
>
> The Pine A64 Plus/non-Plus model detection code is now built on all
> 64-bit ARM SoCs, even if the code cannot be triggered when H5/H6 is in
> use.
>
> Disable them when the board is Pine A64 by adding a Kconfig option that
> is only selected on Pine A64.
>
> On GCC 7.3.1 this makes the size of the function reduces 184 bytes, and
> saves a 104 byte strstr() function, then makes SPL on H6 succeed to
> build.
>
> Signed-off-by: Icenowy Zheng <icenowy at aosc.io>
> ---

Reviewed-by: Jagan Teki <jagan at openedev.com>

Applied to u-boot-sunxi/master


More information about the U-Boot mailing list