summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/builddetailspage.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-04-15 02:58:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-14 23:48:48 +0100
commit62c908c88b342370d2e179953c9e07094a6060b5 (patch)
tree7c5bbf21712252aa1c8ab400b19f4e4c69fd5852 /bitbake/lib/bb/ui/crumbs/builddetailspage.py
parent58544debd52f8d6fb40959af88ebc545aba1bce1 (diff)
downloadpoky-62c908c88b342370d2e179953c9e07094a6060b5.tar.gz
Hob: remember layers and settings between Hob sessions
This patch is to remember layers and settings between Hob sessions, which includes: - Put some variables for the build details screen from Configuration to Parameters because they are not actually for build but for show - We create a dummy Configuration instance and a dummy Parameters instance in __init__ of builder - The two instances will be assigned the real values by update_configuration_parameters() after parsing (in the event callback) - When it is the first time to launch Hob in a build directory, nothing is remembered since everything is fresh. - The feature is implemented with templates, and based on the hook for Hob. - When the user changes the layers or the settings, a default template file is saved into ".hob/". - Later on, the layers and the settings are remembered by loading the default template automatically. (Bitbake rev: f7c874ab930b9e7f95e79d0e84e62eb9b967f566) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/builddetailspage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builddetailspage.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
index 23aaacd891..6d8b509e86 100755
--- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
@@ -81,16 +81,16 @@ class BuildConfigurationTreeView(gtk.TreeView):
81 # renew the tree model after get the configuration messages 81 # renew the tree model after get the configuration messages
82 self.set_model(listmodel) 82 self.set_model(listmodel)
83 83
84 def show(self, src_config_info): 84 def show(self, src_config_info, src_params):
85 vars = [] 85 vars = []
86 vars.append(self.set_vars("BB version:", src_config_info.bb_version)) 86 vars.append(self.set_vars("BB version:", src_params.bb_version))
87 vars.append(self.set_vars("Target arch:", src_config_info.target_arch)) 87 vars.append(self.set_vars("Target arch:", src_params.target_arch))
88 vars.append(self.set_vars("Target OS:", src_config_info.target_os)) 88 vars.append(self.set_vars("Target OS:", src_params.target_os))
89 vars.append(self.set_vars("Machine:", src_config_info.curr_mach)) 89 vars.append(self.set_vars("Machine:", src_config_info.curr_mach))
90 vars.append(self.set_vars("Distro:", src_config_info.curr_distro)) 90 vars.append(self.set_vars("Distro:", src_config_info.curr_distro))
91 vars.append(self.set_vars("Distro version:", src_config_info.distro_version)) 91 vars.append(self.set_vars("Distro version:", src_params.distro_version))
92 vars.append(self.set_vars("SDK machine:", src_config_info.curr_sdk_machine)) 92 vars.append(self.set_vars("SDK machine:", src_config_info.curr_sdk_machine))
93 vars.append(self.set_vars("Tune feature:", src_config_info.tune_pkgarch)) 93 vars.append(self.set_vars("Tune features:", src_params.tune_pkgarch))
94 vars.append(self.set_vars("Layers:", src_config_info.layers)) 94 vars.append(self.set_vars("Layers:", src_config_info.layers))
95 95
96 for path in src_config_info.layers: 96 for path in src_config_info.layers:
@@ -248,5 +248,5 @@ class BuildDetailsPage (HobPage):
248 if (v_adj.upper <= v_adj.page_size) or (v_adj.value == v_adj.upper - v_adj.page_size): 248 if (v_adj.upper <= v_adj.page_size) or (v_adj.value == v_adj.upper - v_adj.page_size):
249 treeview.scroll_to_cell(path) 249 treeview.scroll_to_cell(path)
250 250
251 def show_configurations(self, configurations): 251 def show_configurations(self, configurations, params):
252 self.config_tv.show(configurations) 252 self.config_tv.show(configurations, params)