[bitbake-devel] [PATCH_V2 03/16] hob/bitbake: create a template (a .bb file) from hob through bitbake

Paul Eggleton paul.eggleton at linux.intel.com
Fri Jul 26 14:22:29 UTC 2013


Hi Cristiana,

On Thursday 25 July 2013 14:42:16 Cristiana Voicu wrote:
> diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
> index 49e6345..7d54ab1 100644
> --- a/bitbake/lib/bb/cooker.py
> +++ b/bitbake/lib/bb/cooker.py
> @@ -1100,16 +1100,29 @@ class BBCooker:
>  
>          self.configuration.server_register_idlecallback(buildTargetsIdle,
> rq) 
> -    def generateNewImage(self, image, base_image, package_queue):
> +    def ensureDir(self, d):
> +        if not os.path.exists(d):
> +            os.makedirs(d)

Could you use bb.utils.mkdirhier() rather than creating an additional function 
to do the same thing?

Thanks,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the bitbake-devel mailing list