summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-11-01 15:58:34 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-04 10:56:04 (GMT)
commit46814c99eed399b6dd9ff9e83260fefe79c23ec8 (patch)
treec0f7bee33a203e60c5a8638ed2bebdd276d5c08d
parentb0c24033bb80ad92a58287a8c112ba97a6368beb (diff)
downloadpoky-46814c99eed399b6dd9ff9e83260fefe79c23ec8.tar.gz
bitbake: toaster: add variable description for prefixed/suffixed variables
In the Configuration table, we need to link prefixed / suffixed variables to the corresponding variable descriptions in documentation.conf. [YOCTO #5198] (Bitbake rev: 641d9c4fda5fe978154fdfab978c3c09e3906eab) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 4996b42..2ca0bd3 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -226,6 +226,11 @@ class ORMWrapper(object):
226 value = '' 226 value = ''
227 desc = vardump[k]['doc']; 227 desc = vardump[k]['doc'];
228 if desc is None: 228 if desc is None:
229 var_words = [word for word in k.split('_')]
230 root_var = "_".join([word for word in var_words if word.isupper()])
231 if root_var and root_var != k and root_var in vardump:
232 desc = vardump[root_var]['doc']
233 if desc is None:
229 desc = '' 234 desc = ''
230 Variable.objects.create( build = build_obj, 235 Variable.objects.create( build = build_obj,
231 variable_name = k, 236 variable_name = k,