xtensa: add kernel ABI selection to Kconfig
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 23 Apr 2021 07:34:44 +0000 (00:34 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 9 Mar 2022 22:16:35 +0000 (14:16 -0800)
commitc20e1117d9aa22c558646a1060ddd1dd042fb107
tree8df7aa15f8dadbd0a512387994f8eca95588c3fd
parent19c5699f9affbd6824f4db0e19fcdc9d609a5e6b
xtensa: add kernel ABI selection to Kconfig

Add choice to use default or call0 ABI for the kernel code. If call0 ABI
is chosen add '-mabi=call0' to the flags. The toolchain support for this
option is rather new so only enable it when the compiler supports it.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Kconfig
arch/xtensa/Makefile