mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
Merge tag 'x86_build_for_v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 build updates from Borislav Petkov: "A bunch of clang build fixes and a Kconfig highmem selection fix for 486SX" * tag 'x86_build_for_v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/build: Disable HIGHMEM64G selection for M486SX efi/libstub: Add $(CLANG_FLAGS) to x86 flags x86/boot: Add $(CLANG_FLAGS) to compressed KBUILD_CFLAGS x86/build: Propagate $(CLANG_FLAGS) to $(REALMODE_FLAGS)
This commit is contained in:
@@ -1407,7 +1407,7 @@ config HIGHMEM4G
|
|||||||
|
|
||||||
config HIGHMEM64G
|
config HIGHMEM64G
|
||||||
bool "64GB"
|
bool "64GB"
|
||||||
depends on !M486 && !M586 && !M586TSC && !M586MMX && !MGEODE_LX && !MGEODEGX1 && !MCYRIXIII && !MELAN && !MWINCHIPC6 && !WINCHIP3D && !MK6
|
depends on !M486SX && !M486 && !M586 && !M586TSC && !M586MMX && !MGEODE_LX && !MGEODEGX1 && !MCYRIXIII && !MELAN && !MWINCHIPC6 && !WINCHIP3D && !MK6
|
||||||
select X86_PAE
|
select X86_PAE
|
||||||
help
|
help
|
||||||
Select this if you have a 32-bit processor and more than 4
|
Select this if you have a 32-bit processor and more than 4
|
||||||
|
@@ -33,6 +33,7 @@ REALMODE_CFLAGS += -ffreestanding
|
|||||||
REALMODE_CFLAGS += -fno-stack-protector
|
REALMODE_CFLAGS += -fno-stack-protector
|
||||||
REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), -Wno-address-of-packed-member)
|
REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), -Wno-address-of-packed-member)
|
||||||
REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), $(cc_stack_align4))
|
REALMODE_CFLAGS += $(call __cc-option, $(CC), $(REALMODE_CFLAGS), $(cc_stack_align4))
|
||||||
|
REALMODE_CFLAGS += $(CLANG_FLAGS)
|
||||||
export REALMODE_CFLAGS
|
export REALMODE_CFLAGS
|
||||||
|
|
||||||
# BITS is used as extension for files which are available in a 32 bit
|
# BITS is used as extension for files which are available in a 32 bit
|
||||||
|
@@ -46,6 +46,7 @@ KBUILD_CFLAGS += -D__DISABLE_EXPORTS
|
|||||||
# Disable relocation relaxation in case the link is not PIE.
|
# Disable relocation relaxation in case the link is not PIE.
|
||||||
KBUILD_CFLAGS += $(call as-option,-Wa$(comma)-mrelax-relocations=no)
|
KBUILD_CFLAGS += $(call as-option,-Wa$(comma)-mrelax-relocations=no)
|
||||||
KBUILD_CFLAGS += -include $(srctree)/include/linux/hidden.h
|
KBUILD_CFLAGS += -include $(srctree)/include/linux/hidden.h
|
||||||
|
KBUILD_CFLAGS += $(CLANG_FLAGS)
|
||||||
|
|
||||||
# sev-es.c indirectly inludes inat-table.h which is generated during
|
# sev-es.c indirectly inludes inat-table.h which is generated during
|
||||||
# compilation and stored in $(objtree). Add the directory to the includes so
|
# compilation and stored in $(objtree). Add the directory to the includes so
|
||||||
|
@@ -13,7 +13,8 @@ cflags-$(CONFIG_X86) += -m$(BITS) -D__KERNEL__ \
|
|||||||
-Wno-pointer-sign \
|
-Wno-pointer-sign \
|
||||||
$(call cc-disable-warning, address-of-packed-member) \
|
$(call cc-disable-warning, address-of-packed-member) \
|
||||||
$(call cc-disable-warning, gnu) \
|
$(call cc-disable-warning, gnu) \
|
||||||
-fno-asynchronous-unwind-tables
|
-fno-asynchronous-unwind-tables \
|
||||||
|
$(CLANG_FLAGS)
|
||||||
|
|
||||||
# arm64 uses the full KBUILD_CFLAGS so it's necessary to explicitly
|
# arm64 uses the full KBUILD_CFLAGS so it's necessary to explicitly
|
||||||
# disable the stackleak plugin
|
# disable the stackleak plugin
|
||||||
|
Reference in New Issue
Block a user