WSL2-Linux-Kernel/drivers/firmware/efi
Nathan Chancellor 58d746c119 efi/libstub: Add $(CLANG_FLAGS) to x86 flags
When cross compiling x86 on an ARM machine with clang, there are several
errors along the lines of:

  arch/x86/include/asm/page_64.h:52:7: error: invalid output constraint '=D' in asm

This happens because the x86 flags in the EFI stub are not derived from
KBUILD_CFLAGS like the other architectures are and the clang flags that
set the target architecture ('--target=') and the path to the GNU cross
tools ('--prefix=') are not present, meaning that the host architecture
is targeted.

These flags are available as $(CLANG_FLAGS) from the main Makefile so
add them to the cflags for x86 so that cross compiling works as expected.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lkml.kernel.org/r/20210326000435.4785-4-nathan@kernel.org
2021-03-26 11:34:58 +01:00
..
libstub efi/libstub: Add $(CLANG_FLAGS) to x86 flags 2021-03-26 11:34:58 +01:00
test
Kconfig EFI updates collected by Ard Biesheuvel: 2020-12-24 12:40:07 -08:00
Makefile efi: ia64: disable the capsule loader 2020-12-14 16:24:19 +01:00
apple-properties.c efi/apple-properties: Reinstate support for boolean properties 2020-12-31 10:28:53 +01:00
arm-runtime.c
capsule-loader.c
capsule.c
cper-arm.c
cper-x86.c
cper.c
dev-path-parser.c
earlycon.c
efi-bgrt.c
efi-init.c driver core: Delete pointless parameter in fwnode_operations.add_links 2020-12-09 19:14:48 +01:00
efi-pstore.c
efi.c firmware/efi: Fix a use after bug in efi_mem_reserve_persistent 2021-03-19 07:44:27 +01:00
efibc.c
efivars.c
embedded-firmware.c
esrt.c
fake_mem.c
fake_mem.h
fdtparams.c
memattr.c
memmap.c
mokvar-table.c
rci2-table.c
reboot.c
riscv-runtime.c
runtime-map.c
runtime-wrappers.c
tpm.c
vars.c efivars: respect EFI_UNSUPPORTED return from firmware 2021-03-17 09:40:24 +01:00
x86_fake_mem.c