From 81ce263f418c0855bd63e023513f7d099396ba83 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Fri, 7 Mar 2025 16:14:04 +0900 Subject: [PATCH] sched/init: Fix build error with CONFIG_BOARD_CRASHDUMP_CUSTOM Fix build error with the following condition. - CONFIG_BOARD_CRASHDUMP_CUSTOM=y - CONFIG_COREDUMP=n The condition for calling `coredump_initialize()` is incorrect. CONFIG_BOARD_CRASHDUMP_CUSTOM is not dependent on CONFIG_COREDUMP. Signed-off-by: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> --- sched/init/nx_bringup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/init/nx_bringup.c b/sched/init/nx_bringup.c index f9dbb69d350e0..336fad5ed4367 100644 --- a/sched/init/nx_bringup.c +++ b/sched/init/nx_bringup.c @@ -322,7 +322,7 @@ static inline void nx_start_application(void) board_late_initialize(); #endif -#ifndef CONFIG_BOARD_CRASHDUMP_NONE +#ifdef CONFIG_COREDUMP coredump_initialize(); #endif