Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: Kang Kai <Kai.Kang@windriver.com>
To: <bitbake-devel@lists.openembedded.org>
Cc: Richard Purdie <richard.purdie@intel.com>
Subject: How to identify WORKDIR?
Date: Wed, 14 Mar 2012 17:01:57 +0800	[thread overview]
Message-ID: <4F605E85.7070904@windriver.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 777 bytes --]

             reply	other threads:[~2012-03-14  9:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-14  9:01 Kang Kai [this message]
2012-03-14  9:42 ` How to identify WORKDIR? Richard Purdie
2012-03-15  6:55   ` Kang Kai
2012-03-15  7:40     ` Kang Kai
2012-03-15  8:03       ` Martin Jansa
2012-03-15  9:09         ` Kang Kai
2012-03-15  9:21           ` Martin Jansa
2012-03-15  9:34             ` Kang Kai
2012-03-15 18:18             ` Denys Dmytriyenko
2012-03-16  6:41               ` Martin Jansa
2012-03-19 20:32                 ` Denys Dmytriyenko
2012-03-19 21:37                   ` Christopher Larson
2012-03-19 21:51                     ` Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F605E85.7070904@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=richard.purdie@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox