mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
bitbake/cooker.py: Fix handling of extra configuration files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -62,10 +62,10 @@ class BBCooker:
|
|||||||
|
|
||||||
bb.data.inheritFromOS(self.configuration.data)
|
bb.data.inheritFromOS(self.configuration.data)
|
||||||
|
|
||||||
for f in self.configuration.file:
|
# Add conf/bitbake.conf to the list of configuration files to read
|
||||||
self.parseConfigurationFile( f )
|
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:
|
if not self.configuration.cmd:
|
||||||
self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data) or "build"
|
self.configuration.cmd = bb.data.getVar("BB_DEFAULT_TASK", self.configuration.data) or "build"
|
||||||
@@ -385,9 +385,10 @@ class BBCooker:
|
|||||||
shell.start( self )
|
shell.start( self )
|
||||||
sys.exit( 0 )
|
sys.exit( 0 )
|
||||||
|
|
||||||
def parseConfigurationFile( self, afile ):
|
def parseConfigurationFile( self, afiles ):
|
||||||
try:
|
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
|
# Handle any INHERITs and inherit the base class
|
||||||
inherits = ["base"] + (bb.data.getVar('INHERIT', self.configuration.data, True ) or "").split()
|
inherits = ["base"] + (bb.data.getVar('INHERIT', self.configuration.data, True ) or "").split()
|
||||||
|
|||||||
Reference in New Issue
Block a user