From 46814c99eed399b6dd9ff9e83260fefe79c23ec8 Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Fri, 1 Nov 2013 15:58:34 +0000 Subject: 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 Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- 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 4996b4235d..2ca0bd380e 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -225,6 +225,11 @@ class ORMWrapper(object): if value is None: 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, -- cgit v1.2.3-54-g00ecf