Patchwork [meta-fsl-arm] image_types_fsl: explicitly state the origin of boot scripts

login
register
mail settings
Submitter Eric Nelson
Date Feb. 13, 2014, 6:37 p.m.
Message ID <1392316629-2461-1-git-send-email-eric.nelson@boundarydevices.com>
Download mbox | patch
Permalink /patch/66719/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Eric Nelson - Feb. 13, 2014, 6:37 p.m.
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
 classes/image_types_fsl.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Eric Nelson - Feb. 13, 2014, 6:39 p.m.
Hi all,

On 02/13/2014 11:37 AM, Eric Nelson wrote:
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ---
>   classes/image_types_fsl.bbclass | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
> index 443abf7..3510452 100644
> --- a/classes/image_types_fsl.bbclass
> +++ b/classes/image_types_fsl.bbclass
> @@ -145,7 +145,7 @@ generate_imx_sdcard () {
>   		src=`echo $item | awk -F':' '{ print $1 }'`
>   		dst=`echo $item | awk -F':' '{ print $2 }'`
>
> -		mcopy -i ${WORKDIR}/boot.img -s $src ::/$dst
> +		mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/$src ::/$dst
>   	done
>

I wasn't able to find how this changed, but it seems better to have
an explicit reference to the source of this operation.

Regards,


Eric

Patch

diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 443abf7..3510452 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -145,7 +145,7 @@  generate_imx_sdcard () {
 		src=`echo $item | awk -F':' '{ print $1 }'`
 		dst=`echo $item | awk -F':' '{ print $2 }'`
 
-		mcopy -i ${WORKDIR}/boot.img -s $src ::/$dst
+		mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/$src ::/$dst
 	done
 
 	# Copy device tree file