diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-09-01 20:38:10 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-05 20:25:41 +0100 |
commit | cffbab5c0671005072db3e8f577fa3ffb1e2cd68 (patch) | |
tree | 4cda95ea411c1904ef0f2e6c4fa7f2140be9b590 /bitbake/lib/bb/ui/hob.py | |
parent | ba91445de50ed4a4a947948631fdd36a0e3e145d (diff) | |
download | poky-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/hob.py')
-rw-r--r-- | bitbake/lib/bb/ui/hob.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index c2acadac91..c1302e51fa 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py | |||
@@ -192,8 +192,8 @@ class MainWindow (gtk.Window): | |||
192 | self.curr_mach = mach | 192 | self.curr_mach = mach |
193 | # Flush this straight to the file as MACHINE is changed | 193 | # Flush this straight to the file as MACHINE is changed |
194 | # independently of other 'Preferences' | 194 | # independently of other 'Preferences' |
195 | self.configurator.setLocalConfVar('MACHINE', mach) | 195 | self.configurator.setConfVar('MACHINE', mach) |
196 | self.configurator.writeLocalConf() | 196 | self.configurator.writeConf() |
197 | handler.set_machine(mach) | 197 | handler.set_machine(mach) |
198 | handler.reload_data() | 198 | handler.reload_data() |
199 | 199 | ||