Re: [OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-23 Thread Richard Purdie
On Tue, 2023-11-21 at 12:21 +0100, Alexander Kanavin wrote: > On Tue, 21 Nov 2023 at 12:12, Jose Quaresma wrote: > > > I was using it for running Unit Tests on the host before I deployed > > > them to the target device as ptest. This worked well. It is well > > > integrated with cmake and therefor

Re: [OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-23 Thread Richard Purdie
On Mon, 2023-11-20 at 15:46 +0100, Adrian Freihofer wrote: > Provide an easy way to enable cmake-qemu e.g. on distro level for all > recipes inheriting the cmake.bbclass. > > Therefore a new variable is introduced: OECMAKE_EXEWRAPPER_QEMU. > > If set to "1" all recipes built with CMake can use qe

Re: [OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-22 Thread Jose Quaresma
Alexander Kanavin escreveu no dia terça, 21/11/2023 à(s) 11:21: > On Tue, 21 Nov 2023 at 12:12, Jose Quaresma > wrote: > >> I was using it for running Unit Tests on the host before I deployed > >> them to the target device as ptest. This worked well. It is well > >> integrated with cmake and the

Re: [OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-21 Thread Alexander Kanavin
On Tue, 21 Nov 2023 at 12:12, Jose Quaresma wrote: >> I was using it for running Unit Tests on the host before I deployed >> them to the target device as ptest. This worked well. It is well >> integrated with cmake and therefore also with IDEs. So I thought that >> there are certain use cases wher

Re: [OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-21 Thread Jose Quaresma
escreveu no dia segunda, 20/11/2023 à(s) 18:41: > > > > > > Are you sure this works in the majority of scenarios? > > > Last time I worked on this qemu user mode failed to run > > > multithreading applications. > > > > > > > > > Sorry, I was wrong above. > > The issue was not multithreading but w

Re: [OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-20 Thread Adrian Freihofer
> > > > Are you sure this works in the majority of scenarios? > > Last time I worked on this qemu user mode failed to run > > multithreading applications. > > > > > Sorry, I was wrong above. > The issue was not multithreading but with the fork system call. >   Hi Jose I was using it for runni

Re: [OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-20 Thread Jose Quaresma
Jose Quaresma via lists.openembedded.org escreveu no dia segunda, 20/11/2023 à(s) 17:17: > Hi Adrian, > > Adrian Freihofer escreveu no dia segunda, > 20/11/2023 à(s) 14:46: > >> Provide an easy way to enable cmake-qemu e.g. on distro level for all >> recipes inheriting the cmake.bbclass. >> >> T

Re: [OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-20 Thread Jose Quaresma
Hi Adrian, Adrian Freihofer escreveu no dia segunda, 20/11/2023 à(s) 14:46: > Provide an easy way to enable cmake-qemu e.g. on distro level for all > recipes inheriting the cmake.bbclass. > > Therefore a new variable is introduced: OECMAKE_EXEWRAPPER_QEMU. > > If set to "1" all recipes built wit

[OE-core] [PATCH 2/2] cmake.bbclass: optionally support qemu

2023-11-20 Thread Adrian Freihofer
Provide an easy way to enable cmake-qemu e.g. on distro level for all recipes inheriting the cmake.bbclass. Therefore a new variable is introduced: OECMAKE_EXEWRAPPER_QEMU. If set to "1" all recipes built with CMake can use qemu to execute cross-compiled binaries on the build machine. One use cas