mirror of
https://github.com/espressif/openthread.git
synced 2026-08-25 19:59:51 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user