From 186502e7d71ce9ec095e33930cee8abcb5b6c9bc Mon Sep 17 00:00:00 2001 From: Li Cao Date: Wed, 24 Jul 2024 10:45:11 +0800 Subject: [PATCH] [lib] fix lib config build issue --- CMakeLists.txt | 1 + openthread | 2 +- .../rt1060/openthread-core-rt1060-config.h | 9 ---- .../rt1060/openthread-lib-rt1060-config.h | 47 +++++++++++++++++++ 4 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 src/imx_rt/rt1060/openthread-lib-rt1060-config.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 338308de..2d36a0a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,7 @@ if (OT_BUILD_RT) set(CONFIG_FILE "\"openthread-core-rt1060-config.h\"") set(CORE_CONFIG_FILE "\"openthread-core-rt1060-config.h\"") set(CORE_CONFIG_CHECK "\"openthread-core-rt1060-config-check.h\"") + set(OT_LIB_CONFIG "\"openthread-lib-rt1060-config.h\"") set(PLATFORM rt1060) set(CHIP imx_rt) endif() diff --git a/openthread b/openthread index aebecca9..d0fbfb8c 160000 --- a/openthread +++ b/openthread @@ -1 +1 @@ -Subproject commit aebecca9649704c1318228e6da562eaa7c1ed156 +Subproject commit d0fbfb8c768eae85d6bf5099bd8129db1c0a94b1 diff --git a/src/imx_rt/rt1060/openthread-core-rt1060-config.h b/src/imx_rt/rt1060/openthread-core-rt1060-config.h index 24626741..04ddd86a 100644 --- a/src/imx_rt/rt1060/openthread-core-rt1060-config.h +++ b/src/imx_rt/rt1060/openthread-core-rt1060-config.h @@ -235,15 +235,6 @@ LOG_MODULE_DEFINE(ot_stack_log, kLOG_LevelDebug) */ #define OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE 1 -/** - * @def OPENTHREAD_CONFIG_PLATFORM_RADIO_SPINEL_RX_FRAME_BUFFER_SIZE - * - * Specifies the rx frame buffer size used by `SpinelInterface` in RCP host (posix) code. This is applicable/used when - * `RadioSpinel` platform is used. - * - */ -#define OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE 512 - /** * @def OPENTHREAD_CONFIG_PING_SENDER_ENABLE * diff --git a/src/imx_rt/rt1060/openthread-lib-rt1060-config.h b/src/imx_rt/rt1060/openthread-lib-rt1060-config.h new file mode 100644 index 00000000..44cc8664 --- /dev/null +++ b/src/imx_rt/rt1060/openthread-lib-rt1060-config.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2024, The OpenThread Authors. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the copyright holder nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/** + * @file + * This file includes RT 1060 compile-time configuration constants + * for OpenThread lib. + */ + +#ifndef OT_RT_OPENTHREAD_LIB_RT_CONFIG_H_ +#define OT_RT_OPENTHREAD_LIB_RT_CONFIG_H_ + +/** + * @def OPENTHREAD_CONFIG_PLATFORM_RADIO_SPINEL_RX_FRAME_BUFFER_SIZE + * + * Specifies the rx frame buffer size used by `SpinelInterface` in RCP host (posix) code. This is applicable/used when + * `RadioSpinel` platform is used. + * + */ +#define OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE 512 + +#endif // OT_RT_OPENTHREAD_LIB_RT_CONFIG_H_