[bitbake-devel] How to identify WORKDIR?

Kang Kai Kai.Kang at windriver.com
Wed Mar 14 09:01:57 UTC 2012


Hi All,

I write a script to clean up WORKDIR that remove the obsoleted packages' 
build directories.
The script accept a argument as BUILDDIR and I use this clause to 
identify the WORKDIR:

      workdir = os.path.join(builddir, 'tmp/work')

Then validate the workdir exists or not. It works for me but hardcode 
here as Richard point out.
So is there  a better way to get the WORKDIR here? Thanks.

Regards,
Kai

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20120314/2e93fbbf/attachment-0001.html>


More information about the bitbake-devel mailing list