[yocto] Yocto doesn't recognize cross-compiled binaries inside SDK

Alexander Kanavin alexander.kanavin at linux.intel.com
Mon Dec 5 06:29:49 PST 2016


On 12/02/2016 08:36 PM, Kun Yi wrote:
> Thanks for the explanation Alex! Will give the alternative you suggested a try.
> As I understand I will need to instruct Yocto to fetch necessary
> "native" toolchains and libs to compile the native variant recipe.
> Doesn't that make my recipe non-portable to other host architectures?

The recipe remains portable, because you don't need to specify any 
particular native architecure. Simply add

BBCLASSEXTEND = "native"

to the recipe, and that will enable the native variant without any 
additional fuss (*):

$ bitbake myrecipe-native

(*) Depending on your chain of dependencies, you may need to enable 
native variants for them in a similar fashion.




Alex



More information about the yocto mailing list