From d4114fdf8127c7b1a28d59828ae023f945c668f6 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Aug 21 2016 21:26:22 +0000 Subject: arm-image-installer: use proper directory for --list-targets --- diff --git a/arm-image-installer b/arm-image-installer index b9cc2c6..40a7594 100755 --- a/arm-image-installer +++ b/arm-image-installer @@ -118,25 +118,26 @@ contains() { } if [ ! -z "$LISTTARGETS" ]; then + cd $BOARDDIR echo "Supported boards are:" echo "" echo "AllWinner SoC based:" - ALLWINNER=$(find boards.d/ -type l -ls|grep AllWinner|cut -d" " -f32|cut -d"/" -f2|sort) + ALLWINNER=$(find . -type l -ls|grep AllWinner|cut -d"/" -f2|cut -d" " -f1|sort) echo $ALLWINNER | sed -e 's/[[:space:]]/ /g' | fold -w 80 -s echo "" echo "i.Mx6 SoC based:" - MX6=$(find boards.d/ -type l -ls|grep /imx6|cut -d" " -f32|cut -d"/" -f2|sort) + MX6=$(find . -type l -ls|grep /imx6|cut -d"/" -f2|cut -d" " -f1|sort) echo $MX6 | sed -e 's/[[:space:]]/ /g' | fold -w 80 -s echo "" echo "TI SoC based:" - OMAP=$(find boards.d/ -type l -ls|grep /omap|cut -d" " -f32|cut -d"/" -f2|sort) + OMAP=$(find . -type l -ls|grep /omap|cut -d"/" -f2|cut -d" " -f1|sort) echo $OMAP | sed -e 's/[[:space:]]/ /g' | fold -w 80 -s echo "" echo "Marvell SoC based:" - MVEBU=$(find boards.d/ -type l -ls|grep /mvebu|cut -d" " -f32|cut -d"/" -f2|sort) + MVEBU=$(find . -type l -ls|grep /mvebu|cut -d"/" -f2|cut -d" " -f1|sort) echo $MVEBU | sed -e 's/[[:space:]]/ /g' | fold -w 80 -s TARGETS=$(ls -1 ${BOARDDIR})