toolchain/cross-compile: Allow TLS support selection.

Add a user-settable configuration value indicating whether the toolchain
selected by the cross-compile variant supports thread local storage, using
the default 'n' value to preserve compatibility with existing uses.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2022-09-07 12:26:49 -07:00 committed by Fabio Baltieri
parent 7052d52b3b
commit 1dfc469bd5

View file

@ -0,0 +1,9 @@
# Copyright © 2022 Keith Packard
# SPDX-License-Identifier: Apache-2.0
config TOOLCHAIN_CROSS_COMPILE_SUPPORTS_THREAD_LOCAL_STORAGE
bool "Cross-compile toolchain supports TLS"
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
help
Set this if the cross-compile toolchain being used for the build
supports thread local storage.