[bitbake-devel] How to identify WORKDIR?
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Mar 14 09:42:56 UTC 2012
On Wed, 2012-03-14 at 17:01 +0800, Kang Kai wrote:
> 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.
I was thinking of something like:
bitbake -e | grep ^WORKDIR
since you already call into bitbake in the script in question.
Cheers,
Richard
More information about the bitbake-devel
mailing list