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.
This commit is contained in:
Stuart Ianna 2023-08-24 11:11:05 +10:00 committed by Xiang Xiao
parent 5d8d5bfd73
commit 60bead4f84
2 changed files with 8 additions and 0 deletions

View File

@ -601,6 +601,11 @@ config ARCH_CHIP_DEBUG_H
---help--- ---help---
The debug.h under include/arch/chip contains architecture dependent debugging primitives 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 endchoice # debug.h selection
endmenu # Customize Header Files endmenu # Customize Header Files

View File

@ -34,6 +34,9 @@
#ifdef CONFIG_ARCH_CHIP_DEBUG_H #ifdef CONFIG_ARCH_CHIP_DEBUG_H
# include <arch/chip/debug.h> # include <arch/chip/debug.h>
#endif #endif
#ifdef CONFIG_ARCH_BOARD_DEBUG_H
# include <arch/board/debug.h>
#endif
#include <syslog.h> #include <syslog.h>
#include <sys/uio.h> #include <sys/uio.h>