public inbox for docs@lists.yoctoproject.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Richard Elberger <rich@richelberger.com>,
	 "bitbake-devel@lists.openembedded.org"
	<bitbake-devel@lists.openembedded.org>
Cc: "docs@lists.yoctoproject.org" <docs@lists.yoctoproject.org>
Subject: Re: [docs] [PATCH] documentation: bitbake: add file-checksums to varflags section
Date: Fri, 24 Feb 2023 21:33:35 +0000	[thread overview]
Message-ID: <8ddacda7563bc605bae4686733d3e8bf72f0f9ed.camel@linuxfoundation.org> (raw)
In-Reply-To: <010001868510232c-5929cc94-ce2e-4817-b311-3ea6f58a267c-000000@email.amazonses.com>

On Fri, 2023-02-24 at 20:14 +0000, Richard Elberger wrote:
> Fixes [YOCTO #11605] by:
> 
> - Adding definition of file-checksums to Variable Flags section.
> - Describe data to add to list which adds external file dependencies.
> - Write example on usage to prepend a value to file-checksums list.
> 
> Signed-off-by: Richard Elberger <rich@richelberger.com>
> ---
>  .../bitbake-user-manual-metadata.rst                  | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> index deb7afad..c2f0cad2 100644
> --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> @@ -1496,6 +1496,17 @@ functionality of the task:
>     directory listed is used as the current working directory for the
>     task.
>  
> +- ``[file-checksums]``: Controls the file dependencies for a task. The
> +  baseline file list is the set of files associated with
> +  :term:`SRC_URI`. May be used to set additional dependencies on
> +  files not associated with :term:`SRC_URI`.
> +
> +  The value set to the list is a pair where the first value is the
> +  file name and the second is whether or not it physically exists on
> +  the filesystem. ::
> +
> +    do_configure[file-checksums] += "${MY_DIRPATH}/my-file.txt:True"
> +

Thanks, this is good to document. We should probably add that:

"""
It is important to record any paths which the task looked at and which
didn't exist. This means that if these do exist at a later time, the
task can be rerun with the new additional files. The "exists" True or
False value after the path allows this to be handled.
"""

Cheers,

Richard



  reply	other threads:[~2023-02-24 21:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230224201426.357606-1-rich@richelberger.com>
2023-02-24 20:14 ` [PATCH] documentation: bitbake: add file-checksums to varflags section Richard Elberger
2023-02-24 21:33   ` Richard Purdie [this message]
2023-02-25 16:36     ` [docs] " Richard Elberger
2023-02-26 12:08       ` Richard Purdie

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=8ddacda7563bc605bae4686733d3e8bf72f0f9ed.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=docs@lists.yoctoproject.org \
    --cc=rich@richelberger.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