($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: yocto@lists.yoctoproject.org, bibibobibo@gmail.com
Subject: Re: [yocto] Yocto recipe file://DIRECTORY fetcher recursive tracking?
Date: Thu, 09 May 2024 11:36:02 +0100	[thread overview]
Message-ID: <73820cf56fc9db54e88f9e827e448d79e56c6b62.camel@linuxfoundation.org> (raw)
In-Reply-To: <GfmG.1715197041107111792.DMO0@lists.yoctoproject.org>

On Wed, 2024-05-08 at 12:37 -0700, bibibobibo via lists.yoctoproject.org wrote:
> I have a dummy question regarding the file://DIRECTORY/ in recipe
> usage, we are using this mechanism to directly point at a source
> repository with potentially lots of subfolders, etc. Does bitbake
> track file://DIRECTORY tracks all contents accordingly (i.e something
> will recursively walk through this directory and checksum each file,
> then arrive at a final combined checksum?) and if we happen to repo-
> sync or git-pull to pull new changes in DIRECTORY/, Yocto will be
> able to detect any changes in this directory and automatically
> rebuild this recipe.
> 
> I was getting mixed answers from a few sources, some said this can
> work, some said it works sometimes but not always. So I would like to
> get a definitive answer from Yocto forum.

It is meant to work. There have been some bugs in this area in the
past, I believe they have been fixed. It also doesn't perform well with
large trees of files from a speed perspective.

Something like git allows for much faster operations as git is designed
to do tracking of this kind of thing.

So yes, it should work but isn't optimal with really large trees.

Cheers,

Richard


       reply	other threads:[~2024-05-09 10:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <GfmG.1715197041107111792.DMO0@lists.yoctoproject.org>
2024-05-09 10:36 ` Richard Purdie [this message]
2024-05-09 14:37   ` [yocto] Yocto recipe file://DIRECTORY fetcher recursive tracking? Alexander Kanavin

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=73820cf56fc9db54e88f9e827e448d79e56c6b62.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bibibobibo@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).