[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.
This commit is contained in:
Zhanglong Xia
2021-07-19 22:53:56 -07:00
committed by GitHub
parent 2cc89cbfcb
commit 3a08490c56
+4
View File
@@ -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