The fsl-utils.bbclass includes rootfs_copy_image function which is used for copying specified image into rootfs image
Signed-off-by: Zhenhua Luo <[email protected]> Acked-by: Daiane Angolini <[email protected]> --- classes/fsl-utils.bbclass | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 classes/fsl-utils.bbclass diff --git a/classes/fsl-utils.bbclass b/classes/fsl-utils.bbclass new file mode 100644 index 0000000..da70f9c --- /dev/null +++ b/classes/fsl-utils.bbclass @@ -0,0 +1,9 @@ +ROOTFS_IMAGE ?= "" + +# Add specified rootfs image in current rootfs image +rootfs_copy_image() { + if [ ! -z "${ROOTFS_IMAGE}" ] && [ -e "${DEPLOY_DIR_IMAGE}/${ROOTFS_IMAGE}" ]; then + mkdir -p ${IMAGE_ROOTFS}/boot + cp ${DEPLOY_DIR_IMAGE}/${ROOTFS_IMAGE} ${IMAGE_ROOTFS}/boot/ + fi +} -- 2.4.3 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
