<?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>1315</bug_id>
          
          <creation_ts>2011-08-02 14:31:48 +0000</creation_ts>
          <short_desc>Kernel not recreated with rootfs when bzImage missing</short_desc>
          <delta_ts>2011-08-25 03:07:14 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</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>RFC patch posted to OE-core ml (17 Aug)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          <blocked>1346</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dave Stewart">david.c.stewart</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>liping.ke</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15155</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Stewart">david.c.stewart</who>
    <bug_when>2011-08-02 14:31:48 +0000</bug_when>
    <thetext>When I remove all the files from tmp/deploy/images and redo my build using Hob, there is no kernel built. 

Joshua says you can get this with &quot;bitbake -c deploy virtual/kernel -f&quot; but for sure this needs to be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15158</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-08-02 14:49:54 +0000</bug_when>
    <thetext>This will happen regardless of how you initiate a build, not just with hob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15190</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-08-03 09:23:50 +0000</bug_when>
    <thetext>This is expected behavior. Bitbake will only redeploy something if that thing has changed. You can&apos;t randomly delete things and have bitbake figure out what you deleted and what it needs to do to get it back...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15327</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Stewart">david.c.stewart</who>
    <bug_when>2011-08-08 13:32:26 +0000</bug_when>
    <thetext>It did change... it was deleted.

It&apos;s not unreasonable to expect that a user will delete files in this directory.

In this case, if I want to rebuild the end product of the build, I would expect that I could just delete these end products and expect the build system to regenerate them.  This is how &quot;make&quot; works, for example.

How else would I force the the rootfs and kernel to be remade?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15337</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-08-08 17:06:50 +0000</bug_when>
    <thetext>If you remove random files from your windows system directory do you expect it still to work?

The correct way to tell bitbake to rebuild something is to clean it (e.g. &quot;bitbake virtual/kernel -c clean&quot;). This is the one correct way to rebuild anything.

The problem is we don&apos;t track the &quot;output&quot; of each task as whilst make and git can do this for projects of a certain size, we&apos;re talking about giagbytes of build data and we simply can&apos;t track that number of files and still respond to user requests in a timely fashion (have you seem how long a delete of a build takes? :( ).

We could start special casing tasks but this then teaches the user that deleting files is ok. We&apos;ll then get the bug report that file X was changed of deleted and we didn&apos;t manage to detect that. I don&apos;t want give users the impression this is ok and instead I want to ensure we have consistency in the behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15349</commentid>
    <comment_count>5</comment_count>
    <who name="Dave Stewart">david.c.stewart</who>
    <bug_when>2011-08-09 09:59:31 +0000</bug_when>
    <thetext>OK - Richard and I talked - this is definitely an area for potential confusion, but it sounds like it&apos;s hard to fix effectively in bitbake.

So we agreed to two actions:

1. Let&apos;s put a file in the tmp/deploy/images directory when we create it which is named something like: &quot;README - DO NOT DELETE FILES IN THIS DIRECTORY&quot; and which contains instructions on what to do properly.

2. Add to the Quick Start Guide a warning similar to this when you describe the tmp/deploy/images content.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15360</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-08-10 01:36:55 +0000</bug_when>
    <thetext>Reclassifying this a medium priority and assigning to Paul.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15751</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-08-25 03:07:14 +0000</bug_when>
    <thetext>Feature has now been added in commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=333d571b360e112d7ade0b4ae3bacbda9c8b228d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>