dts: Convert CONFIG_ to DT_ symbols for chosen props
Replace generating CONFIG_ symbols with DT_ symbols for chosen properties like 'zephyr,console' or 'zephyr,bt-mon-uart'. We now use a kconfigfunctions (dt_str_val) to extract the info from dts into Kconfig. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
55ba23ed03
commit
ff70b3444f
6 changed files with 18 additions and 24 deletions
|
@ -24,14 +24,13 @@ config SHELL_BACKEND_SERIAL
|
|||
|
||||
if SHELL_BACKEND_SERIAL
|
||||
|
||||
if !HAS_DTS
|
||||
config UART_SHELL_ON_DEV_NAME
|
||||
string "Device Name of UART Device for SHELL_BACKEND_SERIAL"
|
||||
default "$(dt_str_val,DT_UART_SHELL_ON_DEV_NAME)" if HAS_DTS
|
||||
default "UART_0"
|
||||
help
|
||||
This option specifies the name of UART device to be used for the
|
||||
SHELL UART backend.
|
||||
endif
|
||||
|
||||
# Internal config to enable UART interrupts if supported.
|
||||
config SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue