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:
parent
5d8d5bfd73
commit
60bead4f84
5
Kconfig
5
Kconfig
@ -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
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user