util/xcompile: Add target architecture to CPPFLAGS
In order to preprocess linker scripts the target architecture needs to be specified. With clang this needs to be set via a cli argument. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I4340681e30059d6f18a49a49937668cd3dd39ce1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75031 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Martin L Roth
parent
44adf4d22f
commit
d308243bc1
@@ -10,11 +10,6 @@ ifeq ($(CONFIG_COMPILER_GCC),y)
|
||||
armv7_asm_flags += -Wa,-mno-warn-deprecated
|
||||
else # CLANG
|
||||
armv7_flags += -mfpu=none
|
||||
bootblock-ld-ccopts += -target arm-eabi
|
||||
verstage-ld-ccopts += -target arm-eabi
|
||||
romstage-ld-ccopts += -target arm-eabi
|
||||
ramstage-ld-ccopts += -target arm-eabi
|
||||
rmodule_arm-ld-ccopts += -target arm-eabi
|
||||
endif
|
||||
armv7-r_asm_flags = $(armv7-r_flags) $(armv7_asm_flags)
|
||||
|
||||
|
Reference in New Issue
Block a user