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>
This commit is contained in:
parent
16067d5295
commit
8cbd1ce1b8
|
@ -225,6 +225,11 @@ class ORMWrapper(object):
|
||||||
if value is None:
|
if value is None:
|
||||||
value = ''
|
value = ''
|
||||||
desc = vardump[k]['doc'];
|
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:
|
if desc is None:
|
||||||
desc = ''
|
desc = ''
|
||||||
Variable.objects.create( build = build_obj,
|
Variable.objects.create( build = build_obj,
|
||||||
|
|
Loading…
Reference in New Issue