mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Introduce an AWK script to auto-generate the <asm/cpufeaturemasks.h> header with required and disabled feature masks based on <asm/cpufeatures.h> and the current build config. Thus for any CPU feature with a build config, e.g., X86_FRED, simply add: config X86_DISABLED_FEATURE_FRED def_bool y depends on !X86_FRED to arch/x86/Kconfig.cpufeatures, instead of adding a conditional CPU feature disable flag, e.g., DISABLE_FRED. Lastly, the generated required and disabled feature masks will be added to their corresponding feature masks for this particular compile-time configuration. [ Xin: build integration improvements ] [ mingo: Improved changelog and comments ] Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> Signed-off-by: Xin Li (Intel) <xin@zytor.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Nikolay Borisov <nik.borisov@suse.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/r/20250305184725.3341760-3-xin@zytor.com
16 lines
381 B
Makefile
16 lines
381 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
|
generated-y += orc_hash.h
|
|
generated-y += syscalls_32.h
|
|
generated-y += syscalls_64.h
|
|
generated-y += syscalls_x32.h
|
|
generated-y += unistd_32_ia32.h
|
|
generated-y += unistd_64_x32.h
|
|
generated-y += xen-hypercalls.h
|
|
generated-y += cpufeaturemasks.h
|
|
|
|
generic-y += early_ioremap.h
|
|
generic-y += fprobe.h
|
|
generic-y += mcs_spinlock.h
|
|
generic-y += mmzone.h
|