diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2013-03-26 12:08:12 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-04 14:12:52 +0100 |
commit | f403f50719844ad745d0e981b9b1eef9ddd7ebab (patch) | |
tree | 3e6728be2ff4c268f9446331ba437f13897a56fc | |
parent | 826d56d743fe15805cc004e10c1ee5b4fc0f69a9 (diff) | |
download | poky-f403f50719844ad745d0e981b9b1eef9ddd7ebab.tar.gz |
ref-manual: edits to "Invalidating Shared State" section.
(From yocto-docs rev: d88c23420bf36650572aabcd2016e45ae1586d24)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/ref-manual/technical-details.xml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/documentation/ref-manual/technical-details.xml b/documentation/ref-manual/technical-details.xml index 73d27c40ce..2b962509c1 100644 --- a/documentation/ref-manual/technical-details.xml +++ b/documentation/ref-manual/technical-details.xml | |||
@@ -559,12 +559,14 @@ | |||
559 | It is possible that you could make implicit changes that are not factored | 559 | It is possible that you could make implicit changes that are not factored |
560 | into the checksum calculation, but do affect a task's output. | 560 | into the checksum calculation, but do affect a task's output. |
561 | A good example is perhaps when a tool changes its output. | 561 | A good example is perhaps when a tool changes its output. |
562 | Let's say that the output of <filename>rpmdeps</filename> needed to change. | 562 | Assume that the output of <filename>rpmdeps</filename> needed to change. |
563 | The result of the change should be that all the "package", "package_write_rpm", | 563 | The result of the change should be that all the |
564 | and "package_deploy-rpm" shared state cache items would become invalid. | 564 | <filename>package</filename>, <filename>package_write_rpm</filename>, |
565 | and <filename>package_deploy-rpm</filename> shared state cache | ||
566 | items would become invalid. | ||
565 | But, because this is a change that is external to the code and therefore implicit, | 567 | But, because this is a change that is external to the code and therefore implicit, |
566 | the associated shared state cache items do not become invalidated. | 568 | the associated shared state cache items do not become invalidated. |
567 | In this case, the build process would use the cached items rather than running the | 569 | In this case, the build process uses the cached items rather than running the |
568 | task again. | 570 | task again. |
569 | Obviously, these types of implicit changes can cause problems. | 571 | Obviously, these types of implicit changes can cause problems. |
570 | </para> | 572 | </para> |
@@ -576,9 +578,9 @@ | |||
576 | the checksum calculation and thus, will invalidate the associated area of sstate cache. | 578 | the checksum calculation and thus, will invalidate the associated area of sstate cache. |
577 | You need to be aware of any implicit changes that are not obvious changes to the | 579 | You need to be aware of any implicit changes that are not obvious changes to the |
578 | code and could affect the output of a given task. | 580 | code and could affect the output of a given task. |
579 | Once you are aware of such a change, you can take steps to invalidate the cache | 581 | Once you are aware of such changes, you can take steps to invalidate the cache |
580 | and force the task to run. | 582 | and force the tasks to run. |
581 | The step to take is as simple as changing a function's comments in the source code. | 583 | The steps to take are as simple as changing function's comments in the source code. |
582 | For example, to invalidate package shared state files, change the comment statements | 584 | For example, to invalidate package shared state files, change the comment statements |
583 | of <filename>do_package</filename> or the comments of one of the functions it calls. | 585 | of <filename>do_package</filename> or the comments of one of the functions it calls. |
584 | The change is purely cosmetic, but it causes the checksum to be recalculated and | 586 | The change is purely cosmetic, but it causes the checksum to be recalculated and |