A script to clean obsolete sstate cache files
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 22 Feb 2012 12:38:30 +0000 (20:38 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 23:59:40 +0000 (23:59 +0000)
commit6668ee52436f6cf7918498e9b464e56521cfe53c
tree085d3c14f3d828faf43d7b10cca7511e0af5737c
parent375a31bcbf66257b528161c679c99e332b6680a0
A script to clean obsolete sstate cache files

There would be many obsolete cache files in the SSTATE_DIR after several
builds, this script can remove the obsolete one for a pkg, only leave
the up to date one.

Here is the help text:

sstate-cache-management.sh <OPTION>

Options:
  --help, -h
        Display this help and exit.

  --cache-dir=<sstate cache dir>
        Specify sstate cache directory, will use the environment
        variable SSTATE_CACHE_DIR if it is not specified.

  --remove-duplicated
        Remove the duplicated sstate cache files of one package, only
        the newest one would be kept.

[YOCTO #1682]

(From OE-Core rev: 7c99ef6d2173b14e1109a540ee5ae47b56d707e7)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/sstate-cache-management.sh [new file with mode: 0755]