<?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>11928</bug_id>
          
          <creation_ts>2017-08-14 14:48:09 +0000</creation_ts>
          <short_desc>When both cpio.gz and cpio.gz.u-boot are stated in IMAGE_FSTYPES the cpio.gz is finally deleted</short_desc>
          <delta_ts>2017-08-31 15:12:13 +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>core</component>
          <version>2.2</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>normal</bug_severity>
          <target_milestone>2.2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michal Vokáč">michal.vokac</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>tom.rini</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75836</commentid>
    <comment_count>0</comment_count>
    <who name="Michal Vokáč">michal.vokac</who>
    <bug_when>2017-08-14 14:48:09 +0000</bug_when>
    <thetext>From my understanding of the documentation it is expected that all image types stated in the IMAGE_FSTYPES variable are produced.

Lets imagine I went through these steps.

  1. I set up the recipe so that tar.bz2 and cpio.gz images are generated.

  IMAGE_FSTYPES = &quot;tar.bz2 cpio.gz&quot;
  inherit core-image

  The tar is just for development debugging and the cpio.gz is packed into
  a FIT image that goes into production.

  2. After some unspecified time a need arose to produce also
  the cpio.gz.u-boot image that can be loaded manually in U-Boot
  during development.

  I changed the recipe like this:

  IMAGE_FSTYPES = &quot;tar.bz2 cpio.gz cpio.gz.u-boot&quot;
  inherit core-image
  inherit image_types_uboot

Now the cpio.gz is deleted and only the tar.bz2 and cpio.gz.u-boot resides in deploy dir.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75846</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Rini">tom.rini</who>
    <bug_when>2017-08-14 22:00:16 +0000</bug_when>
    <thetext>This is further fallout from 46bc438374de (which is in morty) and is corrected by 0a7ce0b971a208956cb895ba5a869ec8c5d94703 from master.  This change would also be applicable to pyro.  The potential downside here is that there may be layers adding in custom IMAGE_CMD types that do a similar &quot;clean&quot; as the u-boot command was doing and would be broken by correcting the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75960</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-08-17 15:38:23 +0000</bug_when>
    <thetext>backported and pushed to stagging for next build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76401</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-08-31 15:12:13 +0000</bug_when>
    <thetext>in morty
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/image.bbclass?h=morty&amp;id=341726ffdba0f7dfa2056b9c501e20ef600a51cb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>