[oe-commits] Richard Purdie : Split do_packagedata task from do_package

git at git.openembedded.org git at git.openembedded.org
Fri Jan 25 12:46:30 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 6107ee294afde395e39d084c33e8e94013c625a9
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6107ee294afde395e39d084c33e8e94013c625a9

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Jan 23 14:27:33 2013 +0000

Split do_packagedata task from do_package

Currently, do_rootfs has a dependency on all the do_package output being present
due to its usage of the pkgdata directories. This means that if you run:

bitbake xxxx-image -c rootfs

you end up having to fetch and unpack all the do_package data which is usually
large and inefficient. It also means rm_work has to leave all the do_package
data lying around so rootfs works.

This patch splits the actual creation of the pkgdata directory off into a separate
task, "packagedata" which happens immediately after do_package. We can then remap
the dependencies so this task is depended upon, not do_package. Sstate can then be
programmed not to require do_package at the appropriate times.

Whilst this patch doesn't do so, it opens the possibility of rm_work wiping
out the do_package output from WORKDIR as long as it also removed the do_package
stamp (both normal and setscene variants) and allowing more space savings
with rm_work which has been regularly requested.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/debian.bbclass                        |    2 +-
 meta/classes/image.bbclass                         |    3 +-
 meta/classes/native.bbclass                        |    1 +
 meta/classes/package.bbclass                       |   25 ++++++++++++++++----
 meta/classes/package_deb.bbclass                   |    2 +-
 meta/classes/package_ipk.bbclass                   |    2 +-
 meta/classes/package_rpm.bbclass                   |    2 +-
 meta/classes/package_tar.bbclass                   |    2 +-
 meta/classes/sstate.bbclass                        |    6 ++--
 meta/recipes-core/meta/package-index.bb            |    1 +
 meta/recipes-devtools/gcc/gcc-package-cross.inc    |    1 +
 meta/recipes-devtools/gcc/gcc-package-runtime.inc  |    6 ++--
 meta/recipes-devtools/gcc/libgcc_4.7.bb            |    8 +++---
 .../installer/adt-installer_1.0.bb                 |    1 +
 14 files changed, 41 insertions(+), 21 deletions(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=6107ee294afde395e39d084c33e8e94013c625a9




More information about the Openembedded-commits mailing list