From 62c908c88b342370d2e179953c9e07094a6060b5 Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Sun, 15 Apr 2012 02:58:58 +0800 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 1 - 1 file changed, 1 deletion(-) (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py') diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 17d3fe4a05..7a3cc6b3f9 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py @@ -495,7 +495,6 @@ class HobHandler(gobject.GObject): params["target_arch"] = self.server.runCommand(["getVariable", "TARGET_ARCH"]) or "" params["tune_pkgarch"] = self.server.runCommand(["getVariable", "TUNE_PKGARCH"]) or "" params["bb_version"] = self.server.runCommand(["getVariable", "BB_MIN_VERSION"]) or "" - params["tune_arch"] = self.server.runCommand(["getVariable", "TUNE_ARCH"]) or "" params["default_task"] = self.server.runCommand(["getVariable", "BB_DEFAULT_TASK"]) or "build" -- cgit v1.2.3-54-g00ecf