[bitbake-devel] [PATCH] toaster: add variable description for prefixed/suffixed variables
Cristiana Voicu
cristiana.voicu at intel.com
Tue Oct 29 16:28:21 UTC 2013
In the Configuration table, we need to link prefixed / suffixed
variables to the corresponding variable descriptions in documentation.conf.
[YOCTO #5198]
Signed-off-by: Cristiana Voicu <cristiana.voicu at intel.com>
---
bitbake/lib/bb/ui/buildinfohelper.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 9541d10..303766a 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -230,6 +230,11 @@ class ORMWrapper(object):
value = ''
desc = vardump[k]['doc'];
if desc is None:
+ var_words = [word for word in k.split('_')]
+ root_var = "_".join([word for word in var_words if word.isupper()])
+ if root_var and root_var != k and root_var in vardump:
+ desc = vardump[root_var]['doc']
+ if desc is None:
desc = ''
variable_obj = Variable.objects.create( build = build_obj,
variable_name = k,
--
1.7.9.5
More information about the bitbake-devel
mailing list