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 2f89f09a7370298c5f081a641da8e5f0035f69d4
Author: zhangyuan29 <[email protected]>
AuthorDate: Fri Nov 20 09:57:40 2026 +0800

    boards/stm32g4/cansock: disable dd and emulated TLS
    
    nucleo-g431rb:cansock and b-g431b-esc1:cansock use 130600 of the
    131072 bytes of flash, and ordinary changes in core components push
    them over the limit.
    
    Disable the dd tool, which the SocketCAN demo does not use, and the
    per-thread copies of emulated TLS variables, which no code in these
    images uses.  This frees about 3.7 KB.  NET_STATISTICS and the CAN
    tools are kept.
    
    Signed-off-by: zhangyuan29 <[email protected]>
---
 boards/arm/stm32g4/b-g431b-esc1/configs/cansock/defconfig  | 2 ++
 boards/arm/stm32g4/nucleo-g431rb/configs/cansock/defconfig | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/boards/arm/stm32g4/b-g431b-esc1/configs/cansock/defconfig 
b/boards/arm/stm32g4/b-g431b-esc1/configs/cansock/defconfig
index d1db95c973f..e50bc8b0757 100644
--- a/boards/arm/stm32g4/b-g431b-esc1/configs/cansock/defconfig
+++ b/boards/arm/stm32g4/b-g431b-esc1/configs/cansock/defconfig
@@ -7,6 +7,8 @@
 #
 # CONFIG_NET_ETHERNET is not set
 # CONFIG_NET_IPv4 is not set
+# CONFIG_SYSTEM_DD is not set
+# CONFIG_TLS_EMUTLS is not set
 CONFIG_ALLOW_BSD_COMPONENTS=y
 CONFIG_ARCH="arm"
 CONFIG_ARCH_BOARD="b-g431b-esc1"
diff --git a/boards/arm/stm32g4/nucleo-g431rb/configs/cansock/defconfig 
b/boards/arm/stm32g4/nucleo-g431rb/configs/cansock/defconfig
index 157d5740c0a..26ea0807d5c 100644
--- a/boards/arm/stm32g4/nucleo-g431rb/configs/cansock/defconfig
+++ b/boards/arm/stm32g4/nucleo-g431rb/configs/cansock/defconfig
@@ -7,6 +7,8 @@
 #
 # CONFIG_NET_ETHERNET is not set
 # CONFIG_NET_IPv4 is not set
+# CONFIG_SYSTEM_DD is not set
+# CONFIG_TLS_EMUTLS is not set
 CONFIG_ALLOW_BSD_COMPONENTS=y
 CONFIG_ARCH="arm"
 CONFIG_ARCH_BOARD="nucleo-g431rb"

Reply via email to