cmake: expose TOOLCHAIN_HAS_PICOLIBC to kconfig

This mirrors TOOLCHAIN_HAS_NEWLIB to picolibc so the cmake
variable TOOLCHAIN_HAS_PICOLIBC can be used in kconfig.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-07-25 09:23:41 -07:00 committed by Anas Nashif
commit 718a219bf1

View file

@ -122,6 +122,12 @@ else()
set(_local_TOOLCHAIN_HAS_NEWLIB n)
endif()
if(TOOLCHAIN_HAS_PICOLIBC)
set(_local_TOOLCHAIN_HAS_PICOLIBC y)
else()
set(_local_TOOLCHAIN_HAS_PICOLIBC n)
endif()
set(COMMON_KCONFIG_ENV_SETTINGS
PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
srctree=${ZEPHYR_BASE}
@ -140,6 +146,7 @@ set(COMMON_KCONFIG_ENV_SETTINGS
ZEPHYR_TOOLCHAIN_VARIANT=${ZEPHYR_TOOLCHAIN_VARIANT}
TOOLCHAIN_KCONFIG_DIR=${TOOLCHAIN_KCONFIG_DIR}
TOOLCHAIN_HAS_NEWLIB=${_local_TOOLCHAIN_HAS_NEWLIB}
TOOLCHAIN_HAS_PICOLIBC=${_local_TOOLCHAIN_HAS_PICOLIBC}
EDT_PICKLE=${EDT_PICKLE}
# Export all Zephyr modules to Kconfig
${ZEPHYR_KCONFIG_MODULES_DIR}