From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Maik Vermeulen <maik.vermeulen@lightyear.one>,
yocto@lists.yoctoproject.org
Subject: Re: [yocto] Building for both target and host
Date: Wed, 24 Aug 2022 14:01:18 +0100 [thread overview]
Message-ID: <d1306db241ff440fdf8d005f598b6c6acf5b63e8.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAKO9uzpWNuqqtnvzRvZM7btNOmr344U2zp0W9hr86ZrUbLjj_Q@mail.gmail.com>
On Wed, 2022-08-24 at 14:18 +0200, Maik Vermeulen wrote:
> Hi,
>
> We have a recipe with a CMake project which works fine on target, but
> ideally we would like to test functionality on our host systems
> first.
> How can we also have it generate executables for the host system?
>
> Do we need to make changes to the recipe, CMakeLists.txt, or both?
> I read something about autotools, but it's completely new to me.
>
> Any hints on what the easiest approach would be would be greatly
> appreciated!
BBCLASSEXTEND = "native"
would create a variant of the recipe X as X-native which would run on
the build host. That may or may not be what you're looking for :)
Cheers,
Richard
next prev parent reply other threads:[~2022-08-24 13:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 12:18 Building for both target and host Maik Vermeulen
2022-08-24 13:01 ` Richard Purdie [this message]
2022-08-24 14:37 ` [yocto] " Maik Vermeulen
2022-08-24 14:44 ` Alexander Kanavin
2022-08-24 14:48 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d1306db241ff440fdf8d005f598b6c6acf5b63e8.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=maik.vermeulen@lightyear.one \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.