[oe-commits] org.oe.dev image.bbclass: Add deploy_to task

pfalcon commit openembedded-commits at lists.openembedded.org
Fri Feb 15 01:31:17 UTC 2008


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!

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: 2af4e3d72966c88c198cec2144cb8385bcce84dc
ViewMTN: http://monotone.openembedded.org/revision/info/2af4e3d72966c88c198cec2144cb8385bcce84dc
Files:
1
classes/image.bbclass
Diffs:

#
# mt diff -r0d376af69d870f4d7e004a35b9ce9adbb7bb1600 -r2af4e3d72966c88c198cec2144cb8385bcce84dc
#
# 
# 
# patch "classes/image.bbclass"
#  from [6eeae6a01c36465bc36cc737d42ea6b8ab09b152]
#    to [73120c465f8175c72d4001b3985cab785ee72ced]
# 
============================================================
--- classes/image.bbclass	6eeae6a01c36465bc36cc737d42ea6b8ab09b152
+++ classes/image.bbclass	73120c465f8175c72d4001b3985cab785ee72ced
@@ -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 @@ addtask rootfs before do_build after do_
 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






More information about the Openembedded-commits mailing list