| Summary: | A scripts to clean obsolote sstate cache files | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Robert Yang <liezhi.yang> |
| Component: | meta-yocto | Assignee: | Robert Yang <liezhi.yang> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Low | CC: | poky.bs.watcher, poky.watcher, richard.purdie, sgw, yi.zhao |
| Version: | 1.2 | ||
| Target Milestone: | 1.2 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | (P3)(QA testing completed) (Done) | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Robert Yang
2011-10-17 01:04:41 UTC
There is the -ccleansstate function which combined clean with removal of the sstate files so I do not believe we need a SSTATE_REMOVE_FILE variable too. Having something to clean out old sstate files would be useful though. Here is the design document:
A script to clean the obsolete sstate cache file.
* The script would be:
poky/scripts/sstate-cache-management.sh
* It can do the following things:
1) Print help information
2) Clean the duplicated files of one pkg, leave the newest one
3) Clean the sstate cache files by threshold, the older and duplicated
files would be removed
4) There would be arguments for the user to choose whether do 2) or 3)
* It would be implemented by shell script.
(In reply to comment #2) > Here is the design document: > > A script to clean the obsolete sstate cache file. > > * The script would be: > poky/scripts/sstate-cache-management.sh > > * It can do the following things: > 1) Print help information > 2) Clean the duplicated files of one pkg, leave the newest one > 3) Clean the sstate cache files by threshold, the older and duplicated > files would be removed It seems that the threshold is not needed when I'm working on it, we just leave the up to date one is OK. > 4) There would be arguments for the user to choose whether do 2) or 3) > > * It would be implemented by shell script. Verified. Tree/Branch: Poky/master Poky Commit: a8dc76ee69cfe1ffe846c07a510e3a562a5b1a7f |