documentation: bitbake: add file-checksums to varflags section
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 documentation: bitbake: add file-checksums to varflags section
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.
--- .../bitbake-user-manual-metadata.rst | 11 +++++++++++ 1 file changed, 11 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +11 -0
@@ -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" + - ``[lockfiles]``: Specifies one or more lockfiles to lock while the task executes. Only one task may hold a lockfile, and any task that attempts to lock an already locked file will block until the lock is
Signature · 1 line
2.34.1
Quoted 20 lines · Richard Elberger
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 <[email protected]>--- .../bitbake-user-manual-metadata.rst | 11 +++++++++++ 1 file changed, 11 insertions(+)doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +1
-0@@ -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
doc/bitbake-user-manual/bitbake-user-manual-metadata.rst functionality of the task: · line 1509
Quoted 10 lines
doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +10
-0+ 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
Hello Richard, I have added this, amended the commit, and sent through another patch.
Quoted 4 lines · Richard Purdie
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.
Quoted 2 lines · Richard Elberger
Hello Richard, I have added this, amended the commit, and sent through another patch.
Thanks! I've merged it. If there are other tweaks others want to make/add we can build on this incrementally, it is great to get it documented.
Cheers,
Richard