From 3a08490c562d5df0b4b3b9480d3c74681ff69fdf Mon Sep 17 00:00:00 2001 From: Zhanglong Xia Date: Tue, 20 Jul 2021 13:53:56 +0800 Subject: [PATCH] [config] include the default user configuration header (#6829) OpenThread uses the compile option -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=openthread-core-posix-config.h to specify the OpenThread configuration file. Some build systems do not support this usage. This commit includes the default user implemented configuration header file to avoid specifying the configuration file. --- src/core/openthread-core-config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/openthread-core-config.h b/src/core/openthread-core-config.h index 4e86be6cb..fdde86941 100644 --- a/src/core/openthread-core-config.h +++ b/src/core/openthread-core-config.h @@ -44,6 +44,10 @@ #ifdef OPENTHREAD_PROJECT_CORE_CONFIG_FILE #include OPENTHREAD_PROJECT_CORE_CONFIG_FILE +#elif defined(OPENTHREAD_CONFIG_CORE_USER_CONFIG_HEADER_ENABLE) +// This configuration header file should be provided by the user when +// OPENTHREAD_CONFIG_CORE_USER_CONFIG_HEADER_ENABLE is defined to 1. +#include "openthread-core-user-config.h" #endif #ifndef OPENTHREAD_CONFIG_THREAD_VERSION