From be4b76fea259283dccd7c1d27640ccc708daf787 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 12 Oct 2023 11:55:04 -0700 Subject: [PATCH] Kconfig.zephyr: Add NATIVE_LIBC and NATIVE_LIBCPP These are set when building against the host C or C++ libraries. This allows filtering tests that require use of a C library that sits atop Zephyr OS APIs. Signed-off-by: Keith Packard --- Kconfig.zephyr | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 4b6976a503..4710cc8214 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -316,10 +316,22 @@ config CODING_GUIDELINE_CHECK Use available compiler flags to check coding guideline rules during the build. -config NATIVE_BUILD +config NATIVE_LIBC bool select FULL_LIBC_SUPPORTED - select FULL_LIBCPP_SUPPORTED if CPP + help + Zephyr will use the host system C library. + +config NATIVE_LIBCPP + bool + select FULL_LIBCPP_SUPPORTED + help + Zephyr will use the host system C++ library + +config NATIVE_BUILD + bool + select NATIVE_LIBC if EXTERNAL_LIBC + select NATIVE_LIBCPP if EXTERNAL_LIBCPP help Zephyr will be built targeting the host system for debug and development purposes.