Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74500 )
Change subject: arch/arm64: Add aarch64 target linker arguments ......................................................................
arch/arm64: Add aarch64 target linker arguments
This fixes building aarch64 with clang.
Change-Id: I6ee4c0c34e2aa52e4f6c72338880a5cf9cc7009b Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/arch/arm64/armv8/Makefile.inc 1 file changed, 20 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/74500/1
diff --git a/src/arch/arm64/armv8/Makefile.inc b/src/arch/arm64/armv8/Makefile.inc index 15d80e6..c52c7f9 100644 --- a/src/arch/arm64/armv8/Makefile.inc +++ b/src/arch/arm64/armv8/Makefile.inc @@ -26,6 +26,14 @@ decompressor-y += mmu.c bootblock-y += mmu.c
+ifneq ($(CONFIG_COMPILER_GCC),y) +bootblock-ld-ccopts += -target aarch64-eabi +verstage-ld-ccopts += -target aarch64-eabi +romstage-ld-ccopts += -target aarch64-eabi +ramstage-ld-ccopts += -target aarch64-eabi +rmodule_arm-ld-ccopts += -target aarch64-eabi +endif + bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += exception.c
decompressor-generic-ccopts += $(armv8_flags)