Attention is currently required from: ron minnich.
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/78447?usp=email )
Change subject: arch/ppc64/Makefile.inc: Add -target to CPP .ld files with clang ......................................................................
arch/ppc64/Makefile.inc: Add -target to CPP .ld files with clang
Clang needs to know the target to be able to preprocess the linker script.
Signed-off-by: Arthur Heymans arthur@aheymans.xyz Change-Id: I17db3071415b298be88a613051296bf6a1081820 --- M src/arch/ppc64/Makefile.inc 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/78447/1
diff --git a/src/arch/ppc64/Makefile.inc b/src/arch/ppc64/Makefile.inc index 92b1e39..3baf3ba 100644 --- a/src/arch/ppc64/Makefile.inc +++ b/src/arch/ppc64/Makefile.inc @@ -9,6 +9,11 @@ ################################################################################ ifeq ($(CONFIG_ARCH_BOOTBLOCK_PPC64),y)
+ +ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) +bootblock-ld-ccopts += -target ppc64-linux-gnu +endif + bootblock-y = bootblock_crt0.S bootblock-y += arch_timer.c bootblock-y += boot.c @@ -34,6 +39,10 @@ ################################################################################ ifeq ($(CONFIG_ARCH_ROMSTAGE_PPC64),y)
+ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) +romstage-ld-ccopts += -target ppc64-linux-gnu +endif + romstage-y += arch_timer.c romstage-y += boot.c romstage-y += stages.c @@ -62,6 +71,10 @@ ################################################################################ ifeq ($(CONFIG_ARCH_RAMSTAGE_PPC64),y)
+ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) +ramstage-ld-ccopts += -target ppc64-linux-gnu +endif + ramstage-y += stages.c ramstage-y += arch_timer.c ramstage-y += boot.c