Thanks. that works. but i am confused :)
in the original recipe, i was doing do_autogen "after" configure, assuming 
do_configure will install all the needed dependencies and i can use those 
native tools after that. 
but with your solution (do_configure_prepend, which  works),  it gives the 
impression we are using proto-c-native before proto-c-native is installed. how 
does the dependencies are ordered?
thanks,Sridhar Pitchai

From: ross.bur...@intel.com
Date: Fri, 12 Feb 2016 10:35:10 +0000
Subject: Re: [yocto] native tool is not installed before it is used
To: sridhar.pitc...@outlook.com
CC: yocto@yoctoproject.org


On 12 February 2016 at 06:10, Sridhar Pitchai <sridhar.pitc...@outlook.com> 
wrote:
I have a recipe, where It need protobuf-c-compiler (natvily) to auto generate 
files before it can be compiled. i have added protobuf-c-native in the DEPENDS 
list. but the compilation is failling at do_autogen, compiling the proto-c is 
not installed in staging_bindir_native.But if  bitbake protobuf-c-native 
manually and then bitbake the recipe it is working fine. 
That's because DEPENDS = "foo" actually means do_configure[depends] = "foo".  
This is so that packages can fetch/unpack/patch whilst their build dependencies 
are being built.
Instead of adding a new task to run autogen which will run *before* configure 
and therefore before your dependencies have been build, simply 
do_configure_prepend() if the operations need to happen before cmake runs.
Ross                                      
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to