]> code.ossystems Code Review - openembedded-core.git/commitdiff
package: Remove the before do_build constraint of the do_package task
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Feb 2014 12:12:23 +0000 (12:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Feb 2014 14:18:00 +0000 (14:18 +0000)
Currently, if you bitbake xxxx, it will restore the package_write_,
packagedata, populate_sysroot *and* the package data from sstate.

We generally care about the packagedata and the actual packages, we
no longer need/care about the do_package data itself unless something
is going to repackage.

By relaxing this constraint (and relying on the packagedata target), we
can save things being installed from sstate and hence speedup build times.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index b54df60d8f23c0da5ce86d396fc00a5b2b848434..042d74c17b8daee8bcb8ebce1146d0a9c1bdeeda 100644 (file)
@@ -1972,7 +1972,7 @@ python do_package () {
 
 do_package[dirs] = "${SHLIBSWORKDIR} ${PKGDESTWORK} ${D}"
 do_package[vardeps] += "${PACKAGEBUILDPKGD} ${PACKAGESPLITFUNCS} ${PACKAGEFUNCS} ${@gen_packagevar(d)}"
-addtask package before do_build after do_install
+addtask package after do_install
 
 PACKAGELOCK = "${STAGING_DIR}/package-output.lock"
 SSTATETASKS += "do_package"