[meta-freescale] ][PATCH 02/31] add fsl-utils.bbclass

Daiane Angolini daiane.list at gmail.com
Fri Aug 14 05:16:40 PDT 2015


On Wed, Aug 12, 2015 at 11:42 AM, Zhenhua Luo <zhenhua.luo at freescale.com> wrote:
> The fsl-utils.bbclass includes rootfs_copy_image function which is used
> for copying specified image into rootfs image
>
> Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>

Acked-by: Daiane Angolini <daiane.angolini at freescale.com>

> ---
>  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..7e80998
> --- /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

there was one whitespace at the end of this line that I removed locally

Daiane

> +        mkdir -p ${IMAGE_ROOTFS}/boot
> +        cp ${DEPLOY_DIR_IMAGE}/${ROOTFS_IMAGE} ${IMAGE_ROOTFS}/boot/
> +    fi
> +}
> --
> 2.4.3
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


More information about the meta-freescale mailing list