Skip to contentSkip to conversation

Install native recipe into filesystem

DISCUSSION Jeff Kaisner 3 participants 3 messages Nov 19, 2019 – Nov 20, 2019

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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:

https://wiki.yoctoproject.org/wiki/Technical_FAQ#Why_are_all_of_these_-native_items_being_built_when_my_host_distro_has_some_of_these_available.3F

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
#2 lore raw
In reply to Jeff Kaisner
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