<?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>9002</bug_id>
          
          <creation_ts>2016-01-26 10:42:06 +0000</creation_ts>
          <short_desc>Move directory scan logic out of toaster.bbclass into buildinfohelper</short_desc>
          <delta_ts>2016-07-19 11:09:32 +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>Toaster</product>
          <component>toaster</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>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliot Smith">elliot.smith</reporter>
          <assigned_to name="Elliot Smith">elliot.smith</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <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>58223</commentid>
    <comment_count>0</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-01-26 10:42:06 +0000</bug_when>
    <thetext>When a build completes, toaster.bbclass scans the tmp/deploy directory for SDK artifacts and image files. We then fire events which represent the files we found. This means that toaster.bbclass has quite a bit of logic in it about what Toaster is looking for, in terms of file locations etc.

The problem with this is that Toaster runs its own &quot;local&quot; bitbake, using metadata from the appropriate Yocto branch; and that metadata contains toaster.bbclass. This means that Toaster may be out of sync with toaster.bbclass. So, for example, we might be running a version of bitbake (via Toaster) which puts SDK artifacts in tmp/deploy/sdk; while the &quot;metadata&quot; we&apos;re using is expecting a different directory structure like tmp/work/deploy.

Note that bitbake supplies a consistent SDK_DEPLOY variable representing the top directory containing the SDK artifacts; but our toaster.bbclass makes additional assumptions about the locations of files under that directory.

Moving the processing out of toaster.bbclass will make it more declarative, so that we aren&apos;t in so much danger of breaking the contract between buildinfohelper and toaster.bbclass.

Ideally, the interface between buildinfohelper and toaster.bbclass should be reduced to simple events indicating when the build has finished, when images are created, when and where the SDK artifacts are built etc. These should contain minimal relevant data (e.g. directory paths, file names) which are otherwise cumbersome for Toaster to access.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63581</commentid>
    <comment_count>1</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-07-01 14:55:09 +0000</bug_when>
    <thetext>This was done as part of the work for bug 8556.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>