diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-12-11 12:48:49 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-12-11 12:48:49 +0000 |
commit | cb8684f9bce2ba06f42f1f49e4feb4675c311c24 (patch) | |
tree | 8dd65e5ebb403d96f97ba3ef3693dd4ece344f28 /bitbake/lib | |
parent | c02e38901b56af3a0ad03b023d04bada008bae5a (diff) | |
download | openembedded-core-cb8684f9bce2ba06f42f1f49e4feb4675c311c24.tar.gz openembedded-core-cb8684f9bce2ba06f42f1f49e4feb4675c311c24.tar.bz2 openembedded-core-cb8684f9bce2ba06f42f1f49e4feb4675c311c24.tar.xz openembedded-core-cb8684f9bce2ba06f42f1f49e4feb4675c311c24.zip |
bitbake/cooker.py: Fix handling of extra configuration files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 230afcb4b..14ccfb59a 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -62,10 +62,10 @@ class BBCooker: bb.data.inheritFromOS(self.configuration.data) - for f in self.configuration.file: - self.parseConfigurationFile( f ) + # Add conf/bitbake.conf to the list of configuration files to read + self.configuration.file.append( os.path.join( "conf", "bitbake.conf" ) ) - self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) ) + self.parseConfigurationFile(self.configuration.file) if not self.configuration.cmd: self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data) or "build" @@ -385,9 +385,10 @@ class BBCooker: shell.start( self ) sys.exit( 0 ) - def parseConfigurationFile( self, afile ): + def parseConfigurationFile( self, afiles ): try: - self.configuration.data = bb.parse.handle( afile, self.configuration.data ) + for afile in afiles: + self.configuration.data = bb.parse.handle( afile, self.configuration.data ) # Handle any INHERITs and inherit the base class inherits = ["base"] + (bb.data.getVar('INHERIT', self.configuration.data, True ) or "").split() |