Skip to content

Fix cross compiling x86 with clang

Nathan Chancellor linux-efi lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/build branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86: Propagate $(CLANG_FLAGS) to $(REALMODE_FLAGS)arch/x86/Makefile+1 -02 replies
2/3x86/boot: Add $(CLANG_FLAGS) to compressed KBUILD_CFLAGSarch/x86/boot/compressed/Makefile+1 -00 replies
3/3efi/libstub: Add $(CLANG_FLAGS) to x86 flagsdrivers/firmware/efi/libstub/Makefile+2 -10 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSedat DilekArd Biesheuvel
SeriesA-b
1/3T-b T-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Fix cross compiling x86 with clang

Hi all,

This series fixes cross compiling x86 with clang, which was initially brought up by John here:

https://lore.kernel.org/r/[email protected]/

I have picked up that patch and added the same fix in a couple of other places where it is needed.

I have tested this on an ARM based server with both defconfig and allmodconfig, where the build now passes.

Please let me know if there are any problems.

Cheers,
Nathan

John Millikin (1):
x86: Propagate $(CLANG_FLAGS) to $(REALMODE_FLAGS)

Nathan Chancellor (2):
x86/boot: Add $(CLANG_FLAGS) to compressed KBUILD_CFLAGS efi/libstub: Add $(CLANG_FLAGS) to x86 flags

 arch/x86/Makefile                     | 1 +
 arch/x86/boot/compressed/Makefile     | 1 +
 drivers/firmware/efi/libstub/Makefile | 3 ++-
 3 files changed, 4 insertions(+), 1 deletion(-)

base-commit: 0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b

Signature · 1 line
2.31.0