Skip to content

Commit

Permalink
debug: Let boards define custom debug configuration.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
g2gps authored and xiaoxiang781216 committed Aug 24, 2023
1 parent 5d8d5bf commit 60bead4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions include/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
#ifdef CONFIG_ARCH_CHIP_DEBUG_H
# include <arch/chip/debug.h>
#endif
#ifdef CONFIG_ARCH_BOARD_DEBUG_H
# include <arch/board/debug.h>
#endif

#include <syslog.h>
#include <sys/uio.h>
Expand Down

0 comments on commit 60bead4

Please sign in to comment.