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 09:36:22 +0000
commit8cbd1ce1b8ce9d76908d12a7ef8b08abb3cd658e (patch)
tree81738d8bc4e98010d10582e11bfc0744258cd2a8
parent16067d529597d14542c574c9788f9aac344178f2 (diff)
downloadpoky-8cbd1ce1b8ce9d76908d12a7ef8b08abb3cd658e.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 4996b4235d..2ca0bd380e 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,