From 9cff600e25ca78af2d5d732dd5e61bdf9565c82e Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Sun, 17 Sep 2023 19:57:46 -0400 Subject: [PATCH] posix: add logging to pooled resource templates Support logging for all POSIX pooled resource types such as pthread_t, pthread_mutex_t, and pthread_cond_t. Signed-off-by: Christopher Friedt --- lib/posix/Kconfig.template.pooled_ipc_type | 1 + lib/posix/Kconfig.template.pooled_type | 1 + lib/posix/Kconfig.template.with_logging | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 lib/posix/Kconfig.template.with_logging diff --git a/lib/posix/Kconfig.template.pooled_ipc_type b/lib/posix/Kconfig.template.pooled_ipc_type index ad0bf5bc9b0..557a98f8849 100644 --- a/lib/posix/Kconfig.template.pooled_ipc_type +++ b/lib/posix/Kconfig.template.pooled_ipc_type @@ -3,6 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 source "lib/posix/Kconfig.template.with_url" +source "lib/posix/Kconfig.template.with_logging" # Not user configurable (i.e. private for now) config $(TYPE) diff --git a/lib/posix/Kconfig.template.pooled_type b/lib/posix/Kconfig.template.pooled_type index d2699e2f17c..a30686043a1 100644 --- a/lib/posix/Kconfig.template.pooled_type +++ b/lib/posix/Kconfig.template.pooled_type @@ -3,6 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 source "lib/posix/Kconfig.template.with_url" +source "lib/posix/Kconfig.template.with_logging" # This is mainly for TIMER currently. config $(TYPE) diff --git a/lib/posix/Kconfig.template.with_logging b/lib/posix/Kconfig.template.with_logging new file mode 100644 index 00000000000..f1fc5141e7c --- /dev/null +++ b/lib/posix/Kconfig.template.with_logging @@ -0,0 +1,7 @@ +# Copyright (c) 2023 Meta +# +# SPDX-License-Identifier: Apache-2.0 + +module = $(TYPE) +module-str = $(TYPE) logging +source "subsys/logging/Kconfig.template.log_config"