]> Git Repo - u-boot.git/commit
sunxi: disable Pine A64 model detection code on other boards
authorIcenowy Zheng <[email protected]>
Thu, 25 Oct 2018 09:23:02 +0000 (17:23 +0800)
committerJagan Teki <[email protected]>
Mon, 29 Oct 2018 15:11:07 +0000 (20:41 +0530)
commitc6c2c85e4b980cba54b34a55399f9b82ae2787ea
tree2167e1a16334560f6af3aa1a1eee9a7bc7febaa3
parent3d99a0b33a16c9330a5bf5b3f8561f45d0e6ed80
sunxi: disable Pine A64 model detection code on other boards

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 <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
arch/arm/mach-sunxi/Kconfig
board/sunxi/board.c
configs/pine64_plus_defconfig
This page took 0.039218 seconds and 4 git commands to generate.