mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
Add debug.h selection choice to support include chip debug.h
Select debug.h which may be under include/arch or include/arch/chip. Signed-off-by: liuhaitao <liuhaitao@xiaomi.com> Change-Id: I5f465c41ba27d040e5e24b2eef2918cfbc18a0bd
This commit is contained in:
@@ -495,11 +495,26 @@ config ARCH_SETJMP_H
|
|||||||
ARCH_SETJMP_H=y and providing. If ARCH_SETJMP_H, is not defined, then
|
ARCH_SETJMP_H=y and providing. If ARCH_SETJMP_H, is not defined, then
|
||||||
the setjmp.h header file will stay out-of-the-way in include/nuttx/.
|
the setjmp.h header file will stay out-of-the-way in include/nuttx/.
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "debug.h selection"
|
||||||
|
default ARCH_NONE_DEBUG_H
|
||||||
|
|
||||||
|
config ARCH_NONE_DEBUG_H
|
||||||
|
bool "None"
|
||||||
|
---help---
|
||||||
|
No debug.h under include/arch/ and include/arch/chip.
|
||||||
|
|
||||||
config ARCH_DEBUG_H
|
config ARCH_DEBUG_H
|
||||||
bool "debug.h"
|
bool "debug.h"
|
||||||
default n
|
|
||||||
---help---
|
---help---
|
||||||
The debug.h contains architecture dependent debugging primitives
|
The debug.h under include/arch contains architecture dependent debugging primitives
|
||||||
|
|
||||||
|
config ARCH_CHIP_DEBUG_H
|
||||||
|
bool "chip debug.h"
|
||||||
|
---help---
|
||||||
|
The debug.h under include/arch/chip contains architecture dependent debugging primitives
|
||||||
|
|
||||||
|
endchoice # debug.h selection
|
||||||
|
|
||||||
endmenu # Customize Header Files
|
endmenu # Customize Header Files
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,9 @@
|
|||||||
#ifdef CONFIG_ARCH_DEBUG_H
|
#ifdef CONFIG_ARCH_DEBUG_H
|
||||||
# include <arch/debug.h>
|
# include <arch/debug.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_ARCH_CHIP_DEBUG_H
|
||||||
|
# include <arch/chip/debug.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user