On 19:14-20210622, Priya N S wrote:
> From: Priya N S <priya...@ti.com>
> 
> From: Priya N S <priya...@ti.com>
> 
> Filesystem tarballs present in SDK are in the format
> tisdk-<IMAGE_TYPE>-image-<MACHINE>.tar.xz. This is different from
> earlier format where 'rootfs' was present in all the filesystem
> tarball names. Update regex used for filesystem tarball search to
> use "image" as the keyword.
> 
> Signed-off-by: Priya N S <priya...@ti.com>
> Signed-off-by: Sekhar Nori <nsek...@ti.com>
> ---
>  create-sdcard.sh | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/create-sdcard.sh b/create-sdcard.sh
> index 736cd42..264095a 100644
> --- a/create-sdcard.sh
> +++ b/create-sdcard.sh
> @@ -752,10 +752,9 @@ if [ $FILEPATHOPTION -eq 1 ] ; then
>       BOOTUENV=`ls $BOOTFILEPATH | grep uEnv.txt | awk {'print $1'}`
>       #rootfs
>       ROOTFILEPARTH="$PARSEPATH/filesystem"
> -     #ROOTFSTAR=`ls  $ROOTFILEPARTH | grep tisdk.*rootfs | awk {'print $1'}`

Can we drop this? We should'nt have commented out code.

>  
>       #Make sure there is only 1 tar
> -     CHECKNUMOFTAR=`ls $ROOTFILEPARTH | grep "tisdk.*rootfs" | grep 'tar.xz' 
> | grep -n '' | grep '2:' | awk {'print $1'}`
> +     CHECKNUMOFTAR=`ls $ROOTFILEPARTH | grep "tisdk.*image" | grep 'tar.xz' 
> | grep -n '' | grep '2:' | awk {'print $1'}`
>       if [ -n "$CHECKNUMOFTAR" ]
>       then
>  cat << EOM
> @@ -767,15 +766,15 @@ cat << EOM
>  
> ################################################################################
>  
>  EOM
> -             ls --sort=size $ROOTFILEPARTH | grep "tisdk.*rootfs" | grep 
> 'tar.xz' | grep -n '' | awk {'print "       " , $1'}
> +             ls --sort=size $ROOTFILEPARTH | grep "tisdk.*image" | grep 
> 'tar.xz' | grep -n '' | awk {'print "        " , $1'}
>               echo ""
>               read -p "Enter Number of rootfs Tarball: " TARNUMBER
>               echo " "
> -             FOUNDTARFILENAME=`ls --sort=size $ROOTFILEPARTH | grep "rootfs" 
> | grep 'tar.xz' | grep -n '' | grep "${TARNUMBER}:" | cut -c3- | awk 
> {'print$1'}`
> +             FOUNDTARFILENAME=`ls --sort=size $ROOTFILEPARTH | grep "image" 
> | grep 'tar.xz' | grep -n '' | grep "${TARNUMBER}:" | cut -c3- | awk 
> {'print$1'}`
>               ROOTFSTAR=$FOUNDTARFILENAME
>  
>       else
> -             ROOTFSTAR=`ls  $ROOTFILEPARTH | grep "tisdk.*rootfs" | grep 
> 'tar.xz' | awk {'print $1'}`
> +             ROOTFSTAR=`ls  $ROOTFILEPARTH | grep "tisdk.*image" | grep 
> 'tar.xz' | awk {'print $1'}`
>       fi
>  
>       ROOTFSUSERFILEPATH=$ROOTFILEPARTH/$ROOTFSTAR
> -- 
> 2.19.1.windows.1

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 
849D 1736 249D
_______________________________________________
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to