diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-05-06 13:10:59 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2006-05-06 13:10:59 +0000 |
commit | b708cf280fd1bc9566f822eeff4cc670a3ce28a0 (patch) | |
tree | 8285132efe9b7e58de46abc494255b089cde023c /bin | |
parent | f22c825e68d83deb5483896e6c3fe93885e6df8a (diff) | |
download | bitbake-b708cf280fd1bc9566f822eeff4cc670a3ce28a0.tar.gz |
bitbake/bin/bitbake:
BBConfiguration do not initialise the
configuration twice
Save a copy of th configuration data and update
it.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bitbake | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/bin/bitbake b/bin/bitbake index be7b94bc1..ec6296caa 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -189,7 +189,6 @@ class BBConfiguration( object ): def __init__( self, options ): for key, val in options.__dict__.items(): setattr( self, key, val ) - self.data = data.init() #============================================================================# # BBCooker @@ -819,6 +818,12 @@ class BBCooker: def cook( self, configuration, args ): + """ + We are building stuff here. We do the building + from here. By default we try to execute task + build. + """ + self.configuration = configuration if not self.configuration.cmd: @@ -834,6 +839,13 @@ class BBCooker: self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) ) + + # + # Special updated configuration we use for firing events + # + self.configuration.event_data = bb.data.createCopy(self.configuration.data) + bb.data.update_data(self.configuration.event_data) + if self.configuration.show_environment: self.showEnvironment() sys.exit( 0 ) @@ -920,7 +932,7 @@ class BBCooker: for t in self.status.world_target: pkgs_to_build.append(t) - bb.event.fire(bb.event.BuildStarted(buildname, pkgs_to_build, self.configuration.data)) + bb.event.fire(bb.event.BuildStarted(buildname, pkgs_to_build, self.configuration.event_data)) failures = 0 for k in pkgs_to_build: @@ -938,7 +950,7 @@ class BBCooker: if self.configuration.abort: sys.exit(1) - bb.event.fire(bb.event.BuildCompleted(buildname, pkgs_to_build, self.configuration.data, failures)) + bb.event.fire(bb.event.BuildCompleted(buildname, pkgs_to_build, self.configuration.event_data, failures)) sys.exit( self.stats.show() ) |