<?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>8456</bug_id>
          
          <creation_ts>2015-10-07 17:34:53 +0000</creation_ts>
          <short_desc>Add feature to add layers to Toaster from external source</short_desc>
          <delta_ts>2016-09-15 14:31: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>Toaster</product>
          <component>toaster</component>
          <version>2.1</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>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Wood">michael.g.wood</reporter>
          <assigned_to name="Michael Wood">michael.g.wood</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>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55040</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-10-07 17:34:53 +0000</bug_when>
    <thetext>Add a feature to be able to add layers (globally rather than project specific) to Toaster from a pre-defined list of layers in a file which is picked up at start up.

Pre-defined layers would be
 - A layer name
 - A file location that the layer can be found in
 - What release that layer is valid for

This requires that toaster can:
 - Use layers from directories which are both git and non git sources (such as an extracted tar archive)
 - Load a config file to populate the layer information


History:

Originally we tried using the toasterconf.json but it is quite tricky because it&apos;s really an &quot;internal&quot; file to toaster for the purposes of switching between poky and openembedded setups. We also have the issue that toaster assumes that the layers are in git repositories. Work to avoid that assumption by Sujith has been done here and can be referred to when we implement this feature:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=sujith/Import-external-layers-toaster-and-error-fix

Proposed solution:

- Add a management command to load layers e.g. manage.py loadlayers yourlayers.conf
- Fix toaster git repository assumptions</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55041</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-10-07 19:03:04 +0000</bug_when>
    <thetext>Alternative solution would be to go back to the toasterconf.json and fix it so that it makes more sense for loading these pre-defined layers, releases, and also fix toaster git repository assumptions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57934</commentid>
    <comment_count>2</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-01-18 20:37:52 +0000</bug_when>
    <thetext>I vote for option 2. fix toasterconf.json so it is more sane and also remove/scrub the git assumptions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66203</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2016-09-15 14:31:08 +0000</bug_when>
    <thetext>We&apos;ve now migrated to using loaddata which can load django fixtures instead of the homebrew toasterconf.json

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=33a4006529ca0e463f1e1fc95daef973a6facd3f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>