kconfig: Convert device tree chosen properties to new kconfigfunctions
Convert how we get the various chosen properties like "zephyr,console" to use the new kconfig functions like dt_chosen_to_label. Because of how kconfig parses things we define a set of variables of the form DT_CHOSEN_Z_<PROP> since comma's are parsed as field seperators in macros. This conversion allows us to remove code in gen_defines.py for the following chosen properties: zephyr,console zephyr,shell-uart zephyr,bt-uart zephyr,uart-pipe zephyr,bt-mon-uart zephyr,uart-mcumgr zephyr,bt-c2h-uart Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
5735397b9b
commit
8ce0cf0126
11 changed files with 59 additions and 47 deletions
|
@ -68,9 +68,12 @@ config BT_NO_DRIVER
|
|||
|
||||
endchoice
|
||||
|
||||
# Workaround for not being able to have commas in macro arguments
|
||||
DT_CHOSEN_Z_BT_UART := zephyr,bt-uart
|
||||
|
||||
config BT_UART_ON_DEV_NAME
|
||||
string "Device Name of UART Device for Bluetooth"
|
||||
default "$(dt_str_val,DT_BT_UART_ON_DEV_NAME)" if HAS_DTS
|
||||
default "$(dt_chosen_label,$(DT_CHOSEN_Z_BT_UART))" if HAS_DTS
|
||||
default "UART_0"
|
||||
depends on BT_UART
|
||||
help
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue