Attention is currently required from: Raul Rangel, Stefan Reinauer, Julius Werner, Jacob Garber, Iru Cai, Elyes Haouas.
Paul Menzel uploaded patch set #15 to the change originally created by Jacob Garber.
arch,toolchain,xcompile: Use the compiler frontend as a linker
Code generation when using LTO is not done until after linking, so the
compiler must be invoked at all linking stages instead of the linker.
Replace $(LD) with $(CC), and prefix all linker-specific flags with -Wl
and replace the spaces by commas so they will be passed to the linker.
Pass CFLAGS_common to SMM targets, so `-m32` gets passed, results in
clang: error: argument unused during compilation: '-nostdinc' [-Werror,-Wunused-command-line-argument]
Pass CFLAGS_smm and CFLAGS_smmstub.
Change-Id: Ia551cf84c8f6eb3b010450fc572876a318a257d1
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
M Makefile.inc
M src/arch/arm/Makefile.inc
M src/arch/arm64/Makefile.inc
M src/arch/ppc64/Makefile.inc
M src/arch/riscv/Makefile.inc
M src/arch/x86/Makefile.inc
M src/cpu/x86/smm/Makefile.inc
M src/lib/Makefile.inc
M toolchain.inc
M util/xcompile/xcompile
10 files changed, 59 insertions(+), 37 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/40811/15
To view, visit change 40811. To unsubscribe, or for help writing mail filters, visit settings.