From cb8684f9bce2ba06f42f1f49e4feb4675c311c24 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 11 Dec 2009 12:48:49 +0000 Subject: bitbake/cooker.py: Fix handling of extra configuration files Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 230afcb4bc..14ccfb59aa 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() -- cgit v1.2.3-54-g00ecf