1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

gcc-cross.inc: Fix cross testing script

shift the cmdline argument after determining
there is atleast 1 argument to shift otherwise
it ends up in error when no argument is specified

(From OE-Core rev: 4cd306ab0c9404a31f38c7e5fb67fe32fdca3d4b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2012-04-28 08:15:30 -07:00
committed by Richard Purdie
parent 339154100f
commit b11dc75d19
+3 -2
View File
@@ -45,7 +45,6 @@ do_compile () {
# append execution part of the script # append execution part of the script
cat >> ${B}/${TARGET_PREFIX}testgcc << STOP cat >> ${B}/${TARGET_PREFIX}testgcc << STOP
target="\$1" target="\$1"
shift
usage () { usage () {
echo "Usage:" echo "Usage:"
echo "\$0 user@target 'extra options to dejagnu'" echo "\$0 user@target 'extra options to dejagnu'"
@@ -60,11 +59,13 @@ usage () {
} }
if [ "x\$target" = "x" ] if [ "x\$target" = "x" ]
then then
echo "Please specify the target machine and remote user in form of user@target" echo "Please specify the target machine and remote user in form of user@target\n"
usage usage
exit 1; exit 1;
fi fi
shift
echo "\$target" | grep "@" 2>&1 > /dev/null echo "\$target" | grep "@" 2>&1 > /dev/null
if [ "x\$?" = "x0" ] if [ "x\$?" = "x0" ]
then then