One option is to actually build an image for a qemux86_64 machine with the items you need (or qemuarm64 if that's your build host), then use 'runqemu kvm' to get native execution speed in a fully virtualized environment. 'native' recipes are generally meant as a springboard to get the binaries that are needed to build target recipes, and not a way to do 'native testing'.
Alex On Wed, 24 Aug 2022 at 16:38, Maik Vermeulen <[email protected]> wrote: > Hi Richard, > > Thanks, that seems like pretty much what I need! > However, currently the recipes in the dependency chain don't all contain > 'native' counterparts. > Most actually wouldn't really need to for the executable to be built. > Is there a way to neatly work around this too? > > Kind regards, > > Maik Vermeulen > > Embedded Software Engineer — Lightyear <https://www.lightyear.one/> > +31 6 16 82 73 79 <+31616827379> > > > On Wed, Aug 24, 2022 at 3:01 PM Richard Purdie < > [email protected]> wrote: > >> 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 >> >> >> > [image: > https://lightyear.one/careers?utm_source=signature&utm_campaign=spotlightroles&utm_medium=email#vacancies] > <https://lightyear.one/careers?utm_source=signature&utm_campaign=spotlightroles&utm_medium=email#vacancies> > > > > > Automotive Campus 70 —5708 JZ Helmond, the Netherlands > www.lightyear.one <https://lightyear.one/> > <https://www.linkedin.com/company/lightyear.one/> > > This email may contain information which is privileged and/or > confidential. If you received this e-mail in error, please notify us > immediately by e-mail and delete the email without copying or disclosing > its contents to any other person. Lightyear is a trade name of Atlas > Technologies B.V. and is registered at the Dutch Chamber of Commerce under > number 67264298. > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#57894): https://lists.yoctoproject.org/g/yocto/message/57894 Mute This Topic: https://lists.yoctoproject.org/mt/93225156/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
