From 60bead4f84d2f760a1cb2bedfb467239e61e13f1 Mon Sep 17 00:00:00 2001 From: Stuart Ianna Date: Thu, 24 Aug 2023 11:11:05 +1000 Subject: [PATCH] debug: Let boards define custom debug configuration. Allows the debug behavior to be specified as part of the board, architecture or chip configuration. This is useful when using out-of tree custom board configurations. --- Kconfig | 5 +++++ include/debug.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/Kconfig b/Kconfig index 6625a3914e..9fc646af0d 100644 --- a/Kconfig +++ b/Kconfig @@ -601,6 +601,11 @@ config ARCH_CHIP_DEBUG_H ---help--- The debug.h under include/arch/chip contains architecture dependent debugging primitives +config ARCH_BOARD_DEBUG_H + bool "board debug.h" + ---help--- + The debug.h under include/arch/board contains board dependent debugging primitives + endchoice # debug.h selection endmenu # Customize Header Files diff --git a/include/debug.h b/include/debug.h index 538b5eaa48..2fd5ab395e 100644 --- a/include/debug.h +++ b/include/debug.h @@ -34,6 +34,9 @@ #ifdef CONFIG_ARCH_CHIP_DEBUG_H # include #endif +#ifdef CONFIG_ARCH_BOARD_DEBUG_H +# include +#endif #include #include