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

Kang Kai Kai.Kang at windriver.com
Mon Mar 5 02:30:42 UTC 2012


On 2012年03月03日 00:36, Richard Purdie wrote:
> On Fri, 2012-03-02 at 08:33 -0700, Chris Larson wrote:
>> 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.
> Totally agreed. I saw a comment earlier today in the bugzilla about this
> and made the same comment even before I saw this patch...
OK. I'll do it in another way.

Regards,
Kai
>
> Cheers,
>
> Richard
>





More information about the bitbake-devel mailing list