behind the code --bitbake demo
时间:2007-09-27 来源:linuxGentoo
Example : Bitbake demo
In bitbake/bin/bitbake
options+argv ---> BBCooker() [instance class object]
--->call BBCooker.cook function param is options and argv
instance BBConfiguration class with options param
go cook(BBConfiguration object,argv) function
[BBConfiguration class ]:initial a attr dict {'cmd':'value'}
gointo cookfunction()
{
set bitbake cmd value
init a data class instance
bb.data.init()
[bb.data.init()]
{
call data_smart.DataSmart()
{attr :dict = {},_special_values,_seen_overrides
call init COWDictBase class()
}
}
parseConfigurationFile('conf/bitbake.conf')
go into parseConfigurationFile function
{self.configuration.data = bb.parse.handle( afile, self.configuration.data )
go bitbake/lib/bb/parse/__init__.py
into handle function param(conf/bitbake.conf,data.init()
??
}
}