]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: fix LTO for seaboard
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:17 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commit9d3918f3fd3cf3b84043ba3490e428abceeabd3d
treecec82225b1b49f6b4a5006e5c0d99f761574bfd3
parente8bb990fe77009cef4ebdbacb763d66f84291a87
ARM: fix LTO for seaboard

When seaboard_defconfig is compiled with LTO, the compiler complains
about some instructions not being supported in ARM mode.

This is caused by arch/arm/mach-tegra/tegra20/warmboot_avp.c having
different CFLAGS declared in Makefile. This file needs to be compiled
without LTO.

Fix this by removing -flto for this file.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-tegra/tegra20/Makefile