From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: [PATCH 7/8] toaster: add variable description for prefixed/suffixed variables
Date: Fri, 1 Nov 2013 15:58:34 +0000 [thread overview]
Message-ID: <56e90fd051efeaa3317bed9e9c699eb28fe1ea2a.1383321482.git.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <cover.1383321482.git.paul.eggleton@linux.intel.com>
In-Reply-To: <cover.1383321482.git.paul.eggleton@linux.intel.com>
From: Cristiana Voicu <cristiana.voicu@intel.com>
In the Configuration table, we need to link prefixed / suffixed
variables to the corresponding variable descriptions in documentation.conf.
[YOCTO #5198]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
lib/bb/ui/buildinfohelper.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index 4996b42..2ca0bd3 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/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,
--
1.8.1.2
next prev parent reply other threads:[~2013-11-01 15:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 15:58 [PATCH 0/8] Toaster-related improvements Paul Eggleton
2013-11-01 15:58 ` [PATCH 1/8] toaster: fixes for null values from events Paul Eggleton
2013-11-01 15:58 ` [PATCH 2/8] cooker: add data to the dependency tree dump Paul Eggleton
2013-11-01 15:58 ` [PATCH 3/8] cooker: do not recreate recipecache in buildfile mode Paul Eggleton
2013-11-01 15:58 ` [PATCH 4/8] build, toaster: record proper task type Paul Eggleton
2013-11-01 15:58 ` [PATCH 5/8] toaster: fix timezone settings Paul Eggleton
2013-11-01 15:58 ` [PATCH 6/8] toaster: server shutdown on terminal exit Paul Eggleton
2013-11-01 15:58 ` Paul Eggleton [this message]
2013-11-01 15:58 ` [PATCH 8/8] toaster: enable required classes in the toaster startup script Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56e90fd051efeaa3317bed9e9c699eb28fe1ea2a.1383321482.git.paul.eggleton@linux.intel.com \
--to=paul.eggleton@linux.intel.com \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox