summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-11-01 15:58:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-04 10:56:04 +0000
commit46814c99eed399b6dd9ff9e83260fefe79c23ec8 (patch)
treec0f7bee33a203e60c5a8638ed2bebdd276d5c08d
parentb0c24033bb80ad92a58287a8c112ba97a6368beb (diff)
downloadpoky-46814c99eed399b6dd9ff9e83260fefe79c23ec8.tar.gz
poky-46814c99eed399b6dd9ff9e83260fefe79c23ec8.tar.bz2
poky-46814c99eed399b6dd9ff9e83260fefe79c23ec8.zip
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 4996b4235d..2ca0bd380e 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/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,