<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15214</bug_id>
          
          <creation_ts>2023-09-13 10:18:29 +0000</creation_ts>
          <short_desc>Add support for CMAKE_CROSSCOMPILING_EMULATOR to cmake.bbclass</short_desc>
          <delta_ts>2024-01-14 09:52:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>4.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Adrian">adrian.freihofer</assigned_to>
          <cc>adrian.freihofer</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>tgamblin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96402</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-09-13 10:18:29 +0000</bug_when>
    <thetext>CMake can build and run code at configure time with the try_run() function:

https://cmake.org/cmake/help/latest/command/try_run.html

Predictably, this fails when cross-compiling.

CMake does have support for an emulator (such as qemu) with the CMAKE_CROSSCOMPILING_EMULATOR variable:

https://cmake.org/cmake/help/latest/variable/CMAKE_CROSSCOMPILING_EMULATOR.html

We should support this in cmake.bbclass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96560</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian">adrian.freihofer</who>
    <bug_when>2023-09-22 06:41:54 +0000</bug_when>
    <thetext>Would you like to implement it differently than it is implemented by the patch here:
https://patchwork.yoctoproject.org/project/oe-core/patch/20230910161850.4032227-3-adrian.freihofer@siemens.com/ ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96568</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-09-25 10:16:01 +0000</bug_when>
    <thetext>Yeah that looks good :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96817</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:23 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97787</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian">adrian.freihofer</who>
    <bug_when>2024-01-14 09:52:33 +0000</bug_when>
    <thetext>Implementated:

- implementation: d7c05e4eed4ed436f2ce961df46f9654af83ffec
- tests: 2df986746b4010a24def7369f356b50e52bda50d..85f84b4090f3fc84b377d37a18af7e4cb1b78f69
- docs: f72759de573c97b291717cfe6043305b9797282e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>