All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rod Whitby <rod@whitby.id.au>
To: openembedded-devel@lists.openembedded.org
Cc: "openmoko-devel@lists.openmoko.org" <openmoko-devel@lists.openmoko.org>
Subject: Should rm_work be moved after do_deploy, or is ${WORKDIR} not available in do_deploy?
Date: Sun, 25 Feb 2007 20:30:37 +1030	[thread overview]
Message-ID: <45E15E45.5060800@whitby.id.au> (raw)

[Follow-ups to openembedded-devel@lists.openembedded.org only, please.]

A question for the OE core team representatives on the list:  Is
do_deploy prohibited from being able to get at things in ${WORKDIR}, or
should rm_work happen after do_deploy?

Details follow:

There is this neat rm_work.bbclass in OpenEmbedded which removes each
individual build/tmp/work/... directory as each package is successfully
built (this saves a *lot* of space, especially with the openmoko svnnow
paradigm which will quickly fill your disk with multiple build copies of
openmoko packages).

Unfortunately (at least with bitbake 1.6 head), rm_work is called before
do_deploy, so the do_deploy() function in OpenMoko's
sjf2410-linux-native.bb fails:

do_deploy() {
        install -d ${DEPLOY_DIR_IMAGE}
        install -m 0755 sjf2410 ${DEPLOY_DIR_IMAGE}/sjf2410
}

The sjf2410 executable no longer exists at that point, cause rm_work has
deleted it.

Should rm_work be moved to after do_deploy, or should
sjf2410-linux-native.bb (and all other packages that assume that the
contents of ${WORKDIR} are still available in do_deploy) be fixed?

(For example, the same problem occurs in ixp4xx-kernel ...)

-- Rod



             reply	other threads:[~2007-02-25 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-25 10:00 Rod Whitby [this message]
2007-02-25 10:21 ` Should rm_work be moved after do_deploy, or is ${WORKDIR} not available in do_deploy? Rod Whitby
2007-02-26 11:03   ` Richard Purdie

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=45E15E45.5060800@whitby.id.au \
    --to=rod@whitby.id.au \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openmoko-devel@lists.openmoko.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.