Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=no autolearn_force=no version=3.4.0 Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC4E2C433EF for ; Fri, 24 Sep 2021 09:06:33 +0000 (UTC) Subject: Cross-compiling or compiling on target VM? To: yocto@lists.yoctoproject.org From: arnaud.bienner@dolby.com X-Originating-Location: DE (84.207.216.243) X-Originating-Platform: Mac Firefox 92 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Fri, 24 Sep 2021 02:06:32 -0700 Message-ID: <5SeU.1632474392921086265.Laoa@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="EgWlLwnF43CQtupQARAU" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 24 Sep 2021 09:06:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/54838 --EgWlLwnF43CQtupQARAU Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, We are starting a new project using Yocto to build a custom Linux image whi= ch matches our needs. We are new to Yocto and still trying to figure out the best way to work wit= h it. Especially, if it is best to cross-compile or to build on a VM running an i= mage of the target. Some background: Our target system is x86_64, and we are all working on x86_64 computers obv= iously. For now, we don't have yet a physical target system so we are running the i= mage generated by Yocto in VirtualBox or VMWare. For practical reasons, since not all developers use the same OS (Windows, m= acOS) we decided to do all development work on Linux VM (Debian distributio= n) so everyone has the same system. For now, we are cross-compiling applications using Yocto SDK in that Debian= VM, copying it to the Yocto VM to run it. Even though copying/deploying and running them could be somehow automated, = since we are developing on a Linux VM anyway, I thought it could be best to= build a Yocto image (maybe as an additional "dev" image based on the exist= ing one) which contains all tools we need (gcc, cmake, etc.). This way, we could execute the binaries (in particular the unit tests) loca= lly. For some of our unit tests in particular that we run at build time, it soun= ds easier to run them locally, compared to deploying them and running them = remotely. Any thoughts about this? In advance, thanks a lot for your help. Best regards, Arnaud --EgWlLwnF43CQtupQARAU Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,

We are starting a new project using Yocto to build a custom = Linux image which matches our needs.
We are new to Yocto and still try= ing to figure out the best way to work with it.

Especially, if i= t is best to cross-compile or to build on a VM running an image of the targ= et.

Some background:
Our target system is x86_64, and we ar= e all working on x86_64 computers obviously.
For now, we don't have ye= t a physical target system so we are running the image generated by Yocto i= n VirtualBox or VMWare.

For practical reasons, since not all dev= elopers use the same OS (Windows, macOS) we decided to do all development w= ork on Linux VM (Debian distribution) so everyone has the same system.
For now, we are cross-compiling applications using Yocto SDK in that Debia= n VM, copying it to the Yocto VM to run it.
Even though copying/deploy= ing and running them could be somehow automated, since we are developing on= a Linux VM anyway, I thought it could be best to build a Yocto image (mayb= e as an additional "dev" image based on the existing one) which contains al= l tools we need (gcc, cmake, etc.).

This way, we could execute t= he binaries (in particular the unit tests) locally.
For some of our un= it tests in particular that we run at build time, it sounds easier to run t= hem locally, compared to deploying them and running them remotely.
Any thoughts about this?

In advance, thanks a lot for your he= lp.

Best regards,
Arnaud --EgWlLwnF43CQtupQARAU--