diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-08-05 13:25:20 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-19 20:06:25 +0100 |
commit | 369920107edd8ae2487d71a324072fcfaba0731e (patch) | |
tree | 14aea71394438111dd1eda29db443ce9784aa314 /meta/classes/deploy.bbclass | |
parent | 29ca8936493b2044c6926becca0ffcf3747b2528 (diff) | |
download | openembedded-core-369920107edd8ae2487d71a324072fcfaba0731e.tar.gz openembedded-core-369920107edd8ae2487d71a324072fcfaba0731e.tar.bz2 openembedded-core-369920107edd8ae2487d71a324072fcfaba0731e.zip |
deploy.bbclass: use new style staging for deploy tasks
All tasks which implement a do_deploy should inherit this class to have the
changes in the deploy task staged.
Update recipes which include a do_deploy function to inherit this class and
to use DEPLOYDIR rather than DEPLOY_DIR_IMAGE.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/classes/deploy.bbclass')
-rw-r--r-- | meta/classes/deploy.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/deploy.bbclass b/meta/classes/deploy.bbclass new file mode 100644 index 0000000000..f697e70aa4 --- /dev/null +++ b/meta/classes/deploy.bbclass @@ -0,0 +1,11 @@ +DEPLOYDIR = "${WORKDIR}/deploy-${PN}" +SSTATETASKS += "do_deploy" +do_deploy[sstate-name] = "deploy-${PN}" +do_deploy[sstate-inputdirs] = "${DEPLOYDIR}" +do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}" + +python do_deploy_setscene () { + sstate_setscene(d) +} +addtask do_deploy_setscene +do_deploy[dirs] = "${DEPLOYDIR} ${B}" |