[yocto] Compiling a simple command

Paul D. DeRocco pderocco at ix.netcom.com
Thu Jun 20 23:21:34 PDT 2013


> From: Nicolas Dechesne
> 
> here you are mixing a recipe for an image with a recipe for a 
> 'package', and that's wrong. you have recipes for images, and 
> recipes for packages.  for package, bitbake will actually do 
> the standard fetch/unpack/patch/configure/compile/package 
> steps, but not for images. all images recipe inherit from 
> image.bbclass, and if you check that file you can see that 
> all 'normal package' tasks are disabled (toward the end of the file)
> 
> so, while your recipe is indeed syntactically correct, the 
> do_compile() and do_install() aren't never really called.
> 
> you need to make a separate recipe for your package, e.g. 
> fastuart_1.0.bb (and removes the 'require' at the beginning).
> 
> then you can create your image recipe, and request your 
> package to be installed in the image , you can do something like that:
> 
> require recipes-core/images/core-image-base.bb 
> <http://core-image-base.bb/> 
> 
> IMAGE_INSTALL += 'fastuart'

Thanks, that appears to work.

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com 




More information about the yocto mailing list