From bbdbca00c13e06cf4d0dfebf535c9fc0da4fbfc6 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 30 Apr 2022 20:51:41 +0800 Subject: [PATCH] libc/assert: let CONFIG_NDEBUG default to !CONFIG_DEBUG_ASSERTIONS so the user could just change CONFIG_DEBUG_ASSERTIONS in most case Signed-off-by: Xiang Xiao --- Kconfig | 2 +- boards/risc-v/mpfs/icicle/configs/network/defconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index 836285687f..0e29f6a06b 100644 --- a/Kconfig +++ b/Kconfig @@ -559,7 +559,7 @@ menu "Debug Options" config NDEBUG bool "Define NDEBUG globally" - default y + default !DEBUG_ASSERTIONS config DEBUG_ALERT bool diff --git a/boards/risc-v/mpfs/icicle/configs/network/defconfig b/boards/risc-v/mpfs/icicle/configs/network/defconfig index f9190878bb..3c2148b48d 100644 --- a/boards/risc-v/mpfs/icicle/configs/network/defconfig +++ b/boards/risc-v/mpfs/icicle/configs/network/defconfig @@ -6,7 +6,6 @@ # modifications. # # CONFIG_DISABLE_OS_API is not set -# CONFIG_NDEBUG is not set # CONFIG_NSH_DISABLE_LOSMART is not set CONFIG_ARCH="risc-v" CONFIG_ARCH_BOARD="icicle"