diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-03 17:36:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 13:12:19 +0000 |
commit | b6438c94035a014902ec89af63ff3787cd8c67f6 (patch) | |
tree | 2919a0b58d52df895d97da52d1941683c597bf96 /meta/classes | |
parent | 4f9963d1d82ee896fe9491d6a8b32be42cd06f14 (diff) | |
download | openembedded-core-b6438c94035a014902ec89af63ff3787cd8c67f6.tar.gz openembedded-core-b6438c94035a014902ec89af63ff3787cd8c67f6.tar.bz2 openembedded-core-b6438c94035a014902ec89af63ff3787cd8c67f6.zip |
package.bbclass: Better document the different phases of operation
Add headers to document the different phases of do_package and
make the steps clearer.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package.bbclass | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 6e7e06ed53..7c79c69287 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1783,6 +1783,10 @@ python do_package () { # as any change to rpmdeps requires this to be rerun. # PACKAGE_BBCLASS_VERSION = "1" + ########################################################################### + # Sanity test the setup + ########################################################################### + packages = (d.getVar('PACKAGES', True) or "").split() if len(packages) < 1: bb.debug(1, "No packages to build, skipping do_package") @@ -1798,12 +1802,24 @@ python do_package () { bb.error("WORKDIR, DEPLOY_DIR, D, PN and PKGD all must be defined, unable to package") return + ########################################################################### + # Setup PKGD (from D) + ########################################################################### + for f in (d.getVar('PACKAGEBUILDPKGD', True) or '').split(): bb.build.exec_func(f, d) + ########################################################################### + # Split up PKGD into PKGDEST + ########################################################################### + for f in (d.getVar('PACKAGESPLITFUNCS', True) or '').split(): bb.build.exec_func(f, d) + ########################################################################### + # Process PKGDEST + ########################################################################### + # Build global list of files in each split package global pkgfiles pkgfiles = {} |