]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cmake-qemu.bbclass: support qemu for cmake
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Mon, 20 Nov 2023 14:46:27 +0000 (15:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Nov 2023 08:42:52 +0000 (08:42 +0000)
commitb197d0b0de1fa5f295d32dbda2eb815ca0153299
tree39231e02b86402f3a46faf06f97a47b833683b69
parentdfed7e63e199009ecca8e2e34f6a823c6e1677e0
cmake-qemu.bbclass: support qemu for cmake

Define the CMAKE_CROSSCOMPILING_EMULATOR variable similar to what the
meson bbclass does. This allows for example to execute cross compilied
unit tests on the build machine when using an SDK.

CMAKE_CROSSCOMPILING_EMULATOR is a semi colon separated list of
paramters which could directly handle the -L and the -E parameters.
Creating a wrapper script is not absolutely mandatory. But anyway lets
do it similar to what the meson.bbclass does and also disable pseudo.

Further information can be found in the camke documentation in the
CMAKE_CROSSCOMPILING_EMULATOR section.

Keep the code optional, as the core does not need this function and does
not intend to use it in the future.

[YOCTO #15214]

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes-recipe/cmake-qemu.bbclass [new file with mode: 0644]