From: Joel Fernandes <joelf@ti.com>
To: Tyler Hall <tylerwhall@gmail.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: Quick question about OE-core/bitbake's re-building
Date: Sun, 4 May 2014 19:34:38 -0500 [thread overview]
Message-ID: <5366DC9E.1020702@ti.com> (raw)
In-Reply-To: <CAOjnSCb-Fkxs3J_5eycnQ6gpRaoJpbsdP6H9+UVEHRm6kwbd8g@mail.gmail.com>
On 05/04/2014 04:52 PM, Tyler Hall wrote:
> On Sun, May 4, 2014 at 4:53 PM, Joel Fernandes <joelf@ti.com
> <mailto:joelf@ti.com>> wrote:
>
> How does it figure out when it needs to rebuild a package?
>
>
> Bitbake generates hashes for every task that are based on the data that
> will be used when running the task. This includes the body of the task
> function, any variables it references, checksums of required files, and
> hashes of tasks it depends on. This data is stored for each task in
> $BUILDDIR/tmp/stamps. The task will re-run if a matching sigdata file
> does not exist in the stamps directory. You can run bitbake-dumpsig on a
> sigdata file to see what metadata changes will cause the task to rebuild.
>
> For example if I modify the file:
> ../meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service
>
> Does it track the modification time to know it needs to rebuild
> "systemd-serialgetty"?
>
> Because doing such a modification didn't cause it to rebuild.
>
Thanks for your reply, that was helpful.
> The modification time won't trigger a rebuild since the contents hash
> the same. Changing the contents of the file should trigger a rebuild,
> though.
Makes sense. That's what I observed.
However one thing, is the updates don't happen if you revert the changes
back to what it used to be in an earlier revision.
For example if I make changes such that task hash is now X
Then I build, and its called r0.0.
Then I make some more changes such that the hash is now Y
And it becomes r0.1.
Then after some more changes, it becomes X. Now instead of rebuilding
and calling it r0.2, the rebuild doesn't happen. I wonder if this is the
right thing, or the updates should continue to roll.
-Joel
next prev parent reply other threads:[~2014-05-05 0:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-04 20:53 Quick question about OE-core/bitbake's re-building Joel Fernandes
2014-05-04 21:52 ` Tyler Hall
2014-05-05 0:34 ` Joel Fernandes [this message]
2014-05-06 8:53 ` Burton, Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5366DC9E.1020702@ti.com \
--to=joelf@ti.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=tylerwhall@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox