Install native recipe into filesystem
We have several executables that can run on the target (ARM64) but also on the host system (x86). I added the BBCLASSEXTEND = "native" and can build all the recipes in native mode. Once done, I would like to be able to install them on the host system, but don't see a package for them (or understand that part of the process).
Any help would be appreciated.
Regards,
Jeff
Quoted 1 line · Jeff Kaisner
We have several executables that can run on the target (ARM64) but also on the host system (x86). I added the BBCLASSEXTEND = "native" and can build all the recipes in native mode.
What do you mean here by 'in native mode'? I'd expect that you mean:
$ bitbake somepackage-native Right?
A few explanations related to your question are here:
https://wiki.yoctoproject.org/wiki/Technical_FAQ#What_does_.22native.22_mean.3F
and here:
Quoted 3 lines
Once done, I would like to be
able to install them on the host system, but don’t see a package for them (or understand that part of the process).
You don't add -native package to the target system; they are for the build (host) system to help build object files for the target machine.
You can either edit the conf/local.conf file then build a standard image or define your own image. For the former:
https://wiki.yoctoproject.org/wiki/Cookbook:Example:Adding_packages_to_your_OS_image
Additional details are in the YP Mega Manual:
https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html
Good luck and welcome to the Yocto Project,
../Randy
Quoted 8 lines
Any help would be appreciated.
Regards,
Jeff
Signature · 2 lines
# Randy MacLeod # Wind River Linux
Quoted 1 line · Jeff Kaisner
We have several executables that can run on the target (ARM64) but also on the host system (x86). I added the BBCLASSEXTEND = "native" and can build all the recipes in native mode. Once done, I would like to be able to install them on the host system, but don’t see a package for them (or understand that part of the process).
I'm guessing you have a recipe called something like foo.bb. You've added BBCLASSEXTEND=native to this, and can bitbake foo-native.
If you want to also build this for the target, simply add foo to the IMAGE_DEPENDS or directly bitbake foo.
Ross