[bitbake-devel] [PATCH 1/1] bitbake: enable cleanup of WORKDIR

Chris Larson clarson at kergoth.com
Fri Mar 2 15:33:13 UTC 2012


On Fri, Mar 2, 2012 at 12:54 AM, Kang Kai <kai.kang at windriver.com> wrote:
> [Yocto 1561]
> Add a command line option for bitbake to enable cleanup of WORKDIR.
> It checks every package build directories under WORKDIR then parse
> the directory name to get package name and version. If the version
> is not the package prefer version then delete the directory.
>
> Signed-off-by: Kang Kai <kai.kang at windriver.com>
> ---
>  bitbake/bin/bitbake       |    4 +++
>  bitbake/lib/bb/command.py |    5 +++
>  bitbake/lib/bb/cooker.py  |   63 +++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 72 insertions(+), 0 deletions(-)

This is wrong on multiple levels. bitbake (other than some hacky stuff
in the fetcher that needs to die) has *zero* knowledge of the use of
WORKDIR today, that's entirely metadata implementation.
-- 
Christopher Larson




More information about the bitbake-devel mailing list