Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2451857f authored by Sami Tolvanen's avatar Sami Tolvanen
Browse files

FROMLIST: efi/libstub: disable LTO

With CONFIG_LTO_CLANG, we produce LLVM IR instead of object files. Since LTO
is not really needed here and the Makefile assumes we produce an object file,
disable LTO for libstub.

Bug: 62093296
Bug: 67506682
Change-Id: Ieaa3d7e2c694655788f480f4351bf7c4d3fce090
(am from https://patchwork.kernel.org/patch/10060309/

)
Acked-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 633a38f0
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,8 @@ cflags-$(CONFIG_EFI_ARMSTUB) += -I$(srctree)/scripts/dtc/libfdt


KBUILD_CFLAGS			:= $(cflags-y) -DDISABLE_BRANCH_PROFILING \
KBUILD_CFLAGS			:= $(cflags-y) -DDISABLE_BRANCH_PROFILING \
				   $(call cc-option,-ffreestanding) \
				   $(call cc-option,-ffreestanding) \
				   $(call cc-option,-fno-stack-protector)
				   $(call cc-option,-fno-stack-protector) \
				   $(DISABLE_LTO)


GCOV_PROFILE			:= n
GCOV_PROFILE			:= n
KASAN_SANITIZE			:= n
KASAN_SANITIZE			:= n