]> git.baikalelectronics.ru Git - kernel.git/commit
x86: probe assembler capabilities via kconfig instead of makefile
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 26 Mar 2020 08:00:58 +0000 (17:00 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 8 Apr 2020 15:01:59 +0000 (00:01 +0900)
commite27cf2a1940b63e5f79338d3e7629e0624a59b41
tree29052fdeb3e882b87e78ffb83e08c1edd7125bdb
parent6e5306882a82bc1f29bbfcd3320d9daf36940bb3
x86: probe assembler capabilities via kconfig instead of makefile

Doing this probing inside of the Makefiles means we have a maze of
ifdefs inside the source code and child Makefiles that need to make
proper decisions on this too. Instead, we do it at Kconfig time, like
many other compiler and assembler options, which allows us to set up the
dependencies normally for full compilation units. In the process, the
ADX test changes to use %eax instead of %r10 so that it's valid in both
32-bit and 64-bit mode.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/x86/Kconfig
arch/x86/Kconfig.assembler [new file with mode: 0644]
arch/x86/Makefile
net/netfilter/Makefile