This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 9609fb57669931cf5d78db7f6116d3754bb02d97 Author: Andrew Yong <[email protected]> AuthorDate: Wed Nov 25 14:37:38 2026 +0800 arch/arm: Add the ARM7TDMI to the CMake build. Name the arm7tdmi processor in platform.cmake and give arm.cmake the compiler flags of the core (-mcpu=arm7tdmi -mfloat-abi=soft). No ARM7TDMI chip has a CMakeLists.txt yet, and a CMake configuration of one stopped with "CMAKE_SYSTEM_PROCESSOR not set". The Make build and the other cores are not changed. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Andrew Yong <[email protected]> --- arch/arm/src/cmake/arm.cmake | 8 ++++++++ arch/arm/src/cmake/platform.cmake | 2 ++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/src/cmake/arm.cmake b/arch/arm/src/cmake/arm.cmake index 37220431be5..4c5d0a820ee 100644 --- a/arch/arm/src/cmake/arm.cmake +++ b/arch/arm/src/cmake/arm.cmake @@ -19,3 +19,11 @@ # the License. # # ############################################################################## + +set(PLATFORM_FLAGS) + +if(CONFIG_ARCH_ARM7TDMI) + list(APPEND PLATFORM_FLAGS -mcpu=arm7tdmi -mfloat-abi=soft) +endif() + +add_compile_options(${PLATFORM_FLAGS}) diff --git a/arch/arm/src/cmake/platform.cmake b/arch/arm/src/cmake/platform.cmake index 6ce83cf86df..f8789b8bc22 100644 --- a/arch/arm/src/cmake/platform.cmake +++ b/arch/arm/src/cmake/platform.cmake @@ -58,6 +58,8 @@ elseif(CONFIG_ARCH_CORTEXR8) set(CMAKE_SYSTEM_PROCESSOR cortex-r8) elseif(CONFIG_ARCH_CORTEXR52) set(CMAKE_SYSTEM_PROCESSOR cortex-r8) +elseif(CONFIG_ARCH_ARM7TDMI) + set(CMAKE_SYSTEM_PROCESSOR arm7tdmi) else() message(FATAL_ERROR "CMAKE_SYSTEM_PROCESSOR not set") endif()
