<?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>13614</bug_id>
          
          <creation_ts>2019-10-30 21:43:58 +0000</creation_ts>
          <short_desc>devtool modify virtual/kernel fails with qemuarm</short_desc>
          <delta_ts>2019-11-07 15:27:08 +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>Scripts and Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85470</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2019-10-30 21:43:58 +0000</bug_when>
    <thetext>If you have MACHINE set to qemuarm and then run devtool modify virtual/kernel  you get the following error:

----------- snip -----------
INFO: Copying kernel config to workspace
Traceback (most recent call last):
  File &quot;/data/poky/scripts/devtool&quot;, line 334, in &lt;module&gt;
    ret = main()
  File &quot;/data/poky/scripts/devtool&quot;, line 321, in main
    ret = args.func(args, config, basepath, workspace)
  File &quot;/data/poky/scripts/lib/devtool/standard.py&quot;, line 844, in modify
    shutil.copy2(os.path.join(kconfpath, &apos;.config&apos;),srctree)
  File &quot;/usr/lib/python3.6/shutil.py&quot;, line 257, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File &quot;/usr/lib/python3.6/shutil.py&quot;, line 120, in copyfile
    with open(src, &apos;rb&apos;) as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: &apos;/data/poky/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/5.2.17+gitAUTOINC+b867b78b50_255a750d28-r0/linux-qemuarm-standard-build/.config&apos;
----------- snip -----------

The actual workdir is at /data/poky/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/5.2.17+gitAUTOINC+b867b78b50_47b80ef7bd-r0/ so it&apos;s using the wrong SRCREV. The same thing works fine with MACHINE = &quot;qemux86&quot;, so I suspect that it&apos;s using the generic SRCREV rather than the one for the machine, given that qemuarm has its own custom value (see meta/recipes-kernel/linux/linux-yocto_5.2.bb) whereas qemux86 uses the same hash as the generic SRCREV.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85485</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-11-07 15:27:08 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d427f58977a46f2bda4b7f30cf83793373e401d3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>