]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: omap3: fix LTO for DM3730 (and possibly other omap3 boards)
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:19 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
Adam Ford says that DM3730 needs board.c compiled without LTO flags.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Tested-by: Adam Ford <aford173@gmail.com>
arch/arm/mach-omap2/omap3/Makefile

index 91ed8ebc9f811f262ab0bf12c5f0a9f0b484972e..151bdf6ebc98ecccee4bb6d9911014fd417cd55d 100644 (file)
@@ -9,6 +9,7 @@ CFLAGS_clock.o += -marm
 obj-y  := lowlevel_init.o
 
 obj-y  += board.o
+CFLAGS_REMOVE_board.o := $(LTO_CFLAGS)
 obj-y  += boot.o
 obj-y  += clock.o
 obj-y  += sys_info.o