* Install native recipe into filesystem
@ 2019-11-19 21:15 Jeff Kaisner
2019-11-20 1:34 ` Randy MacLeod
2019-11-20 11:53 ` Ross Burton
0 siblings, 2 replies; 3+ messages in thread
From: Jeff Kaisner @ 2019-11-19 21:15 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2252 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Install native recipe into filesystem
2019-11-19 21:15 Install native recipe into filesystem Jeff Kaisner
@ 2019-11-20 1:34 ` Randy MacLeod
2019-11-20 11:53 ` Ross Burton
1 sibling, 0 replies; 3+ messages in thread
From: Randy MacLeod @ 2019-11-20 1:34 UTC (permalink / raw)
To: Jeff Kaisner, yocto@yoctoproject.org
On 11/19/19 4:15 PM, Jeff Kaisner wrote:
> 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
> 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
>
> Any help would be appreciated.
>
> Regards,
>
> Jeff
>
>
--
# Randy MacLeod
# Wind River Linux
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Install native recipe into filesystem
2019-11-19 21:15 Install native recipe into filesystem Jeff Kaisner
2019-11-20 1:34 ` Randy MacLeod
@ 2019-11-20 11:53 ` Ross Burton
1 sibling, 0 replies; 3+ messages in thread
From: Ross Burton @ 2019-11-20 11:53 UTC (permalink / raw)
To: Jeff Kaisner, Yocto-mailing-list
On 19/11/2019 21:15, Jeff Kaisner wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-20 11:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-19 21:15 Install native recipe into filesystem Jeff Kaisner
2019-11-20 1:34 ` Randy MacLeod
2019-11-20 11:53 ` Ross Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox