From 57538262e1eb72ece5b408d3f0ffa160dec58920 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 4 Aug 2022 11:23:13 -0500 Subject: [PATCH] scripts: kconfig: tweak dt_chosen_label Now that we've removed the label property from most devicetree nodes the dt_chosen_label will end up returning "" in most cases. For the small handful of cases that the function is used, return the node.name instead as this matches what DEVICE_DT_NAME will do. Signed-off-by: Kumar Gala --- scripts/kconfig/kconfigfunctions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/kconfigfunctions.py b/scripts/kconfig/kconfigfunctions.py index fac2d425788..38e45ac52f4 100644 --- a/scripts/kconfig/kconfigfunctions.py +++ b/scripts/kconfig/kconfigfunctions.py @@ -60,7 +60,7 @@ def dt_chosen_label(kconf, _, chosen): return "" if "label" not in node.props: - return "" + return node.name return node.props["label"].val