summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-09-01 20:38:10 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-05 20:25:41 +0100
commitcffbab5c0671005072db3e8f577fa3ffb1e2cd68 (patch)
tree4cda95ea411c1904ef0f2e6c4fa7f2140be9b590 /bitbake/lib/bb/ui/crumbs/hobeventhandler.py
parentba91445de50ed4a4a947948631fdd36a0e3e145d (diff)
downloadpoky-cffbab5c0671005072db3e8f577fa3ffb1e2cd68.tar.gz
hob: use both pre and post files for hob configuration
We need to set various variables *before* parse begins, the simplest way to ensure this is to use a pre configuration file for the relevant configuration entries. This series adapts hob to use both pre and post files to store its configuration. Any variables which affect initial parse are set in the pre file and all others in the post file. Unfortunately this requires hob related code to have even more hard-coded data as to what is relevant but this is the simplest way to solve issues with variables and parse order at this time. Addresses [YOCTO #1281] (Bitbake rev: 02ab0e11d8dd42f5ca440b3d8d2073e23f55113a) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index fca4401420..66dffac223 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -65,7 +65,7 @@ class HobHandler(gobject.GObject):
65 gobject.TYPE_STRING,)), 65 gobject.TYPE_STRING,)),
66 } 66 }
67 67
68 (CFG_PATH_LOCAL, CFG_PATH_HOB, CFG_PATH_LAYERS, CFG_FILES_DISTRO, CFG_FILES_MACH, CFG_FILES_SDK, FILES_MATCH_CLASS, GENERATE_TGTS, REPARSE_FILES, BUILD_IMAGE) = range(10) 68 (CFG_PATH_LOCAL, CFG_PATH_PRE, CFG_PATH_POST, CFG_PATH_LAYERS, CFG_FILES_DISTRO, CFG_FILES_MACH, CFG_FILES_SDK, FILES_MATCH_CLASS, GENERATE_TGTS, REPARSE_FILES, BUILD_IMAGE) = range(11)
69 69
70 def __init__(self, taskmodel, server): 70 def __init__(self, taskmodel, server):
71 gobject.GObject.__init__(self) 71 gobject.GObject.__init__(self)
@@ -90,9 +90,12 @@ class HobHandler(gobject.GObject):
90 self.generating = True 90 self.generating = True
91 91
92 if self.current_command == self.CFG_PATH_LOCAL: 92 if self.current_command == self.CFG_PATH_LOCAL:
93 self.current_command = self.CFG_PATH_HOB 93 self.current_command = self.CFG_PATH_PRE
94 self.server.runCommand(["findConfigFilePath", "hob.local.conf"]) 94 self.server.runCommand(["findConfigFilePath", "hob-pre.conf"])
95 elif self.current_command == self.CFG_PATH_HOB: 95 elif self.current_command == self.CFG_PATH_PRE:
96 self.current_command = self.CFG_PATH_POST
97 self.server.runCommand(["findConfigFilePath", "hob-post.conf"])
98 elif self.current_command == self.CFG_PATH_POST:
96 self.current_command = self.CFG_PATH_LAYERS 99 self.current_command = self.CFG_PATH_LAYERS
97 self.server.runCommand(["findConfigFilePath", "bblayers.conf"]) 100 self.server.runCommand(["findConfigFilePath", "bblayers.conf"])
98 elif self.current_command == self.CFG_PATH_LAYERS: 101 elif self.current_command == self.CFG_PATH_LAYERS: