summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-03-29 20:01:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-29 21:25:53 +0100
commite24f10e275e30caa06a5f97b742be1a0996255d7 (patch)
tree14846be557ac1ed96e02519491ec5d7a1737888b /bitbake/lib/bb/ui
parentd30b75fecf5bc00e161982b5b2e956d51055c394 (diff)
downloadpoky-e24f10e275e30caa06a5f97b742be1a0996255d7.tar.gz
Hob: Update configuration after parsing
We need to update the parameters stored in Hob side after configuration is parsed. (Bitbake rev: 9560e4ccef497e878f2cb8624136ab8f193c061a) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 20e605f7e5..8cbc2944ee 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -78,6 +78,25 @@ class Configuration:
78 self.cvs_proxy_host = params["cvs_proxy_host"] 78 self.cvs_proxy_host = params["cvs_proxy_host"]
79 self.cvs_proxy_port = params["cvs_proxy_port"] 79 self.cvs_proxy_port = params["cvs_proxy_port"]
80 80
81 def update(self, params):
82 self.curr_distro = params["distro"]
83 self.dldir = params["dldir"]
84 self.sstatedir = params["sstatedir"]
85 self.sstatemirror = params["sstatemirror"]
86 self.pmake = params["pmake"]
87 self.bbthread = params["bbthread"]
88 self.curr_package_format = " ".join(params["pclass"].split("package_")).strip()
89 self.image_rootfs_size = params["image_rootfs_size"]
90 self.image_extra_size = params["image_extra_size"]
91 self.image_overhead_factor = params['image_overhead_factor']
92 self.incompat_license = params["incompat_license"]
93 self.curr_sdk_machine = params["sdk_machine"]
94 self.conf_version = params["conf_version"]
95 self.lconf_version = params["lconf_version"]
96 self.image_fstypes = params["image_fstypes"].split()
97 # bblayers.conf
98 self.layers = params["layer"].split()
99
81 def load(self, template): 100 def load(self, template):
82 self.curr_mach = template.getVar("MACHINE") 101 self.curr_mach = template.getVar("MACHINE")
83 self.curr_package_format = " ".join(template.getVar("PACKAGE_CLASSES").split("package_")).strip() 102 self.curr_package_format = " ".join(template.getVar("PACKAGE_CLASSES").split("package_")).strip()
@@ -465,10 +484,14 @@ class Builder(gtk.Window):
465 self.parameters = Parameters(params) 484 self.parameters = Parameters(params)
466 self.handler.generate_configuration() 485 self.handler.generate_configuration()
467 elif initcmd == self.handler.GENERATE_CONFIGURATION: 486 elif initcmd == self.handler.GENERATE_CONFIGURATION:
487 params = self.handler.get_parameters()
488 self.configuration.update(params)
468 self.image_configuration_page.switch_machine_combo() 489 self.image_configuration_page.switch_machine_combo()
469 elif initcmd in [self.handler.GENERATE_RECIPES, 490 elif initcmd in [self.handler.GENERATE_RECIPES,
470 self.handler.GENERATE_PACKAGES, 491 self.handler.GENERATE_PACKAGES,
471 self.handler.GENERATE_IMAGE]: 492 self.handler.GENERATE_IMAGE]:
493 params = self.handler.get_parameters()
494 self.configuration.update(params)
472 self.handler.request_package_info_async() 495 self.handler.request_package_info_async()
473 elif initcmd == self.handler.POPULATE_PACKAGEINFO: 496 elif initcmd == self.handler.POPULATE_PACKAGEINFO:
474 if self.current_step == self.RCPPKGINFO_POPULATING: 497 if self.current_step == self.RCPPKGINFO_POPULATING: