[meta-freescale] [meta-fsl-arm PATCH] image_types_fsl.bbclass: Fix DeviceTree copy for FAT partition

Daiane Angolini daiane.list at gmail.com
Thu Sep 24 09:04:36 PDT 2015


On Thu, Sep 24, 2015 at 9:34 AM, Otavio Salvador
<otavio at ossystems.com.br> wrote:
> The rootfs generation script now runs outside of the deploy directory
> so the code need to use the full path for the installed files. This
> fixes the rootfs generation process so the files are copied to the FAT
> partition, allowing the system to boot.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

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

> ---
>
>  classes/image_types_fsl.bbclass | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
> index 331f739..dba2c13 100644
> --- a/classes/image_types_fsl.bbclass
> +++ b/classes/image_types_fsl.bbclass
> @@ -169,9 +169,9 @@ generate_imx_sdcard () {
>         if test -n "${KERNEL_DEVICETREE}"; then
>                 for DTS_FILE in ${KERNEL_DEVICETREE}; do
>                         DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
> -                       if [ -e "${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb" ]; then
> -                               kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`"
> -                               kernel_bin_for_dtb="`readlink ${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb | sed "s,$DTS_BASE_NAME,${MACHINE},g;s,\.dtb$,.bin,g"`"
> +                       if [ -e "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb" ]; then
> +                               kernel_bin="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin`"
> +                               kernel_bin_for_dtb="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb | sed "s,$DTS_BASE_NAME,${MACHINE},g;s,\.dtb$,.bin,g"`"
>                                 if [ $kernel_bin = $kernel_bin_for_dtb ]; then
>                                         mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb ::/${DTS_BASE_NAME}.dtb
>                                 fi
> --
> 2.5.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