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


The following commit(s) were added to refs/heads/master by this push:
     new 87859194dd7 cmake: fix savedefconfig semicolon decoding on wrong 
variable
87859194dd7 is described below

commit 87859194dd76577ee6258f8f0ae084390c67a4f2
Author: Junbo Zheng <[email protected]>
AuthorDate: Fri Sep 11 10:00:17 2026 +0800

    cmake: fix savedefconfig semicolon decoding on wrong variable
    
    The arch-line filter in savedefconfig.cmake encodes semicolons in
    NameAndValue before appending it, but decoded a never-assigned Value
    variable instead, so any CONFIG_ARCH* value containing a semicolon
    was written to the defconfig with literal __SEMICOLON__ placeholders.
    Decode NameAndValue itself.
    
    Before:
    ```
    CONFIG_ARCH_BOARD_CUSTOM_NAME="a;b;c" -> "a__SEMICOLON__b__SEMICOLON__c"
    ```
    
    After:
    ```
    semicolons are restored and the line is written verbatim
    ```
    
    Assisted-by: Claude Code (glm-5.3) <[email protected]>
    Signed-off-by: Junbo Zheng <[email protected]>
---
 cmake/savedefconfig.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/savedefconfig.cmake b/cmake/savedefconfig.cmake
index aef701e6bf8..e8d912613c1 100644
--- a/cmake/savedefconfig.cmake
+++ b/cmake/savedefconfig.cmake
@@ -42,7 +42,7 @@ foreach(NameAndValue ${ConfigContents})
      OR "${NameAndValue}" MATCHES "CONFIG_ARCH_BOARD_COMMON="
      OR "${NameAndValue}" MATCHES "^CONFIG_ARCH_CUSTOM"
      OR "${NameAndValue}" MATCHES "^CONFIG_ARCH_BOARD_CUSTOM")
-    decode_semicolon(Value)
+    decode_semicolon(NameAndValue)
     file(APPEND ${TARGET_FILE} "${NameAndValue}\n")
   endif()
 endforeach()

Reply via email to