]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
board/atmel: use correct sam-ba binary in flasher.sh script
authorJoshua Henderson <joshua.henderson@microchip.com>
Thu, 5 Apr 2018 21:34:41 +0000 (14:34 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 6 Apr 2018 19:34:16 +0000 (21:34 +0200)
Instead of using the install of sam-ba under host/opt directly, use the symlink
created in host/bin.  The side effect of doing this instead allows the correct
sam-ba binary to be used based on the host arch being 32 bit or 64 bit.

Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
board/atmel/flasher.sh

index bbdb199b970af08d1c5a05defa3e5f592c8b5d2f..c1227609520748f9003bb8f22461ed33f5ced2b2 100755 (executable)
@@ -130,7 +130,6 @@ if [[ $BOARD == "*pda4" ]]; then
        video_mode="video=LVDS-1:480x272-16"
 fi
 
-echo "Executing: ${!F} O=$1/images $1/host/opt/sam-ba/sam-ba $TTY ${!M} $(dirname $0)/nandflash.tcl -- ${!F} ${!D} $video_mode"
+echo "Executing: ${!F} O=$1/images $1/host/bin/sam-ba $TTY ${!M} $(dirname $0)/nandflash.tcl -- ${!F} ${!D} $video_mode"
 export O=$1/images
-$1/host/opt/sam-ba/sam-ba $TTY ${!M} $(dirname $0)/nandflash.tcl -- ${!F} ${!D} $video_mode
-
+$1/host/bin/sam-ba $TTY ${!M} $(dirname $0)/nandflash.tcl -- ${!F} ${!D} $video_mode