aboutsummaryrefslogtreecommitdiffstats
path: root/classes/image.bbclass
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2008-02-15 00:56:33 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2008-02-15 00:56:33 +0000
commit8d0d4e75d147f819f4ddedcb888e66650d90d61b (patch)
tree782e20de2c9c4df0e351ca15f19114d8e3371f09 /classes/image.bbclass
parent2c4875b612d410b876bd7a41dd34dc76e034d371 (diff)
downloadopenembedded-8d0d4e75d147f819f4ddedcb888e66650d90d61b.tar.gz
image.bbclass: Add deploy_to task
* A standalone task to deploy built image to the location specified by DEPLOY_TO variable (likely passed via environment). Assumes ${IMAGE_FSTYPES} is a single value!
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r--classes/image.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index d70cfa5daf..e8fca61fb2 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -110,6 +110,14 @@ fakeroot do_rootfs () {
${MACHINE_POSTPROCESS_COMMAND}
}
+do_deploy_to[nostamp] = "1"
+do_deploy_to () {
+ # A standalone task to deploy built image to the location specified
+ # by DEPLOY_TO variable (likely passed via environment).
+ # Assumes ${IMAGE_FSTYPES} is a single value!
+ cp "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${IMAGE_FSTYPES}" ${DEPLOY_TO}
+}
+
insert_feed_uris () {
echo "Building feeds for [${DISTRO}].."
@@ -202,3 +210,4 @@ rootfs_update_timestamp () {
EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp
addtask rootfs before do_build after do_install
+addtask deploy_to after do_rootfs