This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 60bead4f84 debug: Let boards define custom debug configuration.
60bead4f84 is described below
commit 60bead4f84d2f760a1cb2bedfb467239e61e13f1
Author: Stuart Ianna <[email protected]>
AuthorDate: Thu Aug 24 11:11:05 2023 +1000
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 <arch/chip/debug.h>
#endif
+#ifdef CONFIG_ARCH_BOARD_DEBUG_H
+# include <arch/board/debug.h>
+#endif
#include <syslog.h>
#include <sys/uio.h>