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
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to