[bitbake-devel] [PATCH 7/8] toaster: add variable description for prefixed/suffixed variables
Paul Eggleton
paul.eggleton at linux.intel.com
Fri Nov 1 15:58:34 UTC 2013
From: Cristiana Voicu <cristiana.voicu at intel.com>
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>
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
lib/bb/ui/buildinfohelper.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index 4996b42..2ca0bd3 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/lib/bb/ui/buildinfohelper.py
@@ -226,6 +226,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.objects.create( build = build_obj,
variable_name = k,
--
1.8.1.2
More information about the bitbake-devel
mailing list