dts: fix Kconfig enablment of BLUETOOTH_MONITOR_ON_DEV_NAME
Since we generate BLUETOOTH_MONITOR_ON_DEV_NAME based on dts we need a !HAS_DTS check around it. Otherwise we can get into odd build errors. Its also possibly that we don't specify "zephyr,bt-mon-uart" and in that case we default to CONFIG_UART_CONSOLE_ON_DEV_NAME (ie 'zephyr,console' on DTS platforms). Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
9f374d9d9c
commit
a45dac0bd1
2 changed files with 6 additions and 0 deletions
|
@ -66,6 +66,7 @@ config BLUETOOTH_DEBUG_COLOR
|
|||
help
|
||||
Use color in the logs. This requires an ANSI capable terminal.
|
||||
|
||||
if !HAS_DTS
|
||||
config BLUETOOTH_MONITOR_ON_DEV_NAME
|
||||
string "Device Name of Bluetooth monitor logging UART"
|
||||
depends on BLUETOOTH_DEBUG_MONITOR
|
||||
|
@ -73,6 +74,7 @@ config BLUETOOTH_MONITOR_ON_DEV_NAME
|
|||
help
|
||||
This option specifies the name of UART device to be used
|
||||
for the Bluetooth monitor logging.
|
||||
endif
|
||||
|
||||
config BLUETOOTH_DEBUG_HCI_DRIVER
|
||||
bool "Bluetooth HCI driver debug"
|
||||
|
|
|
@ -237,6 +237,10 @@ extern void __printk_hook_install(int (*fn)(int));
|
|||
extern void __stdout_hook_install(int (*fn)(int));
|
||||
#endif /* !CONFIG_UART_CONSOLE */
|
||||
|
||||
#if defined(CONFIG_HAS_DTS) && !defined(CONFIG_BLUETOOTH_MONITOR_ON_DEV_NAME)
|
||||
#define CONFIG_BLUETOOTH_MONITOR_ON_DEV_NAME CONFIG_UART_CONSOLE_ON_DEV_NAME
|
||||
#endif
|
||||
|
||||
static int bt_monitor_init(struct device *d)
|
||||
{
|
||||
ARG_UNUSED(d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue